SA-MP Forums Archive
Skin Input after login - 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: Skin Input after login (/showthread.php?tid=570972)



Skin Input after login - Chausar - 14.04.2015

hey guys help me... i want the player forced to put the skin id 1 in
Код:
DIALOG_STYLE_INPUT
and make them spawn after put the id .. help me! here's the login script i used...http://pastebin.com/f481d9d37


Re: Skin Input after login - iiNzTicTx - 14.04.2015

https://sampwiki.blast.hk/wiki/How_to_Create_a_Dialog

https://sampwiki.blast.hk/wiki/SetSpawnInfo

https://sampwiki.blast.hk/wiki/SetPlayerSkin

Reminder: OnDialogResponse, the inputtext[] string is the user input,

pawn Код:
if(dialogid == SKININPUTID)
{
    new skinid = strval(inputtext); //transforms to int form from string.
    if(skinid > 311 && skinid < 0) //SAMP 0.3.7 skins range
        return SendClientMessage(playerid, -1, "invalid"); //return an error or loop back to dialog?

    SetPlayerSkin(playerid, skinid); //set the player's skin

}