Keeps showing in Login screen
#9

Using return will stop the loop and the second message will not be sent.

The timer will be called every 30 seconds and the messages will be sent. If you want to prevent from being displayed when you're spawned, the use a variable to check it.
pawn Код:
// global:
new bool: Player_Spawned[MAX_PLAYERS char];

// OnPlayerConnect:
Player_Spawned{playerid} = false;

// OnPlayerSpawn:
Player_Spawned{playerid} = true;

// OnPlayerDeath:
Player_Spawned{playerid} = false;
and in the loop:
pawn Код:
if (Player_Spawned{i}) continue; // If the player is spawned, skip and don't send the message
You may need to check if the player is not in spectating mode.
Reply


Messages In This Thread
Keeps showing in Login screen - by gotwarzone - 15.04.2014, 11:47
Re: Keeps showing in Login screen - by IceBilizard - 15.04.2014, 12:08
Re: Keeps showing in Login screen - by gotwarzone - 15.04.2014, 12:09
Re: Keeps showing in Login screen - by IceBilizard - 15.04.2014, 12:10
Re: Keeps showing in Login screen - by gotwarzone - 15.04.2014, 12:16
Re: Keeps showing in Login screen - by IceBilizard - 15.04.2014, 12:17
Re: Keeps showing in Login screen - by iBanner - 15.04.2014, 12:24
Re: Keeps showing in Login screen - by gotwarzone - 15.04.2014, 12:50
Re: Keeps showing in Login screen - by Konstantinos - 15.04.2014, 12:56
Re: Keeps showing in Login screen - by gotwarzone - 15.04.2014, 13:05

Forum Jump:


Users browsing this thread: 1 Guest(s)