18.01.2018, 19:03
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.
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; }