Jump to content

Few extra functions + Addition of default AP


Ab-47

Is this necessarily needed?  

3 members have voted

  1. 1. Is this necessarily needed?

    • Yes.
      1
    • No.
      2
    • Neutral.
      0


Recommended Posts

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...