Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. ahhhhhhhhhhhhhhhhhh i forgot about that "getRootElement()"
  2. dont know i tryed many things like EX colors and nothing works.
  3. yeah, i was wondering why he dint used yours.
  4. this is what u want i think function radioChat( player, cmd, ... ) local message = table.concat({...}," ") outputChatBox ("*RADIO: "..message) end addCommandHandler("r",radioChat) i dint put the player who types, should i put?
  5. Thanks guys it worked! Edit: why this dosnt work function drawList() for num,this_player in ipairs(players) do r, g, b = getPlayerNametagColor( this_player ) local plname = getPlayerName(this_player) dxDrawText(plname,300,150+num*16,tocolor( r or 255, g or 255, b or 255, 255 )) end end i try to set any color and nothing works.
  6. ok i have a question, if u dont share it why u say u made it?. in my opinion is kinda useless
  7. hey im wondering how to make a players list like a gridlist but with DX functions, if someone could tell me.
  8. Hmmm a friend already helped me, now i have to test and if dont works i post client part.
  9. local root = getRootElement() addEventHandler("onResourceStart", root, function() team = createTeam ("Z.A.R.S.", 0, 0, 255) end ) function login() local taccount = getPlayerAccount ( source ) if isZarAccount(taccount) then setPlayerTeam ( source, team) outputChatBox ("Welcome to Zombie Apocalypse Rescue Squad HQ", source) spawnPlayer (source, -2246.7751464844, 2283.3193359375, 5, 90, math.random(0,264), team ) giveWeapon (source, 3, 1) giveWeapon (source, 24, 500) giveWeapon (source, 29, 500) giveWeapon (source, 31, 500) giveWeapon (source, 17, 500) fadeCamera (source, true) setCameraTarget (source, true) else end end addEventHandler("onPlayerLogin", root,login) function isZarAccount(account) local nick = "" local group = aclGetGroup("[Z.A.R.S]") if (account and group) then nick = string.lower(getAccountName(account) or "") for _, object in ipairs(aclGroupListObjects(group) or {}) do if (gettok(object, 1, string.byte('.')) == "user") then if (nick == string.lower(gettok(object, 2, string.byte('.')))) then return true end end end end return false end function spawn(source) spawnPlayer (source, -2246.7751464844, 2283.3193359375, 5, 90, math.random(0,264), team ) giveWeapon (source, 3, 1) giveWeapon (source, 24, 500) giveWeapon (source, 29, 500) giveWeapon (source, 31, 500) giveWeapon (source, 17, 500) fadeCamera (source, true) setCameraTarget (source, true) end addEventHandler("onPlayerWasted", root, function() local taccount = getPlayerAccount ( source ) if isZarAccount(taccount) then setTimer(spawn, 1800, 1, source) end end ) this should work, at least works for me
  10. gate = createObject(985,-714.02056884766, 957.98352050781, 11.239881515503, 0, 0, 270.27014160156) function moveGate(thePlayer) if (isGuestAccount(getPlayerAccount(thePlayer)) == false) then local taccount = getPlayerAccount (thePlayer) if isAccount(taccount) then moveObject(gate,5000, -713.83947753906, 957.50561523438, 5.2818431854248 ) setTimer(moveBack,5000,1) else end end end addCommandHandler ( "open", moveGate ) function moveBack() moveObject (gate, 5000, -714.02056884766, 957.98352050781, 11.239881515503 ) end function isAccount(account) local nick = "" local group = aclGetGroup("[Z.A.R.S]") if (account and group) then nick = string.lower(getAccountName(account) or "") for _, object in ipairs(aclGroupListObjects(group) or {}) do if (gettok(object, 1, string.byte('.')) == "user") then if (nick == string.lower(gettok(object, 2, string.byte('.')))) then return true end end end end return false end
  11. Hmmm i can make a example then u edit the cordinates of gate etc.
  12. Sure dude, this is a help forum. btw u have a msn or somthing? to dont post like 100 post
  13. lol okay, im off soon anyway
  14. I dont think this will work , maybe u should try like this, local root = getRootElement() addEventHandler("onResourceStart", root, function() team = createTeam ("Z.A.R.S.", 0, 0, 255) end ) function login() local taccount = getPlayerAccount ( source ) if isZarAccount(taccount) then setPlayerTeam ( source, team) outputChatBox ("Welcome to Zombie Apocalypse Rescue Squad HQ", source) spawnPlayer (source, -2246.7751464844, 2283.3193359375, 5, 90, math.random(0,264), team ) giveWeapon (source, 3, 1) giveWeapon (source, 24, 500) giveWeapon (source, 29, 500) giveWeapon (source, 31, 500) giveWeapon (source, 17, 500) fadeCamera (source, true) setCameraTarget (source, true) else end end addEventHandler("onPlayerLogin", root,login) function isZarAccount(account) local nick = "" local group = aclGetGroup("[Z.A.R.S]") if (account and group) then nick = string.lower(getAccountName(account) or "") for _, object in ipairs(aclGroupListObjects(group) or {}) do if (gettok(object, 1, string.byte('.')) == "user") then if (nick == string.lower(gettok(object, 2, string.byte('.')))) then return true end end end end return false end
  15. Make it if u got problems call me o.. okay ill just try it, watch the biggest fail, never worked with acl's before ill just take your script and add some lines He asked for give weapons if im right then add lines "giveWeapon(source,weaponid,ammo)"
  16. I do same one for race scripting and other for normal stuff like roleplay dm etc
  17. Make it if u got problems call me
  18. Actually i cant add them too and i have the new version
  19. lol no just use my way editing by hand the acl.xml i can edit it for you if u post here your acl.xml.
  20. Ask that to admin panel author, lil_toady. not to me i dint made it
  21. Exactly!, thats why i told him that way
  22. u can also but i was telling the way i use
  23. omg "made"? what u mean the acl.xml must be there ever cause without that u cant be admin etc, is located at server folder in "MTA San Andreas\server\mods\deathmatch\" when u there open it with notepad or somthing like it and add under any group,
  24. Dont confuse him! he asked to refresh acls not add members . he can do much easier opening acl.xml.
×
×
  • Create New...