04.02.2014, 12:35
How to add server stats when player logs into server
My code witch got warnings in pawno
My code witch got warnings in pawno
PHP код:
new formatmin[4];
if(MPMinute < 10) format(formatmin,sizeof(formatmin),"0%d",MPMinute);
else format(formatmin,sizeof(formatmin),"%d",MPMinute);
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 (Version %s)",SERVER_GM_TEXT );
SendClientMessageEx( playerid, COLOR_LIGHTBLUE, "Homepage: www.citylife.eu5.org" );
SendClientMessageEx( playerid, COLOR_LIGHTBLUE, "TeamSpeak: Comming soon" );
SendClientMessageEx( playerid, COLOR_LIGHTBLUE, "Registrations: %d Peak players recorded: %d (%d/%d/%d - %d:%s)",TotalRegister,MaxPlayersConnected,MPDay,MPMonth,MPYear,MPHour,formatmin);
SendClientMessageEx( playerid, COLOR_LIGHTBLUE, "Please wait for this gamemode to load... " );
SendClientMessageEx( playerid, COLOR_LIGHTBLUE, "---------------------------------------------------" );