Class selection buttons
#5

Generally that happens when dialogs are shown in OnPlayerConnect, then the user types the password and while it's processing you get into OnPlayerRequestClass and those buttons appear.

In order to avoid them you should do:
PHP код:
public OnPlayerConnect(playerid)
{
    
/* Whatever */
    
return 1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
    
TogglePlayerSpectating(playeridtrue);
    
/* Show dialogs here. */
    
return 1;

Then, when someone types the correct password you must use SetSpawnInfo and TogglePlayerSpectating again to let him spawn.
Reply


Messages In This Thread
Class selection buttons - by 1nspire - 15.04.2017, 22:43
Re: Class selection buttons - by DarkSkull - 15.04.2017, 22:45
Re: Class selection buttons - by 1nspire - 15.04.2017, 22:54
Re: Class selection buttons - by DarkSkull - 15.04.2017, 22:55
Re: Class selection buttons - by RIDE2DAY - 15.04.2017, 22:57
Re: Class selection buttons - by 1nspire - 16.04.2017, 09:03
Re: Class selection buttons - by iggy1 - 16.04.2017, 09:21
Re: Class selection buttons - by 1nspire - 16.04.2017, 11:17

Forum Jump:


Users browsing this thread: 1 Guest(s)