09.07.2011, 23:13
I have a problem. I am trying to appear a text draw. For example, if player spawns as team 1 member then under money bar appears texdraw "Team One" and If player spawns as team 2 member happens same.
Text draws works fine, only they don't work under OnPlayerSpawn same with text draw "Rank"
Only difference is that I wan't text draw "Rank" get to appear when player spawns. But even that text draw doesn't work.
gTeam system works fine.
Any ideas?
Text draws works fine, only they don't work under OnPlayerSpawn same with text draw "Rank"
Only difference is that I wan't text draw "Rank" get to appear when player spawns. But even that text draw doesn't work.
gTeam system works fine.
Any ideas?
pawn Код:
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == TEAM_ONE)
{
if(IsPlayerConnected(playerid))
{
TextDrawShowForPlayer(playerid, TeamOne);
}
return 1;
}
if(gTeam[playerid] == TEAM_TWO)
{
if(IsPlayerConnected(playerid))
{
TextDrawShowForPlayer(playerid, TeamTwo);
}
return 1;
}
TextDrawShowForPlayer(playerid, Rank);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, TeamOne);
TextDrawShowForPlayer(i, TeamTwo);
TextDrawShowForPlayer(i, Rank);
}
}
return 1;
}