Ab-47 Posted February 7, 2013 Share Posted February 7, 2013 AP = Admin Panel Ahoi guys, after some time of scripting I've come across a few functions and an addition to the existing admin panel that could be added. It would make scripting a bit more easy than it is at the moment. So the admin panel addition would be; 'Set Occupation' This addition will give you the ability to create an occupation selection and the ability to set a players occupation just like the 'Set Team' button in the admins panel. This would be a cool extra addition to the admins panel and would give many non-scripters a satisfaction. With this addition of the admins panel, I've come up with a few functions that can be used; 'createOccupation' 'setPlayerOccupation' 'getPlayerOccupation' 'countPlayersInOccupation' 'getOccupationColor' 'getOccupationFromName' 'setOccupationName' 'setOccupationFriendlyFire' So that's the occupation function + addition, here's some extra functions I was thinking about; 'isPlayerAdmin' This function will be used to retrieve data if the player is an admin or not. Required Syntax; int isPlayerAdmin ( player thePlayer ) Required Arguments; thePlayer: The player whose admin data you want to determine. Returns; Returns the admin data as an int, or false if the player is invalid. That's all I can think of atm, sorry if this suggestion was suggested before, I couldn't seem to find that topic. Also sorry if I didn't give required information. Get voting Link to comment
Anderl Posted February 7, 2013 Share Posted February 7, 2013 To find if an object is in an ACL group, there's already IsObjectInACLGroup. Link to comment
Recommended Posts