Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function UpdateServerInfo(playerid)
- {
- if(serverinfo[playerid] == 1) {
- if(PlayerInfo[playerid][pAdmin] >= 3) {
- new string[600];
- format(string, sizeof(string), "tickrate:~y~ %d", GetServerTickRate());
- PlayerTextDrawSetString(playerid, tickrateserver[0][playerid], string);
- PlayerTextDrawShow(playerid, tickrateserver[0][playerid]);
- // Playeri Online
- format(string, sizeof(string), "playeri online:~y~ %d", playeri_online);
- PlayerTextDrawSetString(playerid, playerionline[0][playerid], string);
- PlayerTextDrawShow(playerid, playerionline[0][playerid]);
- // Admins online
- format(string, sizeof(string), "Admini online:~y~ %d", counta);
- PlayerTextDrawSetString(playerid, adminionline[0][playerid], string);
- PlayerTextDrawShow(playerid, adminionline[0][playerid]);
- // Helpers online
- format(string, sizeof(string), "Helperi online:~y~ %d", counth);
- PlayerTextDrawSetString(playerid, helperionline[0][playerid], string);
- PlayerTextDrawShow(playerid, helperionline[0][playerid]);
- }
- }
- return 1;
- }
- si la comanda am pus: timerinfo[playerid] = SetTimerEx("UpdateServerInfo", 5000, true, "i", playerid);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement