TextDraw Problem
#2

You have to create a textdraw to each player. I don't wan't make a full code for you but here's a short example.

pawn Код:
new Text:MyHealthTxt[MAX_PLAYERS];

public OnGameModeInit() {
     for(new i = 0; i < GetMaxPlayers(); i ++ ) {
          MyHealthTxt[i] = TextDrawCreate(...);
          // Etc...
     }
     return 1;
}

public OnPlayerOnStealthMode(playerid) {
     
     TextDrawSetString(MyHealthTxt[playerid], Number);
     TextDrawShowForPlayer(playerid, MyHealthTxt[playerid]);
}
Reply


Messages In This Thread
TextDraw Problem - by zallomallo - 10.07.2010, 20:07
Re: TextDraw Problem - by Carlton - 10.07.2010, 20:17
Re: TextDraw Problem - by zallomallo - 10.07.2010, 21:10

Forum Jump:


Users browsing this thread: 1 Guest(s)