Players can spawn while in tutorial - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Players can spawn while in tutorial (
/showthread.php?tid=451009)
Players can spawn while in tutorial -
arjanforgames - 15.07.2013
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?
Re: Players can spawn while in tutorial -
ScRipTeRi - 15.07.2013
Search for SpawnPlayer(playerid);
Re: Players can spawn while in tutorial -
ReVo_ - 15.07.2013
Put the player in Spec mode: TogglePlayerSpectating.
https://sampwiki.blast.hk/wiki/TogglePlayerSpectating
Re: Players can spawn while in tutorial -
Konstantinos - 15.07.2013
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;
}