daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -----------------------------------
  2. --Skin and admin godmode functions:
  3. -----------------------------------
  4. function skinGod ( theplayer , attacker, weapon, bodypart )
  5.     if getPedSkin ( source, 217 ) then
  6.         cancelEvent()
  7.     end
  8. end
  9. addEventHandler ( "onPlayerDamage", getRootElement (), skinGod )
  10.  
  11. -----------------
  12. --Team Functions:
  13. -----------------
  14.  
  15.  
  16. function createAdminTeamOnStart ()
  17.     AdminTeam = createTeam ( "Staff", 255, 255, 255 )
  18. end
  19. addEventHandler("onResourceStart", resourceRoot, createAdminTeamOnStart)
  20.  
  21. function setAdminTeam()
  22. if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Level-1")) then
  23.    setPlayerTeam(source, AdminTeam)
  24.    setPedSkin ( source, 217   )
  25.    end
  26. end
  27. addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top