20.03.2011, 02:13
if i accidently type /skin [over id299] i get crashed , how i fix it
pawn Код:
COMMAND:skin(playerid, params[])
{
if(PlayerData[playerid][AdminLevel] > 0)
{
new string[128], skinid;
if(sscanf(params, "d", skinid)) return SendClientMessage(playerid,0xFF0000FF, "USAGE: /skin [id]");
SetPlayerSkin(playerid, skinid);
format(string, sizeof(string), "You have set your skin ID to %d", skinid);
SendClientMessage(playerid,0xFF9900AA, string);
}
else return SendClientMessage(playerid,0xFF0000FF, "ERROR: Your admin level isn't high enough!");
return 1;
}