skin change with command - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: skin change with command (
/showthread.php?tid=71186)
skin change with command -
luma - 30.03.2009
how i can change my skin with a command??
(if i type /buyskin [skinID], i change my skin)
Re: skin change with command -
Pyrokid - 30.03.2009
SetPlayerSkin. Although when they die their skin will change back to normal.
Re: skin change with command -
luma - 30.03.2009
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.