Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- elseif ( action == "setgroup" ) then
- local account = getPlayerAccount ( player )
- if ( not isGuestAccount ( account ) ) then
- local group = aclGetGroup ( "Admin" )
- if ( group ) then
- if ( data == true ) then
- aclGroupAddObject ( group, "user."..getAccountName ( account ) )
- bindKey ( player, "p", "down", "admin" )
- action = "admina"
- elseif ( data == false ) then
- unbindKey ( player, "p", "down", "admin" )
- aclGroupRemoveObject ( group, "user."..getAccountName ( account ) )
- aPlayers[player]["chat"] = false
- action = "adminr"
- end
- for id, p in ipairs ( getElementsByType ( "player" ) ) do
- if ( hasObjectPermissionTo ( p, "general.adminpanel" ) ) then triggerEvent ( "aSync", p, "admins" ) end
- end
- else
Advertisement
Add Comment
Please, Sign In to add comment