Wtf -_-
#1

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;
}
Reply
#2

Do you get any errors upon compiling? You should also learn to indent!
Reply
#3

It is indented, this screwed it up, and no errors.
Reply
#4

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.
Reply
#5

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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)