Guest User

Untitled

a guest
Mar 22nd, 2017
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. new PlayerText:HUD[1][MAX_PLAYERS];
  2.  
  3. HUD[0][playerid] = CreatePlayerTextDraw(playerid,2.000000, 434.000000, " ");
  4. PlayerTextDrawBackgroundColor(playerid,HUD[0][playerid], 255);
  5. PlayerTextDrawFont(playerid,HUD[0][playerid], 2);
  6. PlayerTextDrawLetterSize(playerid,HUD[0][playerid], 0.300000, 0.499999);
  7. PlayerTextDrawColor(playerid,HUD[0][playerid], COLOR_WHITE);
  8. PlayerTextDrawSetOutline(playerid,HUD[0][playerid], 0);
  9. PlayerTextDrawSetProportional(playerid,HUD[0][playerid], 1);
  10. PlayerTextDrawSetShadow(playerid,HUD[0][playerid], 1);
  11. PlayerTextDrawSetSelectable(playerid,HUD[0][playerid], 0);
  12.  
  13. if(PlayerInfo[playerid][pAdmin] >= 6)
  14. {
  15. new string[256],reports=0,cheaters=0,id;
  16. if(strcmp(reporttext[id], "NULL", true))
  17. {
  18. reports++;
  19. }
  20. if(strcmp(cheattext[id], "NULL", true))
  21. {
  22. cheaters++;
  23. }
  24. if(reportcheater[id] != -1)
  25. {
  26. cheaters++;
  27. }
  28. format(string,sizeof(string),"FPS: %d / ANIM: %d / TICKS: %d / REPORTS :%d / CHEATERS: %d/ QUERIES: %d / PING: %d",PlayerInfo[playerid][pFPS], GetPlayerAnimationIndex(playerid), GetServerTickRate(), reports, cheaters, mysql_unprocessed_queries(), GetPlayerPing(playerid));
  29. PlayerTextDrawSetString(playerid, HUD[0][playerid], string);
  30. PlayerTextDrawShow(playerid, HUD[0][playerid]);
  31. }
Advertisement
Add Comment
Please, Sign In to add comment