how do I deny a spawn request?
#1

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? :/
Reply
#2

return false;
}
return true;
}
Reply
#3

pawn Код:
if(logged[playerid] == 0)
    {
    SendClientMessage(playerid, 0xFF0000AA, "You must be logged in to start playing");
    return 0;
    }
Reply
#4

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

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

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
Use gametext to instead
Reply
#7

alroiiity thanks DDDDDDDDDD <--- spam oh noes
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)