28.06.2012, 14:03
Hey i script this cmd but its not working
please help to fix it
please help to fix it
pawn Код:
CMD:setmyskin(playerid,params[]) {
new tmp[128], tmp2[128], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /setmyskin [ID]");
new player1 = strval(tmp), skin = strval(tmp2),string[128];
if(!IsValidSkin(skin)) return SendClientMessage(playerid, red, "ERROR: Invaild Skin ID");
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
format(string,sizeof(string),"|- You have set your skin to %d -|", skin); SendClientMessage(playerid,yellow,string);
return SetPlayerSkin(player1, skin);}
return 1;}