15.04.2017, 22:57
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:
Then, when someone types the correct password you must use SetSpawnInfo and TogglePlayerSpectating again to let him spawn.
In order to avoid them you should do:
PHP код:
public OnPlayerConnect(playerid)
{
/* Whatever */
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
TogglePlayerSpectating(playerid, true);
/* Show dialogs here. */
return 1;
}