Guest User

xD

a guest
Aug 23rd, 2010
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new Text:Score[MAX_PLAYERS];
  4. forward Scores(playerid);
  5.  
  6. public OnFilterScriptInit()
  7. {
  8.  
  9.  
  10. for(new playerid = 0; playerid < MAX_PLAYERS;)
  11. {
  12. Score[playerid] = TextDrawCreate(50.000000, 322.000000, "");
  13. TextDrawBackgroundColor(Score[playerid], 255);
  14. TextDrawFont(Score[playerid],1);
  15. TextDrawLetterSize(Score[playerid], 0.549999, 1.300000);
  16. TextDrawColor(Score[playerid], -16776961);
  17. TextDrawSetOutline(Score[playerid], 0);
  18. TextDrawSetProportional(Score[playerid], 1);
  19. TextDrawSetShadow(Score[playerid],1);
  20. SetTimerEx("Scores",4000,true,"i",playerid);
  21. }
  22.  
  23. return 1;
  24. }
  25.  
  26. public OnPlayerConnect(playerid)
  27. {
  28. TextDrawShowForPlayer(playerid, Score[playerid]);
  29. return 1;
  30. }
  31. public Scores(playerid)
  32. {
  33. new string[48];
  34. format(string,sizeof(string),"Score: %d",GetPlayerScore(playerid));
  35. TextDrawSetString(Score[playerid],string);
  36. }
Advertisement
Add Comment
Please, Sign In to add comment