skin change with command
#1

how i can change my skin with a command??

(if i type /buyskin [skinID], i change my skin)
Reply
#2

SetPlayerSkin. Although when they die their skin will change back to normal.
Reply
#3

i have some code now but its wrong...
can u correct me pls?:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/buyskin", cmdtext, true, 10) == 0)
	{
		if (skinid < 0 || skinid > 299) { SendClientMessage(playerid, COLOR_GREY, " Diesen Skin kannst du nicht nehmen !");
		}
		else if { SetPlayerSkin(playerid, skinid); }
		{
		return 1;
	}
	return 0;
}
i would make when i type the skin id after the command i get this skin id.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)