how do I deny a spawn request? - 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: how do I deny a spawn request? (
/showthread.php?tid=87423)
how do I deny a spawn request? -
Annihalation - 20.07.2009
I want to make it to where OnPlayerRequestSpawn, if they try to spawn without logging in, it wont even let them spawn. How do I do this? I searched and everything : /
Код:
public OnPlayerRequestSpawn
{
if (logged[playerid] == 0)
{
SendClientMessage(playerid, 0xFF0000AA, "You must be logged in to start playing");
// right here is where the "Deny Spawn" code should go
so how should I do this? :/
Re: how do I deny a spawn request? -
yezizhu - 20.07.2009
return false;
}
return true;
}
Re: how do I deny a spawn request? -
coole210 - 20.07.2009
pawn Код:
if(logged[playerid] == 0)
{
SendClientMessage(playerid, 0xFF0000AA, "You must be logged in to start playing");
return 0;
}
Re: how do I deny a spawn request? -
Annihalation - 20.07.2009
it works but for some reason it always sends two messages
like i get
"You must login to play"
"You must login to play"
:P ill figure it out
Re: how do I deny a spawn request? -
Correlli - 20.07.2009
It's because you're holding a spawn-key for a moment longer, it will spam with messages as long as you're going to hold the spawn-key.
Re: how do I deny a spawn request? -
yezizhu - 20.07.2009
Quote:
Originally Posted by Annihalation
it works but for some reason it always sends two messages
like i get
"You must login to play"
"You must login to play"
:P ill figure it out ![Cheesy](images/smilies/biggrin.png)
|
Use gametext to instead
Re: how do I deny a spawn request? -
Annihalation - 20.07.2009
alroiiity thanks
![Cheesy](images/smilies/biggrin.png)
DDDDDDDDDD <--- spam oh noes