17.08.2011, 00:33
pawn Код:
CreatePlayerTextdraws (playerid)
{
Scores[playerid] = TextDrawCreate(150,450,"Loading Values");
new tmpstr[250];//Accommodate for string size
format(tmpstr,sizeof(tmpstr),"Grove:%d Ballas:%d Vagos:%d Azteca:%d Mafia:%d",GScores,BScores,VScores,AScores,MScores);
TextDrawSetString(Scores[playerid],tmpstr);
TextDrawFont(Scores[playerid],1);
TextDrawLetterSize(Scores[playerid],0.3,2.1);
TextDrawColor(Scores[playerid],GREY);
TextDrawSetOutline(Scores[playerid],0);
TextDrawSetProportional(Scores[playerid],1);
TextDrawSetShadow(Scores[playerid],0);
TextDrawUseBox(Scores[playerid],1);
TextDrawBoxColor(Scores[playerid],BLACK);
return 1;
}
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
CreatePlayerTextdraws(i)
}