Skin reset
#8

Quote:
Originally Posted by Devilxz97
Посмотреть сообщение
pawn Код:
new IsPlayerOnWork[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    IsPlayerOnWork[playerid] = 0;
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    IsPlayerOnWork[playerid] = 0;
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        if(IsPlayerOnWork[playerid] == 1)
        {
            IsPlayerOnWork[playerid] = 0;
            SendClientMessage(playerid,-1,"You Are Now Off Duty!");
            SetPlayerSkin(playerid, 0);
        }
        else
        {
            IsPlayerOnWork[playerid] = 1;
            SendClientMessage(playerid,-1,"You Are Now On Duty!");
            SetPlayerSkin(playerid, 277);
        }
        return 1;
    }
    return 0;
}
try this
This is what i meant, instead i told you to do this in commented areas, you like getting spoon-feeded.
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)