Jump to content

DaemonHunter

Members
  • Posts

    23
  • Joined

  • Last visited

Everything posted by DaemonHunter

  1. client side addEventHandler ( "onClientPlayerDamage",root, function () if getElementData(source,"invincible") then cancelEvent() end end) addEventHandler("onClientPlayerStealthKill",localPlayer, function (targetPlayer) if getElementData(targetPlayer,"invincible") then cancelEvent() end end) server side bstaffteam = createTeam ( "Staff", 255, 255, 255 ) function staff (Player) local account = getPlayerAccount(Player) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then setPlayerTeam (Player, staffteam ) setElementData(Player, "Occupation", "Staff") setElementModel ( Player, 217) end end addCommandHandler("staff",staff) addEvent("staff",true) addEventHandler("staff",getRootElement(),staff) function getPlayersInGroup( accName ) local Table = { } for _,v in pairs( getElementsByType( "player" ) ) do local accName = getAccountName ( getPlayerAccount ( v ) ) if (isObjectInACLGroup ("user." .. accName, aclGetGroup("Admin")) ) then table.insert( Table,v ) end end return Table end if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) else setElementData(thePlayer,"invincible",true) end I found this script on a forum, the question is: does this script make the admins immortal?
  2. what is the problem now? I was only asking if it is correct...
  3. for _, thePlayer in ipairs (getElementsByType("player")) do local gang = exports [ 'ROADgang' ]:getAccountGang ( getAccountName ( getPlayerAccount ( thePlayer ) ) ) if (gang == "SWAT" ) then setPedStat ( onPlayerSpawn , 24, 200 ) end end do you mean something like this?
  4. why dont you just help the guy , if you cant dont post STFU. blazy@ i think he need it with event onPlayerSpawn. what is the difference?
  5. the video has bad quality but the map is pretty good
  6. actually I really don't like the map, the area changes too often, I don't like also the music taht you've chosen for the vidieo but no matter for this particular.
  7. why dont you just help the guy , if you cant dont post He already helped, read before post these type of things. He hlped me a lot. but i didnt understnd the sentence: "because you didn't show the entire code" this is the entire code
  8. so it must be like this one? local gang = exports [ 'ROADgang' ]:getAccountGang ( getAccountName ( getPlayerAccount ( thePlayer ) ) ) if (gang == "SWAT" ) then setPedStat ( thePlayer, 24, 999 )
  9. hi guys is this codee correct? local gang = exports [ 'ROADgang' ]:getAccountGang ( getAccountName ( getPlayerAccount ( thePlayer ) ) ) if (gang == "SWAT" ) then setPedStat ( ped thePed, int 24, float 200 )
  10. another question: what is a standard player max health?
  11. but the ped are players?
  12. is it possible to increase player's max health?
  13. qualcuno saprebbe dirmi quant'è la vista di un giocatore standard?
  14. scusa ma non fai prima a postare il codice che gli diamo un occhiata?
×
×
  • Create New...