03.09.2014, 16:56
i have a server and when i go clothes and i type /clothes [skinid] why give me skinid? i want skin selection how?
i can do this + rep who help me!
here the cmds!
i can do this + rep who help me!
here the cmds!
Код:
YCMD:clothes(playerid, params[], help) {
if(help) {
SendClientMessage(playerid, X11_WHITE, "Used for changing a players clothes");
return 1;
}
new skinid;
if(!IsPlayerInRangeOfPoint(playerid, 15.0, 210.047988, -102.005409, 1005.257812)) {
SendClientMessage(playerid, X11_TOMATO_2, "You aren't at Bincos!");
return 1;
}
if(!sscanf(params, "d", skinid)) {
if(IsValidSkin(skinid) && IsSkinAllowed(playerid, skinid)) {
setCharacterSkin(playerid, skinid);
}
else return SendClientMessage(playerid,X11_TOMATO_2,"This is a restricted clothes!");
} else {
SendClientMessage(playerid, X11_WHITE, "USAGE: /clothes [clothesid]");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Hint: {FFFFFF}A list of skin IDs can be found here: http:/wiki.sa-mp.com/wiki/Category:Skins");
}
return 1;
}


