help me with skin!
#1

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;
}
Reply
#2

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.
Reply
#3

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.
Reply
#4

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)