OnPlayerText doesn't work.
#4

Quote:
Originally Posted by ServerFiles
Посмотреть сообщение
It's working if I removed " GetPlayerState(playerid) " functions.

but if I added it, it's still working but the format won't appear.
Well if you want to check if player is spawned then you need to use this function because your way doesn't work always.

PHP код:
stock bool:IsPlayerSpawned(playerid)
{
    new 
pState GetPlayerState(playerid);
    return 
<= playerid MAX_PLAYERS && pState != PLAYER_STATE_NONE && pState != PLAYER_STATE_WASTED && pState != PLAYER_STATE_SPECTATING;

Reply


Messages In This Thread
OnPlayerText doesn't work. - by ServerFiles - 14.09.2018, 11:30
Re: OnPlayerText doesn't work. - by AmirSavand - 14.09.2018, 12:06
Re: OnPlayerText doesn't work. - by ServerFiles - 14.09.2018, 13:51
Re: OnPlayerText doesn't work. - by AmirSavand - 14.09.2018, 14:11

Forum Jump:


Users browsing this thread: 2 Guest(s)