14.07.2015, 14:30
use ForceClassSelection
wiki
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; }