28.08.2009, 16:22
Because if this
is under OnPlayerConnect, how will the script know the player is 1? Let's try and fix this ...
You should probably put this in a function and set a timer on it to check every second.
Example:
Something like that .. and set a timer on it on OnGameModeInit. All the other code is fine in the command. Nothing need go under OnPlayerConnect apart from maybe
Код:
if(typed[playerid] = 1)
You should probably put this in a function and set a timer on it to check every second.
Example:
Код:
forward ChuckNorris();
public CheckNorris()
{
for(new i = 0;i < MAX_PLAYERS; i++)
{
if(typed[i] = 1)
ShowPlayerNameTagForPlayer(playerid, i, 0); // Will hide it
return 1;
}
}
return 1;
}
Код:
typed[playerid] =0;

