[Question] Disabling class selection entirley
#1

I've been trying to disable class selection entirley but seems like it still appears, however it doesn't do anything.

I returned 0 on the OnPlayerRequestClass callback but I can still see those arrows and the spawn button.

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    return 0;
}
Is there any way to disable it completly?
Reply
#2

pawn Код:
public OnPlayerConnect(playerid)
{
    SpawnPlayer(playerid);
    return 1;
}
NOTE: Untested
Reply
#3

TogglePlayerSpectating when they are on Player Request Class
Reply
#4

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetSpawnInfo(...);
    SpawnPlayer(playerid);
    return 1;
}
Reply
#5

Quote:
Originally Posted by Romel
Посмотреть сообщение
TogglePlayerSpectating when they are on Player Request Class
Thanks much, that worked
Reply
#6

No Problem.

Note: Don't forget to turn the spectating off when they spawn.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)