1
mIRC/pawn Scripting / Re: Help!! Pawno! Command setskin (/c setskin)
« on: January 30, 2011, 04:50:36 am »
okay muchas gracias lo probare haber si queda.! Deverdad muchas gracias. =)
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
else if (strcmp(cmd, "setskin", true) == 0) {
new plr, skin[256];
tmp = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp), skin = strtok(cmdtext, idx);
else if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c setskin [Nick/ID] [Skin]");
else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
else {
SetPlayerSkin(plr,strval(skin));
}
return 1;
}
else if (strcmp(cmd, "setskin", true) == 0) {
new plr, skin[256];
tmp = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp), skin = strtok(cmdtext, idx);
else if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c setskin [Nick/ID] [Skin]");
else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
else {
SetPlayerSkin(plr,strval(skin));
}
return 1;
}