15.10.2011, 23:34
Ain't hard. Here is the basic:
Command: /onduty, will automatic go offduty when you are already onduty.
pawn Код:
new Duty[ MAX_PLAYERS ]
CMD:onduty(playerid, params[])
{
if( Duty[ playerid ] == 0 )
{
Duty[ playerid ] = 1;
SetPlayerSkin(playerid, 294);
GivePlayerWeapon(playerid, 38, 999);
// Get the player's skin and store it.
}
else
{
Duty[ playerid ] = 0;
RemovePlayerWeapons(playerid);
// Set the old players skin back.
}
return 1;
}