help me with skin! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help me with skin! (
/showthread.php?tid=535405)
help me with skin! -
Barnwell - 03.09.2014
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!
Код:
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;
}
Re: help me with skin! -
Pawnify - 03.09.2014
The code you have there, will set the players skin to whatever number you put after /clothes.
If you want a skin selection I suggest downloading one.
Re: help me with skin! -
Rifa4life - 03.09.2014
Yes, for skin selection you will either have to write a script with TextDraws or SetPlayerSkin and arrow keys, but I suggest that you look for one on the forums and download it.
Re: help me with skin! -
LeroyII - 03.09.2014
Quote:
Originally Posted by Pawnify
The code you have there, will set the players skin to whatever number you put after /clothes.
If you want a skin selection I suggest downloading one.
|
That's right. So do as he suggested or try to create dialog on your own. I recommend to do as he said. Much faster, easier and less trouble!