help with team score textdraw (+REP)
#5

hmm
you will need foreach include

pawn Код:
new Text: Score;
   //in top of script


//under onGameModeInit
    Score = TextDrawCreate(18.000000, 190.000000, "");
    TextDrawBackgroundColor(Score , 255);
    TextDrawFont(Score , 3);
    TextDrawLetterSize(Score , 0.379999, 1.499999);
    TextDrawColor(Score , -1);
    TextDrawSetOutline(Score , 0);
    TextDrawSetProportional(Score , 1);
    TextDrawSetShadow(Score , 1);
    SetTimer("UpdateTimer",20*1000,1);
in top of script
Код:
forward UpdateTimer();
where you want but in not in call back of in top of script
Код:
      public UpdateTimer()
     {
        foreach(Player,i)
             {
                    TextDrawSetString(Score,GetPlayerScore(playerid));
             }
     }
and TextDrawShowForPlayer, TextDrawDestroy and TextDrawHideForPlayer to hide , show , or destroy the textdraw!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)