15.04.2013, 16:09
Hello!
I have one problem :/ I have a command /changeskin [skinid], but when a player type it and then he die, then he must to type /changeskin again..How can I fix that?
Thanks
I have one problem :/ I have a command /changeskin [skinid], but when a player type it and then he die, then he must to type /changeskin again..How can I fix that?
PHP код:
CMD:changeskin(playerid, params[])
{
new skinid;
new string[160];
if(sscanf(params, "d", skinid)) return SendClientMessage(playerid, COLOR_ORANGE, "Usage: /changeskin [id]");
if(skinid == 268) return SendClientMessage(playerid, COLOR_RED, "ERROR: You are Not Allowed To Use This Skin!");
if(skinid < 0 || skinid > 299) return SendClientMessage(playerid, COLOR_RED, "ERROR: Invalid Skin Model! (0-299)");
SetPlayerSkin(playerid, skinid);
format(string, sizeof(string), "[SYSTEM]: %s Has Changed His Skin To id %d", GetName(playerid), skinid);
SendClientMessageToAll(COLOR_PURPLE, string);
return 1;
}
