TextDraw doesn't appear OnPlayerSpawn
#1

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?


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;
}
Reply


Messages In This Thread
TextDraw doesn't appear OnPlayerSpawn - by Kasis - 09.07.2011, 23:13
AW: TextDraw doesn't appear OnPlayerSpawn - by Nero_3D - 09.07.2011, 23:41
Re: TextDraw doesn't appear OnPlayerSpawn - by Kasis - 10.07.2011, 00:05

Forum Jump:


Users browsing this thread: 1 Guest(s)