Show player score?
#4

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;
}
You will have to create your textdraw in OnGameMode/OnFilterScript Init. Make sure you assign a different textdraw to each player.

Example:

pawn Код:
for(new i = 0; i < GetMaxPlayers(); i ++ ) {
   TextDrawCreate(MyScoreTextDraw[i], ...);
   etc..
}
Reply


Messages In This Thread
Show player score? - by XxerykxX - 30.05.2010, 21:26
Re: Show player score? - by dice7 - 30.05.2010, 22:08
Re: Show player score? - by Antonio [G-RP] - 30.05.2010, 22:41
Re: Show player score? - by Carlton - 30.05.2010, 22:59
Re: Show player score? - by olabv - 13.12.2010, 21:34
Re: Show player score? - by WillyP - 13.12.2010, 21:50
Re: Show player score? - by Alex_Valde - 13.12.2010, 22:01
Re: Show player score? - by __ - 14.12.2010, 09:16

Forum Jump:


Users browsing this thread: 1 Guest(s)