Skin command
#3

use ForceClassSelection

wiki

Код:
command(skin, playerid, params[])
{
    new skinid;
    if(PlayerInfo[playerid][Freeze] == 1) return GameTextForPlayer(playerid, "~g~you cant use commands while being ~n~~g~frozen",4500,3);
    if(PlayerInfo[playerid][Jail] == 1) return GameTextForPlayer(playerid,"~g~Player is not in freeroam",2500,3);
    if(indm[playerid] >= 1) return GameTextForPlayer(playerid,"~g~You are not in freeroam",2500,3);
    if(PlayerInfo[playerid][Jail] == 1) return GameTextForPlayer(playerid,"~g~Player is not in freeroam",2500,3);
    if(sscanf(params, "d", skinid)) ForceClassSelection(playerid);
    else if(skinid < 0 || skinid > 311) return 0;
    else
    {
        SetPlayerSkin(playerid, skinid);
        ForceClassSelection(playerid);
    }
    return 1;
}
Reply


Messages In This Thread
Skin command - by iMouiz - 14.07.2015, 13:52
Re: Skin command - by X337 - 14.07.2015, 14:00
Re: Skin command - by iTakelot - 14.07.2015, 14:30

Forum Jump:


Users browsing this thread: 1 Guest(s)