Check if player is spawned
#4

Heres a perfect solution to your issue!
https://sampforum.blast.hk/showthread.php?tid=647031

You can copy the IsPlayerSpawned in your code.

Edit: You can just have it here.
Code:
IsPlayerSpawned(playerid)
{
	new pState = GetPlayerState(playerid);
	
	return 0 <= playerid <= MAX_PLAYERS && pState != PLAYER_STATE_NONE && pState != PLAYER_STATE_WASTED && pState != PLAYER_STATE_SPECTATING;
}
Reply


Messages In This Thread
Check if player is spawned - by Sting. - 18.01.2018, 18:34
Re: Check if player is spawned - by Pravin - 18.01.2018, 18:47
Re: Check if player is spawned - by aoky - 18.01.2018, 18:59
Re: Check if player is spawned - by Ritzy2K - 18.01.2018, 19:03
Re: Check if player is spawned - by Sting. - 18.01.2018, 19:16

Forum Jump:


Users browsing this thread: 2 Guest(s)