Wtf -_- - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Wtf -_- (
/showthread.php?tid=161165)
Wtf -_- -
-Rebel Son- - 19.07.2010
Ok so, I made a splash screen for my server, and i want it to not spawn the player till they read it. But the screen comes up, and you can still spawn. even thought i made a variable to stop spawning.
Код:
public OnPlayerSpawn(playerid)
{
if (IsSpawned[playerid] == 0)
{
SendClientMessage ( playerid, COLOR_RED, "** You must wait before spawning." );
}
AntiDeAMX();
return false;
}
Re: Wtf -_- -
Scenario - 19.07.2010
Do you get any errors upon compiling? You should also learn to indent!
Re: Wtf -_- -
-Rebel Son- - 19.07.2010
It is indented, this screwed it up, and no errors.
Re: Wtf -_- -
Betamaster - 19.07.2010
If you want to prevent the player from spawning in the class selection, return 0 (or false) in OnPlayerRequestSpawn. You will then need to specifically call SpawnPlayer for the player to spawn.
Re: Wtf -_- -
Scenario - 19.07.2010
Quote:
Originally Posted by Betamaster
If you want to prevent the player from spawning in the class selection, return 0 (or false) in OnPlayerRequestSpawn. You will then need to specifically call SpawnPlayer for the player to spawn.
|
Yeah, I was leading to there, just making sure...