Posts: 312
Threads: 83
Joined: Feb 2012
Reputation:
0
How can i do like if player is choosing skin you can say player is underrequestclass and choosing skin. I want if player type 123 so it give player skin id 123 . I don't want to click on arrow for next skin . I have seen this system on other server. You can choose skin by typing skin id. but idk how. Anyone?
Posts: 1,246
Threads: 140
Joined: Jul 2014
Reputation:
0
you mean, there would be a command. /skin [id]?
Posts: 312
Threads: 83
Joined: Feb 2012
Reputation:
0
Nope, I mean you have to type skin number on chat and you will get your skin but it works only when you are under requestclass
Posts: 348
Threads: 26
Joined: Oct 2012
Reputation:
0
new PlayerUnderRequestClass[MAX_PLAYERS]
OnPlayerText
If(PlayerUnderRequestClass[playerid] == 1)
{
Any number typed here will choose a skin
return 0; // So your numbers will not go into chat
}
OnPlayerRequestClass
PlayerUnderRequestClass[playerid] = 1;
Posts: 470
Threads: 7
Joined: Nov 2013
Reputation:
0
Under OnPlayerRequestClass, Show a dialog (style INPUTTEXT) > when a player enters the skin id > OnDialogResponse SetPlayerSkin as the inputtext.