toribio

toribio

Sep 9th, 2008
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. //no topo:
  2. forward TextDrawGPTimer();
  3. new Text:gpon[MAX_PLAYERS];
  4.  
  5. //no OnGameModeInit:
  6. for(new i; i < MAX_PLAYERS; i++)
  7. {
  8.     gpon[i] = TextDrawCreate(500.0, 150.0, " ");
  9.     TextDrawFont(gpon[i], 2);
  10.     TextDrawSetShadow(gpon[i], 0);
  11.     TextDrawSetOutline(gpon[i], 1);
  12.     TextDrawUseBox(gpon[i], 0);
  13. }
  14. SetTimer("TextDrawGPTimer", 750, 1);
  15.  
  16. //no OnPlayerConnect:
  17. TextDrawShowForPlayer(playerid, gpon[playerid]);
  18.  
  19. //no final do mode:
  20. public TextdrawGPTimer()
  21. {
  22.     for(new i; i < MAX_PLAYERS; i++)
  23.     {
  24.         new string[256];
  25.         format(string, sizeof(string), "~w~gp: $%d", GetPlayerGP(i));
  26.         TextDrawSetString(gpon[i], string);
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment