Players can spawn while in tutorial
#1

After players have registered they are still in the screen with: < > Spawn
So with text they need to read what the server is about and how to get started etc. But they can just click "spawn".
How can I disable that?
Reply
#2

Search for SpawnPlayer(playerid);
Reply
#3

Put the player in Spec mode: TogglePlayerSpectating.

https://sampwiki.blast.hk/wiki/TogglePlayerSpectating
Reply
#4

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if( ... tutorial is in progress ... )
    {
        SendClientMessage(playerid, 0xFF0000FF, "You cannot spawn at the moment. Wait for the tutorial to be finished.");
        return 0; //prevent them from spawning
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)