26.07.2012, 01:11
this cmd is not working
When ever i set then cj skin only coming
pawn Код:
CMD:skin(playerid, params[])
{
new amount,skin, string[128];
if(sscanf(params,"i",amount)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /skin [skinmodel]");
else if(amount> 299 || amount< 1) return SendClientMessage(playerid,COLOR_GREY,"Invalid skinid [1-299].");
else
{
format(string, sizeof(string),"You have set skin to %d.", amount);
SendClientMessage(playerid,COLOR_WHITE,string);
SetPlayerSkin(playerid, skin);
}
return 1;
}