Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function toggleStaffMode(thePlayer)
- if (getPlayerAccount(thePlayer)) then
- local accName = getAccountName ( getPlayerAccount ( thePlayer ) )
- if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then
- if (getElementData(thePlayer,"invincible")) then
- setElementData(thePlayer,"invincible",false)
- outputChatBox("Staff Mode is now off.",thePlayer,255,255,255)
- else
- setElementData(thePlayer,"invincible",true)
- outputChatBox("Staff Mode is now on.",thePlayer,255,255,255)
- end
- end
- end
- end
- addCommandHandler("gostaff",toggleStaffMode)
Add Comment
Please, Sign In to add comment