Posts: 1,241
Threads: 304
Joined: May 2012
Reputation:
0
Hi. Can someone please help me disable the spawn button before choosing a player(OnPlayerRequestClass)?
EDIT: I only want to show the spawn button right exactly when choosing skin/player comes, not before when game still loading.
Posts: 68
Threads: 11
Joined: Jun 2014
Reputation:
0
That solution completely skips the Class Selection.
You want to disable the Spawn button, or better to say take control of it...
Actually it's currently impossible in SAMP, we hope they give us more control on Class Selection and before it, like Camera routing before Class Selection in later versions.
Posts: 316
Threads: 49
Joined: Sep 2011
You could create your own class selection, obviously after you TogglePlayerSpectating(playerid,true);, if you don't include that before your class selection the 'Spawn' button will still be visible.
Posts: 1,241
Threads: 304
Joined: May 2012
Reputation:
0
thanks guys. what my other option is to make a small box textdraw that will hide the spawn button and make a timer then destroy the textdraw onplayerrequestclass.
Posts: 127
Threads: 6
Joined: May 2013
Reputation:
0
public OnPlayerRequestClass(playerid, classic){
// code
return 0;
}
Posts: 373
Threads: 59
Joined: Jun 2014
Reputation:
0
What's the point of this?