Jump to content

golanu21

Members
  • Posts

    650
  • Joined

  • Last visited

Everything posted by golanu21

  1. oh... i got this, thanx
  2. var = dxDrawText("Misiunea 1", 933, 33, 1076, 45, tocolor(255, 255, 255, 255), 1.00, "diploma", "left", "top", false, false, true, false, false) like this .. and how i modify it ?
  3. golanu21

    Login Handler

    "username" is not defined "password" is not defined make it like this getAccount(getPlayerName(source))
  4. hi guys i can modify the this dxText with other function dxDrawText("Misiunea 1", 933, 33, 1076, 45, tocolor(255, 255, 255, 255), 1.00, "diploma", "left", "top", false, false, true, false, false) for the example when something happening this text to modify..
  5. golanu21

    help

    and when player login, how i make ? like this ? function exp2(_, playeraccount) if (playeraccount) then local exp = getAccountData( playeraccount, "level") if (exp) then --there idk what i need to type ... end addEventHandler("onPlayerLogin", getRootElement(), exp2)
  6. golanu21

    help

    if progCount == 0 then guiSetText(nivlab, "0") guiProgressBarSetProgress ( progressBar, ( guiProgressBarGetProgress ( progressBar ) + 50) ) setElementData(getLocalPlayer(), "lvl1", progCount) ------ elseif progCount == 1 then guiSetText(nivlab, "1") guiProgressBarSetProgress ( progressBar, ( guiProgressBarGetProgress ( progressBar ) + 45) ) like this ?
  7. golanu21

    help

    and how i store the "progCount" for setElementData?
  8. golanu21

    help

    client if progCount == 0 then guiSetText(nivlab, "0") guiProgressBarSetProgress ( progressBar, ( guiProgressBarGetProgress ( progressBar ) + 50) ) elseif progCount == 1 then guiSetText(nivlab, "1") guiProgressBarSetProgress ( progressBar, ( guiProgressBarGetProgress ( progressBar ) + 45) ) function saveexp() triggerServerEvent("lvl", getLocalPlayer(), progCount) end addEventHandler("onPlayerQuit", getRootElement(), saveexp) server function greetingHandler ( progCount ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then -- if the player is logged in setAccountData ( playeraccount, "level", progCount ) -- save it in his account end end addEvent( "lvl", true ) addEventHandler( "lvl", getRootElement(), greetingHandler ) function exp2(_, playeraccount) if (playeraccount) then local exp = getAccountData( playeraccount, "level") if (exp) then --there idk what i need to type ... end addEventHandler("onPlayerLogin", getRootElement(), exp2) i want to setAccountData the progCount (level)
  9. golanu21

    time out problem

    on defaul value it's worked but players can't connect...
  10. thanx so much man
  11. and how i do the script when i kill 3 zombies then........ give me the essential please
  12. function deanimated( ammo, attacker, weapon, bodypart ) if (attacker) then if (getElementType ( attacker ) == "player") and (getElementType ( source ) == "ped") then if (getElementData (source, "zombie") == true) then local oldZcount = getElementData ( attacker, "Zombie kills" ) if oldZcount ~= false then setElementData ( attacker, "Zombie kills", oldZcount+1 ) triggerEvent ( "onZombieWasted", source, attacker, weapon, bodypart ) else setElementData ( attacker, "Zombie kills", 1 ) triggerEvent ( "onZombieWasted", source, attacker, weapon, bodypart ) end end end end end addEventHandler("onPedWasted", resourceRoot, deanimated) this function ?
  13. i don't understand what you make there, man i want when player kill 3 zombies to do something ..
  14. golanu21

    help zombie

    how i make with exp_system something like this : getZombieKills (i want when player kill 3 zombies to do something
  15. golanu21

    help

    function playerspawn () spawnPlayer(source, -1429.29822, 507.31195, 18.22944, -90, 0) end addEventHandler("onPlayerLogin", getRootElement(), playerspawn) function join () setCameraMatrix(source, -1443.07190, 507.24130, 29.70967, -1373.97998, 507.68015, 18.23438) end addEventHandler("onPlayerJoin", getRootElement(), join) function spawn () toggleAllControls(source, false) setTimer(toggleAllControls, 10000, 1, source, true) setCameraMatrix(source, -1443.07190, 507.24130, 29.70967, -1373.97998, 507.68015, 18.23438) setTimer(setCameraTarget, 10000, 1, source) outputChatBox("Bun Venit Pe ROMANIA-ZOMBIE-RPG///Gamemode By HamsYu", source, 255, 0, 0, false) setControlState(source, "forwards", true) setTimer(setControlState, 10000, 1, source, "forwards", false) end addEventHandler("onPlayerSpawn", getRootElement(), spawn) i make that, and when i enter on server the login panel is appear, i login , and then black screen ... and exp gui is on...
  16. golanu21

    time out problem

    yes, now is allowed but your site https://nightly.multitheftauto.com/ports/, show same problem ..
  17. *Zombie Survival/RPG. deja lucrez... am facut multe chestii, ,te rog sa faci alt ceva
  18. you can tell me how i use it ?, because on wiki i dont understand
  19. golanu21

    time out problem

    -- the ports work -- this is the OPENPORTS and this is your site : "https://nightly.multitheftauto.com/ports"
  20. golanu21

    help

    i can do that ? add event on a function ?
  21. --EDIT function spawn () toggleAllControls(source, false) setTimer(togleAllControls, 10000, 1, source, true) setControlState(source, "forwards", true) setTimer(setControlState,10000, 1, source, "forwards", false) end addEventHandler("onPlayerSpawn", getRootElement(), spawn) setTimer(spawn, 10000, 1) how i make after 10 sec to stop forcing "forwards" ?and the toggleControls to come back to true ?
  22. golanu21

    help

    ok, thx The Master
  23. golanu21

    help

    man, you can give me an simple example pls ?
×
×
  • Create New...