04.02.2014, 13:02
All other SendClientMessageEx is working.
I taked stats from this command
And put them in here
I taked stats from this command
PHP код:
CMD:serverstats(playerid, params[])
{
new string[128];
new formatmin[4];
if(MPMinute < 10) format(formatmin,sizeof(formatmin),"0%d",MPMinute);
else format(formatmin,sizeof(formatmin),"%d",MPMinute);
format(string,sizeof(string),"Server Statistics - Version %s (recorded since the 8th of November, 2011).",SERVER_GM_TEXT);
SendClientMessageEx(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "* Objects: %d | Pickups: %d | Map icons: %d | 3D text labels: %d | TextDraws: %d | Loaded houses: %d",CountDynamicObjects(),CountDynamicPickups(),CountDynamicMapIcons(),CountDynamic3DTextLabels(),textdrawscount,MAX_HOUSES);
SendClientMessageEx(playerid, COLOR_GREY, string);
format(string, sizeof(string), "* Logins: %d | Connections: %d | Registrations: %d | Hackers autobanned: %d | Uptime: %d hours",TotalLogin, TotalConnect, TotalRegister, TotalAutoBan, TotalUptime);
SendClientMessageEx(playerid, COLOR_GREY, string);
format(string, sizeof(string), "* Players connected: %d | Peak players recorded: %d (%d/%d/%d - %d:%s) | Player vehicles loaded: %d",PlayersConnected,MaxPlayersConnected,MPDay,MPMonth,MPYear,MPHour,formatmin,PlayerCars);
SendClientMessageEx(playerid, COLOR_GREY, string);
return 1;
}
PHP код:
SendClientMessageEx( playerid, COLOR_LAWNGREEN, " " );
SendClientMessageEx( playerid, COLOR_LAWNGREEN, " " );
SendClientMessageEx( playerid, COLOR_LAWNGREEN, " " );
SendClientMessageEx( playerid, COLOR_LAWNGREEN, " " );
SendClientMessageEx( playerid, COLOR_LAWNGREEN, " " );
SendClientMessageEx( playerid, COLOR_LIGHTBLUE, "---------------------------------------------------" );
SendClientMessageEx( playerid, COLOR_LIGHTBLUE, "Welcome to City Life Roleplay" );
SendClientMessageEx( playerid, COLOR_LIGHTBLUE, "Homepage: www.citylife.eu5.org" );
SendClientMessageEx( playerid, COLOR_LIGHTBLUE, "TeamSpeak: Comming soon" );
SendClientMessageEx( playerid, COLOR_LIGHTBLUE, "Please wait for this gamemode to load... " );
SendClientMessageEx( playerid, COLOR_LIGHTBLUE, "---------------------------------------------------" );