30.05.2010, 21:26
Hello. Is there Function like ShowPlayerScore ? I mean like to have textdraw saying:
Drift Score: [Score]
If yes how do you make it?
Drift Score: [Score]
If yes how do you make it?
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); |
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;
}
for(new i = 0; i < GetMaxPlayers(); i ++ ) {
TextDrawCreate(MyScoreTextDraw[i], ...);
etc..
}