02.08.2012, 19:56
You could have a timer that checks everybodys state, and if the state is PLAYER_STATE_ONFOOT you show their name and else you'll hide it.
like this:
like this:
Код:
OnGameModeInit(){ SetTimer("CheckState", 1000, true); } forward CheckState(); public CheckState(){ for(new i = 0; i < MAX_PLAYERS; i++){ if(GetPlayerState(i) == PLAYER_STATE_ONFOOT){ ShowPlayerTag(i, flase);//don't know about this command } else{ ShowPlayerTag(i, true);//don't know about this command } } }