Show player score?
#1

Hello. Is there Function like ShowPlayerScore ? I mean like to have textdraw saying:

Drift Score: [Score]

If yes how do you make it?
Reply
#2

No there isn't. You'll need to create your own textdraw
Reply
#3

Simply Create a textdraw, then on it have this:

playerscore = GetPlayerScore(playerid);

TextDrawCreate(x,y,"Your score is %d",playerscore);
Reply
#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
#5

this is nice
Reply
#6

Quote:
Originally Posted by olabv
Посмотреть сообщение
this is nice
Nice 7 month bump, retard. You're talking BS saying 'nice' to two consecutive topics that I have seen. GTFO.
Reply
#7

Quote:
Originally Posted by olabv
Посмотреть сообщение
this is nice
HAHAHAHA...I really can't believe!
Reply
#8

Quote:
Originally Posted by [FU]Victious
Посмотреть сообщение
Nice 7 month bump, retard. You're talking BS saying 'nice' to two consecutive topics that I have seen. GTFO.
Do you have to rage and use profane words in every single post that you create?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)