Skin reset
#2

Use variables to detect that.
EX:
pawn Код:
new IsPlayerOnWork[MAX_PLAYERS];
// OnPlayerConnect
IsPlayerOnWork[playerid] = 0;
// OnDisconnect
IsPlayerOnWork[playerid] = 0;
// On Command /Work
if(!strcmp("/work",cmdtext))
    {
    if(IsPlayerOnWork[playerid] == 1)
    {
        IsPlayerOnWork[playerid] = 0;
        SendClientMessage(playerid,-1,"You Are Now Off Duty!");
        SetPlayerSkin(playerid, 277);
    else
    {
        IsPlayerOnWork[playerid] = 1;
        // More Code Of Yours
        return 1;
    }
Reply


Messages In This Thread
Skin reset - by Stm - 29.07.2012, 12:33
Re: Skin reset - by Littlehelper - 29.07.2012, 12:39
Re: Skin reset - by KingyKings - 29.07.2012, 12:39
Re: Skin reset - by Devilxz97 - 29.07.2012, 12:39
Re: Skin reset - by Stm - 29.07.2012, 12:58
Re: Skin reset - by Devilxz97 - 29.07.2012, 13:10
Re: Skin reset - by Stm - 29.07.2012, 13:15
Re: Skin reset - by Littlehelper - 29.07.2012, 13:16
Re: Skin reset - by Devilxz97 - 29.07.2012, 13:55

Forum Jump:


Users browsing this thread: 1 Guest(s)