SA-MP Forums Archive
Help me - 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 (/showthread.php?tid=600050)



Help me - SteSte - 03.02.2016

I am sry this is the wrongplace but how do I give reputation to someone.

How do I make a cmd when you use it your skin changes, leave the skin part for me to edit what the skin should be For example /transform, then their skin change to what ever skin I choose for the player to become


Re: Help me - Zamora - 03.02.2016

Here it is:


That star
pawn Код:
CMD:transform(playerid, var[])
{
    new skin, user;
    if(sscanf(var, "ui", user, skin)) return SendClientMessage(playerid, COLOR_WHITE, "** [Usage]: /transform [playerid] [skinid]");
    if(skin > 311 || skin < 1) return SendClientMessage(playerid, COLOR_GRAD2, "* You've entered an invalid skin ID.");
    SetPlayerSkin(user, skin);
    return 1;
}



Re: Help me - SteSte - 03.02.2016

Thanks Zamora that helps