/onduty
#2

Ain't hard. Here is the basic:
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;
}
Command: /onduty, will automatic go offduty when you are already onduty.
Reply


Messages In This Thread
/onduty - by viosteaua98 - 15.10.2011, 23:28
Re: /onduty - by Kingunit - 15.10.2011, 23:34

Forum Jump:


Users browsing this thread: 1 Guest(s)