20.05.2014, 00:53
(
Последний раз редактировалось SickAttack; 20.05.2014 в 03:57.
)
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[128], skinstring[128];
sscanf(text, "s[128]", skinstring);
if(strval(skinstring) < 1 || strval(skinstring) > 299)
{
SetPlayerSkin(playerid, strval(skinstring));
format(string, sizeof(string), "** Your skin has been set to the skin with the id %s.", skinstring);
SendClientMessage(playerid, COLOR_WHITE, string);
return 0;
}
else
{
format(string, sizeof(string), "** The skin %s doesn't exist.", skinstring);
SendClientMessage(playerid, COLOR_WHITE, string);
return 0;
}
return 1;
}