Jump to content

Chaos

Members
  • Posts

    300
  • Joined

  • Last visited

Everything posted by Chaos

  1. hi, i want to make dxdraw on same place in all resolutions i tried this but won't stay on same place local screenW, screenH = guiGetScreenSize() function dxdraw() dxDrawText("EXAMPLE", (screenW - 206) , (screenH - 59) , 1028, 97, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) end addEventHandler("onClientRender",root,dxdraw) please can you help me ?
  2. Chaos

    zombies zone

    already did it's triggered
  3. Chaos

    zombies zone

    IIYAMA still i already did added that ZombieKills = 0 function teste() for i=1,100 do exports [ "zombiegamemode" ]:createZombie(2132.2060546875+math.random(-4,10),1025.4853515625+math.random(-4,10),10.8203125) end end addEventHandler ( "onResourceStart", getRootElement(), teste ) addEvent ( "onZombieWasted", true ) addEventHandler("onZombieWasted",root, function() if ZombieKills < 30 then-- till 29 ZombieKills = ZombieKills+1 else --30 or higher = reset. ZombieKills = 0 teste() end end)
  4. Chaos

    zombies zone

    still same problem i tested all codes
  5. Chaos

    zombies zone

    why line 18 is wrong ?
  6. Chaos

    zombies zone

    hi, i have problem with this code when sometimes i kill 30 zombies the zombies won't respawn again why ? ZombieKills = 0 function teste() for i=1,50 do exports [ "zombiegamemode" ]:createZombie(-1095.76440+math.random(-4,30),-984.83356+math.random(-4,50),129.2187) end end addEventHandler ( "onResourceStart", getRootElement(), teste ) addEventHandler("onZombieWasted",root, function() if (ZombieKills ~= 30) then ZombieKills = ZombieKills+1 else ZombieKills = 0 teste() end end)
  7. Chaos

    getPlayerTeam

    hi, i got error on debug can you help me ? WARNING: gx\server.lua:43: Bad 'player' pointer @ 'getPlayerTeam'(1) WARNING: gx\server.lua:43: Bad 'player' pointer @ 'getPlayerTeam'(1) WARNING: gx\server.lua:43: Bad 'player' pointer @ 'getPlayerTeam'(1) WARNING: gx\server.lua:43: Bad 'player' pointer @ 'getPlayerTeam'(1) WARNING: gx\server.lua:43: Bad 'player' pointer @ 'getPlayerTeam'(1) WARNING: gx\server.lua:43: Bad 'player' pointer @ 'getPlayerTeam'(1) WARNING: gx\server.lua:43: Bad 'player' pointer @ 'getPlayerTeam'(1) function enterArea10(thePlayer) local playerTeam = getPlayerTeam ( thePlayer ) local Clann = getTeamFromName ( "GX-7" ) local posX, posY = getElementPosition(thePlayer) local inArea = isInsideRadarArea(radar10, posX, posY) if (inArea) then if( playerTeam ) == Clann then outputChatBox("Welcome", thePlayer, 0, 255, 0, true) else triggerClientEvent(thePlayer, "displayTimerGX", thePlayer) end end end addEventHandler("onColShapeHit", zone, enterArea10)
  8. yes but now im vip but i can't enter This is a private car you can't steal it !
  9. hi i have problem with this code i want to lock the car for group but event onvehiclestartenter not working i don't know why and can anyone enter to vehicle. veh = {} function car(player, command, arg1) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Vip" ) ) then local x, y, z = getElementPosition(player) if veh[player] then destroyElement(veh[player]) end veh[player] = createVehicle(597, x, y, z) setVehicleDamageProof(veh[player], true) addVehicleUpgrade ( veh[player], 1010 ) end end addCommandHandler("mycar", car) function enterVehicle(enteringPlayer,seat) if seat == 0 and source == veh[player] then local accName = getAccountName ( getPlayerAccount ( enteringPlayer ) ) if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Vip" ) ) then cancelEvent() outputChatBox("This is a private car you can't steal it !",enteringPlayer,255,0,0) end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle )
  10. Chaos

    help

    still same problem warning:script.lua:3 Bad argument @ 'isElementInWater' [Expected element at argument 1, got boolean
  11. Chaos

    help

    The problem is the code is working fine but when zombie touch the water won't die directly he spend a lot of time to die
  12. Chaos

    help

    not working
  13. Chaos

    help

    Guys please help
  14. Chaos

    help

    i want when the zombie touch the water die directly
  15. Chaos

    help

    it's working but the zombies die so slowly
  16. Chaos

    help

    hi, i have problem with this code not working function killzombieinwater() zombie = getElementData(source,"zombie") if isElementInWater(zombie) then killPed(zombie) end end addEventHandler("onZombieSpawn",root,killzombieinwater) i want when the zombie spawn and hit the water then he will die
  17. Chaos

    shield ajuda

    Try this function pedLoad () local ped = createPed ( 120, 5540.6654, 1020.55122, 1240.545 ) local x, y, z = getElementPosition ( ped ) local theObject = createObject ( 980, x, y, z, 0, 0, 0) attachElements (theObject, ped, 0, 0, 5 ) end addEventHandler ( "onResourceStart", getResourceRootElement(), pedLoad )
  18. bindKey ( "horn", "down", horn )
  19. Chaos

    Client checks

    function behehehe() player = localPlayer kills = getElementData(player,"Zombie kills") if kills > 12 then outputChatBox("ok", 0,255,0) else outputChatBox("lol" ,255,0,0) setElementFrozen ( player, true) end end addCommandHandler("omg", behehehe)
×
×
  • Create New...