SkatCh

Members
  • Content Count

    366
  • Joined

  • Last visited

Everything posted by SkatCh

  1. SkatCh

    [HELP] Please last

    You can use this : function killz ( source ) killPed ( source, source ) end addCommandHandler ( "kill",killz ) Sorry i didn't see Tomas post
  2. SkatCh

    [HELP] Please

    WTF did you see my code what's this: local name = string.gsub(name,"#%x%x%x%x%x%x","")
  3. It's very easy all what you need to do is : function dominar_render () local seg = 0 dxDrawRectangle(55, 478, seg, 20, tocolor(255, 100, 0, 255), false) dxDrawLine(54, 478, 304, 478, tocolor(255, 255, 255, 255), 1, false) dxDrawLine(304, 478, 304, 498, tocolor(255, 255, 255, 255), 1, false) dxDrawLine(54, 498, 304, 498, tocolor(255, 255, 255, 255), 1, false) dxDrawLine(54, 478, 54, 498, tocolor(255, 255, 255, 255), 1, false) dxDrawText("atacando territorio!", 53, 478, 304, 498, tocolor(255, 255, 255, 255), 0.65, "bankgothic", "center", "center", false, false, false, false, false) seg = seg + 1 if ( seg >= 250 ) then seg = 0 -- and if you want to remove the whole dominar_render function use removeEventHandler() removeEventHandler ( "onClientRender", root, dominar_render ) end end
  4. SkatCh

    [HELP] Please

    why u want to disable Hex code just when you kill Zombie disable it for all players i already gave you the solution. -- Server side -- On resource start function checkColorCode() for k, v in ipairs (getElementsByType("player")) do local name = getPlayerName(v) if (string.find(name,"#%x%x%x%x%x%x")) then local name = string.gsub(name,"#%x%x%x%x%x%x","") setPlayerName(v,name) cancelEvent() end end end addEventHandler("onResourceStart",resourceRoot,checkColorCode) and you need to disable it on player join function rCC(oldNick,newNickname) local name = getPlayerName(source) if newNickname then name = newNickname end if (string.find(name,"#%x%x%x%x%x%x",1,false)) then local name = string.gsub(name,"#%x%x%x%x%x%x","") setPlayerName(source,name) if (newNickname) then cancelEvent() end end end addEventHandler("onPlayerJoin",getRootElement(),rCC) also you need to disable it when the player change his name onPlayerChangeNick addEventHandler("onPlayerChangeNick",getRootElement(),rCC)
  5. SkatCh

    [HELP] Please

    function checkColorCode() for k, v in ipairs (getElementsByType("player")) do local name = getPlayerName(v) if (string.find(name,"#%x%x%x%x%x%x")) then local name = string.gsub(name,"#%x%x%x%x%x%x","") setPlayerName(v,name) cancelEvent() end end end addEventHandler("onResourceStart",resourceRoot,checkColorCode) try to use the same code with and ; addEventHandler("onPlayerJoin",getRootElement(),checkColorCode) addEventHandler("onPlayerChangeNick",getRootElement(),checkColorCode) and try to add oldNick , newNick.
  6. SkatCh

    Simple question

    Hi guys i have a question it's possible to change player resolution ? example onPlayerLogin his resultion will be changed from the current one to 1366x768
  7. SkatCh

    Chest bone number

    i know but i can't use bone number 3.
  8. Hi guys as the titles says can anyone tell me the chest bone coordonation.
  9. Try this : Client addEventHandler("onClientPlayerStealthKill", getLocalPlayer(), function(target) if (target and getElementType(target) == "player" and target ~= source) then triggerServerEvent("KillAttacker",source,source) cancelEvent() end ) Server function killAttacker (killer) killPed(killer) outputChatBox ("KARMA:" .. killer .. " is dead",source,0,233,0,true) end addEvent("KillAttacker",true) addEventHandler("KillAttacker",root,killAttacker)
  10. You can't use 'killPed' because it's a server side function try to use triggerServerEvent() addEventHandler("onClientPlayerStealthKill", getLocalPlayer(), function(target) if (target and getElementType(target) == "player" and target ~= source) then triggerServerEvent("KillAttacker",source) cancelEvent() end )
  11. SkatCh

    Translate proxy

    sorry bro i don't undrestand how can i use it
  12. SkatCh

    Translate proxy

    thx for your help , but i want to ask you is there any free website.
  13. SkatCh

    Translate proxy

    Hi guys can any one give me any website translate proxy . i want to use : callRemote
  14. Hello community; As the tittle says , I am suggesting to add all those function server side: setVehicleNitroCount() setVehicleNitroLevel() getVehicleNitroCount() getVehicleNitroLevel() -- etc ... I'd like to hear your opinion too!
  15. SkatCh

    Help for vehicle

    use table like this: HirsizAraba = {} HirsizAraba{client} = createVehicle (482, 1605, -1465.900390625, 13.800000190735, 0, 0, 0)
  16. SkatCh

    need help plz !

    Just add 6 inside the table: like this local prisonCells = { {1572.83984375, -1637.4758300781, -83.001655578613 , 6}, -- then use this for i , v in ipairs (prisonCells) do -- You code here end or you can use setElementInterior
  17. You can use : setElementPosition also you don't need to wirite this x = x +5 simply you can do it like this : function spawnPlayer(thePlayer, command) if not isElement(thePlayer) then return end local x,y,z = getElementPosition(thePlayer) setElementPosition(thePlayer,x+5,y,z) end addCommandHandler("teleport", spawnPlayer)
  18. Sorry bro really i need your help can you give me an example.
  19. example you mean like this: toJSON(getVehicleHandling(veh)) -- Handling ------------------------------ for k, i in ipairs( fromJSON( Handling )) do setVehicleHandling(veh,k,i) end
  20. ok bro i will follow ur advice but how can i do it with JSON and how to sotre it insde db
  21. Yeh exactly that's why i want as you said i need to use to two table but the problem i don't which the proprety , wich is the value. can you help me make it ; this is my try you mean like this local handling = "" for i, hand in pairs (getVehicleHandling(theVehicle)) do for i, v in pairs (hand) do end end
  22. thx bro for your help but i need it with sql and i know how to do it ; but tell me is this correct , -- when the player destroy the car local handling == "" for i, hand in ipairs (getVehicleHandling(theVehicle)) do if handling == "" then handling = hand else handling = handling..","..hand end end