30.05.2010, 22:59
Quote:
Originally Posted by Antonio (eternalrp.webatu.com)
Simply Create a textdraw, then on it have this:
playerscore = GetPlayerScore(playerid); TextDrawCreate(x,y,"Your score is %d",playerscore); |
pawn Код:
public OnPlayerSpawn(playerid) {
new string[46];
format(string, sizeof(string), "Your score is %d", GetPlayerScore(playerid));
TextDrawSetString(MyTextdraw, string);
TextDrawHideForPlayer(playerid, MyTextdraw);
TextDrawShowForPlayer(playerid, MyTextdraw);
return 1;
}
Example:
pawn Код:
for(new i = 0; i < GetMaxPlayers(); i ++ ) {
TextDrawCreate(MyScoreTextDraw[i], ...);
etc..
}