21.03.2016, 16:35
I am looking for some code can hide or show name of the player if they enter vehicles. Sorry about bad English!!! (If it's bad
)
)
)
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) for(new i = 0; i < MAX_PLAYERS; i ++) if(IsPlayerConnected(i) && playerid != i) ShowPlayerNameTagForPlayer(playerid, i, 0);
if(newstate != PLAYER_STATE_DRIVER && newstate != PLAYER_STATE_PASSENGER) for(new i = 0; i < MAX_PLAYERS; i ++) if(IsPlayerConnected(i) && playerid != i) ShowPlayerNameTagForPlayer(playerid, i, 1);
}