Jump to content

ZuKi|R

Members
  • Posts

    19
  • Joined

  • Last visited

2 Followers

About ZuKi|R

  • Birthday 26/04/1998

Details

  • Gang
    |ZA|~> Zombie Atatck
  • Location
    Ecuador
  • Occupation
    Zombie Attack - Owner

Recent Profile Visitors

1,028 profile views

ZuKi|R's Achievements

Square

Square (6/54)

1

Reputation

  1. ZuKi|R

    Help me

    Hello, I'm making a private chat system and this almost everything just want to do that if that chat detects an IP for example: (mtasa://, 22003, 22005) If that chat has this is the player is kicked or banned, any suggestions? I will pass my code of how this and I must do or add. (Thank you very much for your attention) client.lua function ChatPrivadoSystem(ply) local x,y = guiGetScreenSize() local width,height = 350,250 x = x*.5 y = y*.5 chat[ply] = {} chat[ply].wnd = guiCreateWindow(0.30, 0.26, 0.19, 0.44, getPlayerName(ply), true) chat[ply].memo = guiCreateMemo(0.04, 0.22, 0.92, 0.47, "", true, chat[ply].wnd) labelinfo = guiCreateLabel(0.02, 0.07, 0.94, 0.12,"Puedes Escribir Cualquier Mensaje De Texto que quieras enviar en Privado.", true, chat[ply].wnd) guiSetFont(labelinfo, "default-bold-small") guiLabelSetColor(labelinfo, 41, 251, 0) guiLabelSetHorizontalAlign(labelinfo, "center", true) chat[ply].edit = guiCreateEdit(0.04, 0.72, 0.92, 0.08, "", true, chat[ply].wnd) chat[ply].btnClose = guiCreateButton(0.51, 0.82, 0.45, 0.08,"Cerrar", true, chat[ply].wnd) guiSetFont(chat[ply].btnClose, "default-bold-small") guiSetProperty(chat[ply].btnClose, "NormalTextColour", "FFFA0000") Zukir = guiCreateLabel(0.54, 0.93, 0.46, 0.38, "Copyrigth ZuKi|R", true, chat[ply].wnd) guiSetFont(Zukir, "default-bold-small") guiLabelSetColor(Zukir, 250, 0, 0) guiLabelSetHorizontalAlign(Zukir, "center", false) chat[ply].btnSend = guiCreateButton(0.05, 0.82, 0.45, 0.08, "Enviar Mensaje", true, chat[ply].wnd) guiSetFont(chat[ply].btnSend, "default-bold-small") guiSetProperty(chat[ply].btnSend, "NormalTextColour", "FFFA0000") guiMemoSetReadOnly(chat[ply].memo, true) guiWindowSetSizable(chat[ply].wnd, false) guiSetProperty(chat[ply].wnd, "RollUpEnabled", "true") guiSetProperty(chat[ply].wnd, "Dragable", "true") if anims.plfadein:isPlaying() then guiSetVisible(chat[ply].wnd, true) elseif anims.plfadeout:isPlaying() then guiSetVisible(chat[ply].wnd, false) else if guiGetAlpha(PanelChat) > .1 then guiSetVisible(chat[ply].wnd, true) guiSetVisible(newmsg.img,false) else guiSetVisible(chat[ply].wnd, false) end end end function destroyChatWindow(ply) if chat[ply] and isElement(chat[ply].wnd) then destroyElement(chat[ply].wnd) chat[ply] = nil end end function sendChatMessage(ply) local oldText = guiGetText(chat[ply].memo) local newText = guiGetText(chat[ply].edit) if chat[ply] and isElement(chat[ply].wnd) then if newText and string.len(newText) > 0 then if not oldText then oldText = "" end oldText = oldText .. getPlayerName(g_LocalPlayer) .. ": " .. newText .. "\n" guiSetText(chat[ply].memo, oldText) guiSetText(chat[ply].edit, "") guiMemoSetCaretIndex(chat[ply].memo, string.len(oldText)) triggerServerEvent("onGUIPrivateMessage", g_LocalPlayer, ply,newText)
  2. Hi, I'm creating a function where I want to know that if the player is in an area, a button on a panel is deactivated (in this case I'm using setElementData and getElementData) This is my code, please help me? (I'm Using Google Translate Sorry) ------ Funciones -------- function asdfg () if getElementData(localPlayer,"EnZona") == "Si" then guiSetEnabled(invisible,false) else guiSetEnabled(invisible,true) end end
  3. Hello, want say that I want exchange the estacion or the url of the musica and that to the whole servant you exchanged equally, for example by using a command ( /radio "Link of musica" ) and immediately to execute the command exchange to him the estacion of the musica for which ( sorry mi inglish )
  4. I am creating a radio system in line, the thing is that it is me who wants to make for example use a command / removed (link of the music) and that that link is added to the system of on-line radio little porfavor explain to me, this is my code not if it will be well client.lua function CambiarEstacionOnline(source,cmd,stream) setSoundVolume(stream, 0) stream = playSound(" "..stream.." ") end addCommandHandler("radio",CambiarEstacionOnline)
  5. If it leaves a warning to me in line and other lines on the 26 zone and the entailment that I must do? link of debugscript ---> https://ibb.co/featsm
  6. The code I did it of that way… but it does not create the zone in the Nemesis does not tie it… not as it is my error in the code.
  7. I am trying to create a zone that ties with the Nemesis and each player who approaches the Nemesis that serious that between wing zone of Nemesis lowers the life to him whenever it approaches to him
  8. Hello, I am trying to create a Nemesis that is created with an area and that that area is adapted to the Nemesis but do not manage to do it a suggestion or help? server.lua function Boss ( ) NemesisRa = exports [ "slothBot" ]:spawnBot ( -2551.4892578125, 640.34375, 27.8125, 90, 312, 0, 0, NemesisRa, 23,"chasing", true ) setElementModel ( NemesisRa, 134 ) exports.extra_health:setElementExtraHealth ( NemesisRa, 5000 ) exports.BiOWindow: show ( getRootElement (), "info", "#FF0000[EVENTO]> #00ff00El Boss De San Fierro Ha Aparecido\n#00ff00Si lo Matas De Recompenza Se Te Dara #00ff00$15.000", 8000,"#FF0000|ZA|~> Zombie Attack ~ Boss SF",false ) local hillArea = createColRectangle (NemesisRa, 90, 150 ) attachElements ( hillArea, NemesisRa, 0, 0, 2 ) local x, y, z = getElementPosition(NemesisRa) blipRa = (createBlipAttachedTo ( NemesisRa, 23 )) setElementData ( NemesisRa, "nemesis1", true ) setTimer(Boss, 3000000, 1) setTimer(destroyElement, 3000000, 1, NemesisRa) setTimer(destroyElement, 3000000, 1, blipRa) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), Boss ) function hill_Enter ( thePlayer, matchingDimension ) -- announce to everyone that the player entered the hill if (getElementType(thePlayer) == "player") then outputChatBox( getPlayerName(thePlayer) .. " entered the zone!", getRootElement(), 255, 255, 109 ) setRadarAreaFlashing ( hillRadar, true ) triggerClientEvent (thePlayer, "nsound", thePlayer ) end end addEventHandler ( "onColShapeHit", hillArea, hill_Enter )
  9. ZuKi|R

    Save Skills

    Hello, I want to do so that when an user die do not lose the experiences in the arms Some suggestion or help ? code local spawnWeapon = 31 local spawnAmmo = 1000 local spawnWeapon1 = 25 local spawnAmmo1 = 1000 local spawnWeapon2 = 28 local spawnAmmo2 = 1000 local spawnWeapon3 = 33 local spawnAmmo3 = 500 local spawnWeapon4 = 22 local spawnAmmo4 = 1000 local money = 1000 function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount (getPlayerAccount (source))) then local accountData = getAccountData (theCurrentAccount, "funmodev2-money") if (accountData) then local playerSkin = getAccountData (theCurrentAccount, "s.skin") local playerX = getAccountData (theCurrentAccount, "funmodev2-x") local playerY = getAccountData (theCurrentAccount, "funmodev2-y") local z = getAccountData (theCurrentAccount, "funmodev2-z") local playerInt = getAccountData (theCurrentAccount, "funmodev2-int") local playerDim = getAccountData (theCurrentAccount, "funmodev2-dim") local playerTem = getAccountData (theCurrentAccount, "funmodev2-tem") spawnPlayer (source, playerX, playerY, tonumber(z)+1, 0, playerSkin, playerInt, playerDim, playerTem) setPlayerMoney (source, getAccountData (theCurrentAccount, "funmodev2-money")) setTimer (setElementHealth, 500, 1, source, getAccountData (theCurrentAccount, "funmodev2-health")) setTimer (setPedArmor, 500, 1, source, getAccountData (theCurrentAccount, "funmodev2-armor")) setTimer (setPlayerWantedLevel, 100, 1, source, getAccountData (theCurrentAccount, "funmodev2-wantedlevel")) setPedFightingStyle ( source, getAccountData (theCurrentAccount, "pelea") ) setPedStat (source, 69, getAccountData (theCurrentAccount, "pistola") ) setPedStat (source, 70, getAccountData (theCurrentAccount, "silenciadora") ) setPedStat (source, 71, getAccountData (theCurrentAccount, "deagle") ) setPedStat (source, 72, getAccountData (theCurrentAccount, "shangon") ) setPedStat (source, 73, getAccountData (theCurrentAccount, "recortado")) setPedStat (source, 74, getAccountData (theCurrentAccount, "spaz12")) setPedStat (source, 75, getAccountData (theCurrentAccount, "uzi")) setPedStat (source, 76, getAccountData (theCurrentAccount, "mp5")) setPedStat (source, 77, getAccountData (theCurrentAccount, "ak")) setPedStat (source, 78, getAccountData (theCurrentAccount, "m4")) setPedStat (source, 79, getAccountData (theCurrentAccount, "sniper")) setPedStat (source, 22, getAccountData (theCurrentAccount, "stamina")) setPedStat (source, 23, getAccountData (theCurrentAccount, "musculo")) setPedStat (source, 230, getAccountData (theCurrentAccount, "bici")) setPedStat (source, 229, getAccountData (theCurrentAccount, "moto")) setPedStat (source, 64, getAccountData (theCurrentAccount, "[R]~Nivel Usuario") ) if getAccountData (theCurrentAccount, "arrestado") == "true" then setTimer (setElementData, 500, 1, source, "tiempoEnJail", getElementData (source, "PuntosDeArresto")) setElementModel (source, 49) setElementInterior (source, 0) setElementDimension (source, 0) setTimer (triggerClientEvent, 500, 1, source, "ponerElTiempo", source, source) call(getResourceFromName("guitext"),"outputServerGuiText",source,"No intentes escapar!",255,0,0) else setElementData (source, "tiempoEnJail", 0) end if getAccountData (theCurrentAccount, "conTiempo") == "see" then setElementData (source, "tiempoEnJail", getAccountData (theCurrentAccount, "tiempoTranscurrido") ) setElementModel (source, 49) setElementInterior (source, 0) setElementDimension (source, 0) setTimer (triggerClientEvent, 500, 1, source, "ponerElTiempo", source) else setElementData (source, "tiempoEnJail", 0) end local team = getPlayerTeam(source) if team then else end else setElementData (source, "primera_vez", "true") spawnPlayer (source, 369.94140625, -2044.984375, 7.671875, 14, 0) setPlayerMoney(source,1000) setElementModel (source, 136) setTimer(giveWeapon, 5000, 1, source, spawnWeapon, spawnAmmo) setTimer(giveWeapon, 5000, 1, source, spawnWeapon1, spawnAmmo1) setTimer(giveWeapon, 5000, 1, source, spawnWeapon2, spawnAmmo2) setTimer(giveWeapon, 5000, 1, source, spawnWeapon3, spawnAmmo3) setTimer(giveWeapon, 5000, 1, source, spawnWeapon4, spawnAmmo4) setTimer(setPlayerMoney, 5000, 1, source, money) setTimer (triggerClientEvent, 1000, 1, source, "onPrimera", source) end end end addEventHandler ("onPlayerLogin", getRootElement(), playerLogin) function onLogout () cancelEvent() call(getResourceFromName("guitext"),"outputServerGuiText",source, "El logout esta desactivado",255,0,0) end addEventHandler ("onPlayerLogout", getRootElement(), onLogout) function onQuit (quitType, reason, responsibleElement) if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then local x,y,z = getElementPosition (source) setAccountData (account, "funmodev2-money", tostring (getPlayerMoney (source))) setAccountData (account, "s.skin", tostring (getElementModel (source))) setAccountData (account, "funmodev2-armor", tostring (getPedArmor (source))) setAccountData (account, "funmodev2-health", tostring (getElementHealth (source))) setAccountData (account, "job", getElementData(source, "Trabajo")) setAccountData (account, "funmodev2-x", x) setAccountData (account, "funmodev2-y", y) setAccountData (account, "funmodev2-z", z) setAccountData (account, "equipo", getTeamName (getPlayerTeam(source))) setAccountData (account, "funmodev2-int", getElementInterior (source)) setAccountData (account, "funmodev2-dim", getElementDimension (source)) setAccountData (account, "funmodev2-wantedlevel", getPlayerWantedLevel (source)) setAccountData (account, "PuntosDeArresto", getElementData (source,"PuntosDeArresto")) if not isPedDead(source) then local string_temporal = "" for index=0,12 do local weapon = getPedWeapon(source, index) local ammo = getPedTotalAmmo(source, index) string_temporal = string_temporal..tostring(index).."="..tostring(weapon)..","..tostring(ammo)..";" end setAccountData(getPlayerAccount(source), "sxroleplay.armasymunicion", string_temporal) else setAccountData (account, "funmodev2-health", "0") end setAccountData (account, "pelea", getPedFightingStyle(source)) setAccountData (account, "pistola", getPedStat(source, 69)) setAccountData (account, "silenciadora", getPedStat(source, 70)) setAccountData (account, "deagle", getPedStat(source, 71)) setAccountData (account, "shangon", getPedStat(source, 72)) setAccountData (account, "recortado", getPedStat(source, 73)) setAccountData (account, "spaz12", getPedStat(source, 74)) setAccountData (account, "uzi", getPedStat(source, 75)) setAccountData (account, "mp5", getPedStat(source, 76)) setAccountData (account, "ak", getPedStat(source, 77)) setAccountData (account, "m4", getPedStat(source, 78)) setAccountData (account, "sniper", getPedStat(source, 79)) setAccountData (account, "stamina", getPedStat(source, 22)) setAccountData (account, "musculo", getPedStat(source, 23)) setAccountData (account, "bici", getPedStat(source, 230)) setAccountData (account, "moto", getPedStat(source, 229)) setAccountData (account, "[R]~Nivel Usuario", getPedStat(source, 64)) setAccountData (account, "nivelmedico", getElementData(source, "mediclevel")) setAccountData (account, "nivelpolicial", getElementData(source, "polilevel")) setAccountData (account, "abolevel", getElementData (source, "abolevel")) setAccountData (account, "PilotoLevel", getElementData (source, "PilotoLevel") ) setAccountData (account, "VecesArrestado", getElementData (source, "VecesArrestado")) setAccountData (account, "BancosRobados", getElementData (source, "BancosRobados")) setAccountData (account, "VecesMuerto", getElementData (source, "VecesMuerto")) setAccountData (account, "Aseinatos", getElementData (source, "Aseinatos")) setAccountData (account, "LadronDeAutosExitosos", getElementData (source, "LadronDeAutosExitosos")) setAccountData (account, "BancosFracasados", getElementData (source, "BancosFracasados")) setAccountData (account, "Headshots", getElementData (source, "Headshots")) setAccountData (account, "MarcadosAsesinados", getElementData (source, "MarcadosAsesinados")) setAccountData (account, "VehiculosMisteriososRobados", getElementData (source, "VehiculosMisteriososRobados")) end end end addEvent ("onPlayerQuitSave", true) addEventHandler ("onPlayerQuit", getRootElement(), onQuit) addEventHandler ("onPlayerQuitSave", getRootElement(), onQuit) function onStop () for k, v in ipairs (getElementsByType("player")) do if not (isGuestAccount (getPlayerAccount (v))) then triggerEvent ("onPlayerQuitSave", v) end end end addEventHandler ("onResourceStop", resourceRoot, onStop)
  10. In the put this configured of this way meta.xml <settings> <setting name="*NivelMaximo" value="[10000]" /> <!-- nivel maximo por defecto es 10000 --> <setting name="*NivelInicial" value="[1]" /> <!-- nivel inicial por defecto es 1 --> <setting name="*ExpPorKill" value="[100]" /> <!-- experiencia que se gana al matar, por defecto es 100 --> <setting name="*ExpParaNivel" value="[5000]" /> <!-- experiencia que se necesita para subir de nivel, por defecto es 1000 --> <setting name="*PerderExpAlMorir" value="true" /> <!-- experiencia que pierde el jugador al morir, por defecto está habilitado --> </settings>
  11. Have an error in server.lua Goes out me this in the console : ERROR: SistemaDeLevels/server.lua:10: attempt to perform arithmetic on global 'exp_kill' (a boolean value) Some help please ? code .. nivel_maximo = get("nivel.NivelMaximo") nivel_minimo = get("nivel.NivelInicial") exp_kill = get("nivel.ExpPorKill") exp_nivel = get("nivel.ExpParaNivel") perder_exp = get("nivel.PerderExpAlMorir") -- Valores true o false function morir ( ammo, killer, weapon, bodypart ) if ( killer ) and ( killer ~= source ) then exp_reciente = getElementData(killer, "exp") + exp_kill if exports.zombies:isPedZombie(source) then if exp_reciente >= exp_nivel then if getElementData(killer, "nivel") < nivel_maximo then setElementData(killer, "nivel", getElementData(killer, "nivel")+1) setElementData(killer, "exp", exp_reciente-exp_nivel) outputChatBox("[Sistema de Niveles]: ¡Has subido de nivel! Ahora tu nivel es:#FF0000 "..getElementData(killer, "nivel")..".", killer, 0, 255, 0, true) if getElementData(killer, "nivel") >= 50 then outputChatBox("Excelente Pasaste al Siguiente Nivel.", killer, 0, 255, 0, true) end end else setElementData(killer, "exp", exp_reciente) end end end end addEventHandler ( "onPedWasted", getRootElement(), morir )
  12. I don't create the vehicle take the button and nothing
  13. Hello that such as are I hope that well, the reason for thispublication is that I want to create a vehicle through aguiCreateButton and a guiCreateEdit --------------------------------------------------------------------------------------------------------------------------------- Client.lua --- Part of the function in the onClientGUIClick ------------------------------------------------------------------------------------------------------------------------------ elseif source == vehiclee then local CreateCarro = guiGetText(vehiclees) triggerServerEvent("CrearVehiculo", localPlayer, PlayerO,CreateCarro) --------------------------------------------------------------------------------------------------------------------------------- Server.lua function CrearCarroMod (nickC, CarroVehicle) playeer = getPlayerFromName(nickC) createVehicle(getPlayerFromName(nickC), CarroVehicle) outputChatBox("#FF0000"..getPlayerName(source).. " #00ff00Te Ha Dado Un "..CarroVehicle.."%", playeer, 255, 0, 0, true) outputChatBox("#00ff00Has Dado Un "..CarroVehicle.."% #00ff00al Jugador #FF0000"..getPlayerName(playeer).."", source, 255, 0, 0, true) end addEvent("CrearVehiculo", true) addEventHandler("CrearVehiculo", root, CrearCarroMod) ------------------------------------------------------------------------------------------------------------------------ This is my code in the client and server.
  14. Intenta de esta manera. function rights () outputChatBox("", getRootElement(), 0, 255, 0, false) end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),rights) --------------------- function OpenPanel(source) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) or isObjectInACLGroup ("user."..accName, aclGetGroup ( "Staff" ) ) triggerClientEvent (source, "openAdmin", source) end end addCommandHandler("control", OpenPanel) addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), function () for index, player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( player, "m", "down", OpenPanel ) end end) addEventHandler ( "onPlayerLogin", getRootElement(), function () bindKey ( source, "m", "down", OpenPanel ) end) addEventHandler ( "onResourceStop", getResourceRootElement ( getThisResource() ), function () for index, player in ipairs ( getElementsByType ( "player" ) ) do unbindKey ( player, "m", "down", OpenPanel ) end end) --------------------------- function info (player) info = {} local user = getPlayerFromName(player) if not isGuestAccount(getPlayerAccount(user)) then local username = getAccountName(getPlayerAccount(user)) local team = getTeamName(getPlayerTeam(user)) local wanted = getPlayerWantedLevel(user) local ip = getPlayerIP(user) local serial = getPlayerSerial(user) local money = getPlayerMoney(user) local veh = getVehicleName(getPedOccupiedVehicle(user)) triggerClientEvent(source, "sendInformationClient",root,username,team,wanted,ip,serial,money,veh) end end addEvent("sendInfoServer", true) addEventHandler("sendInfoServer", getRootElement(), info) function mute (client) player = getPlayerFromName(client) if isPlayerMuted(player) == false then setPlayerMuted(player, true) outputChatBox(getPlayerName(player).." has been muted by "..getPlayerName(source), getRootElement(), 255, 0, 0, false) elseif isPlayerMuted(player) == true then setPlayerMuted(player, false) outputChatBox(getPlayerName(player).." has been unmuted by "..getPlayerName(source), getRootElement(), 0, 255, 0, false) end end addEvent("mutePlayer", true) addEventHandler("mutePlayer", getRootElement(), mute) function freeze (client) player = getPlayerFromName(client) if isPedFrozen(player) == false then setElementFrozen(player, true) outputChatBox(getPlayerName(player).." has been frozen by "..getPlayerName(source), getRootElement(), 255, 0, 0, false) elseif isPedFrozen(player) == true then setElementFrozen(player, false) outputChatBox(getPlayerName(player).." has been unfrozen by "..getPlayerName(source), getRootElement(), 0, 255, 0, false) end end addEvent("freezePlayer", true) addEventHandler("freezePlayer", getRootElement(), freeze) function warpto (thePlayer) local player = getPlayerFromName(thePlayer) local x,y,z = getElementPosition(player) if isPedInVehicle(source) == true then removePedFromVehicle(source,getPedOccupiedVehicle(source)) setElementPosition(source, x, y+1, z+1) outputChatBox("You have warped to "..getPlayerName(player), source, 0, 255, 0, false) elseif isPedInVehicle(source) == false then setElementPosition(source, x, y+1, z+1) outputChatBox("You have warped to "..getPlayerName(player), source, 0, 255, 0, false) end end addEvent("warptoPlayer", true) addEventHandler("warptoPlayer", getRootElement(), warpto) function warphere (thePlayer) local player = getPlayerFromName(thePlayer) local x,y,z = getElementPosition(source) if isPedInVehicle(player) == true then removePedFromVehicle(player,getPedOccupiedVehicle(player)) setElementPosition(player, x, y+1, z+1) outputChatBox("You have been warped to "..getPlayerName(source), player, 0, 255, 0, false) elseif isPedInVehicle(player) == false then setElementPosition(player, x, y+1, z+1) outputChatBox("You have been warped to "..getPlayerName(source), player, 0, 255, 0, false) end end addEvent("warpPlayerhere", true) addEventHandler("warpPlayerhere", getRootElement(), warphere) function killgay (gay) setElementHealth(getPlayerFromName(gay),0) end addEvent("kill:O", true) addEventHandler("kill:O", getRootElement(), killgay) function wantedlvl (client, amount) player = getPlayerFromName(client) setPlayerWantedLevel(player, amount) outputChatBox(getPlayerName(player).."'s wanted level has been changed to "..amount.." by "..getPlayerName(source), getRootElement(), 255, 0, 0, false) end addEvent("setPlayerwanted", true) addEventHandler("setPlayerwanted", getRootElement(), wantedlvl) function kickgay (client, respon, reason) player = getPlayerFromName(client) kickPlayer(player, respon, reason) outputChatBox(getPlayerName(player).." has been kicked by "..getPlayerName(respon), getRootElement()) end addEvent("kickPlayeraway", true) addEventHandler("kickPlayeraway", getRootElement(), kickgay) function setskin (client, ID) player = getPlayerFromName(client) setElementModel(player, ID) outputChatBox("Your skin has been changed to "..ID.." by "..getPlayerName(source), player, 255, 255, 0, false) end addEvent("setPlayerskin", true) addEventHandler("setPlayerskin", getRootElement(), setskin) function setHP (client, amount) player = getPlayerFromName(client) setElementHealth(player, amount) outputChatBox("Your health has been changed to "..amount.." by "..getPlayerName(source), player, 0, 255, 255, false) end addEvent("setPlayerhealth", true) addEventHandler("setPlayerhealth", getRootElement(), setHP) function setArmor (client, amount) player = getPlayerFromName(client) setPedArmor(player, amount) outputChatBox("Your armor has been changed to "..amount.." by "..getPlayerName(source), player, 0, 255, 255, false) end addEvent("setPlayerarmor", true) addEventHandler("setPlayerarmor", getRootElement(), setArmor) function announce (text) outputChatBox("*ADMIN* "..text, getRootElement(), 255, 0, 0, false) end addEvent("adminAnnounce", true) addEventHandler("adminAnnounce", getRootElement(), announce) function destroycar (client) player = getPlayerFromName(client) car = getPedOccupiedVehicle(player) if isPedInVehicle(player) then destroyElement(car) outputChatBox("Your car has been destroyed by "..getPlayerName(source), player, 255, 0, 0, false) outputChatBox("You have destroyed "..getPlayerName(player).."'s car", source, 255, 0, 0, false) else outputChatBox(getPlayerName(player).." isn't in a vehicle", source, 255, 0, 0, false) end end addEvent("destroyveh", true) addEventHandler("destroyveh", getRootElement(), destroycar) function fixcar (client) player = getPlayerFromName(client) car = getPedOccupiedVehicle(player) if isPedInVehicle(player) then fixVehicle(car) outputChatBox("Your car has been fixed by "..getPlayerName(source), player, 255, 0, 0, false) outputChatBox("You have fixed "..getPlayerName(player).."'s car", source, 255, 0, 0, false) else outputChatBox(getPlayerName(player).." isn't in a vehicle", source, 255, 0, 0, false) end end addEvent("fixveh", true) addEventHandler("fixveh", getRootElement(), fixcar) El Bind es la "m" y el comando esta como /control modificalo a tu gusto me avisas si te va o no
×
×
  • Create New...