Skin Input after login
#1

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

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

}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)