19.08.2012, 04:22
Here is one
Quote:
CMD:serverstats(playerid, params[]) { new string[128], iVehCount, x; while(x < MAX_VEHICLES) if(GetVehicleModel(++x)) ++iVehCount; format(string,sizeof(string),"Server Statistics - PR:RP %s (recorded since the 19th of July, 2012).",SERVER_VERSION); SendClientMessage(playerid, COLOR_NEWS, string); format(string, sizeof(string), "* Objects: %d | Pickups: %d | Map icons: %d | 3D text labels: %d | Max houses: %d",CountDynamicObjects(),CountDynamicPickups(),Co untDynamicMapIcons(),CountDynamic3DTextLabels(), MAX_HOUSES); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "* Logins: %d | Connections: %d | Registrations: %d | Hackers autobanned: %d | Uptime: %d hours",TotalLogin, TotalConnect, TotalRegister, TotalAutoBan, TotalUptime); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "* Players connected: %d | Peak player count: %d (%d/%d/%d) | Player vehicles loaded: %d | Total vehicles: %d",Iter_Count(Player),MaxPlayersConnected,MPDay,M PMonth,MPYear,PlayerCars, iVehCount); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } |