View Single Post
psychonic

BAFFLED
Join Date: May 2008
Old 12-15-2010 , 13:33   Re: [Alien Swarm] Finding current equipped weapon name
Reply With Quote #53

Try this one.

The Ready functions work a little differently in this and a Sourcemod 1.4 dev snapshot is required for IsPlayerReady (though the toggle will work fine on 1.3.x). Also, it's possible that IsPlayerReady will crash the server if I fubar'd the gamedata. Don't test on a live one.

Code:
/**  * Returns whether or not a player is marked as ready.  *  * @param client        Client index  * @return              True if player is ready, else false  * @error               Invalid client or unsupported  */ native bool:Swarm_IsPlayerReady(client); /**  * Toggles a player's ready status  *  * @param client        Client index  * @noreturn  * @error               Invalid client  */ native Swarm_TogglePlayerReady(client);
Attached Files
File Type: smx swarmtools.smx (8.4 KB, 137 views)
File Type: sp Get Plugin or Get Source (swarmtools.sp - 236 views - 12.0 KB)
File Type: txt swarmtools.games.txt (1.1 KB, 134 views)
File Type: inc swarmtools.inc (9.7 KB, 124 views)
psychonic is offline