Advertisement
Guest User

altcevax2

a guest
Mar 3rd, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. function UpdateServerInfo(playerid)
  2. {
  3. if(serverinfo[playerid] == 1) {
  4. if(PlayerInfo[playerid][pAdmin] >= 3) {
  5. new string[600];
  6. format(string, sizeof(string), "tickrate:~y~ %d", GetServerTickRate());
  7. PlayerTextDrawSetString(playerid, tickrateserver[0][playerid], string);
  8. PlayerTextDrawShow(playerid, tickrateserver[0][playerid]);
  9. // Playeri Online
  10. format(string, sizeof(string), "playeri online:~y~ %d", playeri_online);
  11. PlayerTextDrawSetString(playerid, playerionline[0][playerid], string);
  12. PlayerTextDrawShow(playerid, playerionline[0][playerid]);
  13. // Admins online
  14. format(string, sizeof(string), "Admini online:~y~ %d", counta);
  15. PlayerTextDrawSetString(playerid, adminionline[0][playerid], string);
  16. PlayerTextDrawShow(playerid, adminionline[0][playerid]);
  17. // Helpers online
  18. format(string, sizeof(string), "Helperi online:~y~ %d", counth);
  19. PlayerTextDrawSetString(playerid, helperionline[0][playerid], string);
  20. PlayerTextDrawShow(playerid, helperionline[0][playerid]);
  21. }
  22. }
  23. return 1;
  24. }
  25.  
  26. si la comanda am pus: timerinfo[playerid] = SetTimerEx("UpdateServerInfo", 5000, true, "i", playerid);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement