11.09.2011, 09:56
(
Последний раз редактировалось oicq747285250; 11.09.2011 в 09:59.
Причина: uploaded Pics
)
put in your FS.
Код:
public OnRconCommand(cmd[])
{
if (strcmp("status", cmd, true, 10) == 0)
{
new h,mo,s,y,m,d;
getdate(y,mo,d);
gettime(h,m,s);
print("__________________________________________________");
print("Server Infomation:");
printf("[%d/%d/%d][%d:%d:%d]",y,mo,d,h,m,s);
for(new i;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
new Name[64];
new IP[64];
new PING;
new id=i;
GetPlayerName(i,Name,sizeof(Name));
GetPlayerIp(i,IP,sizeof(IP));
PING=GetPlayerPing(i);
if(IsPlayerNPC(i))
{
format(Name,sizeof(Name),"-NPC-%s",Name);
format(IP,sizeof(IP),"localhost");
PING=0;
}
format(Name,sizeof(Name),"%s(%d)",Name,id);
printf("%s ip:%s pings:%dms",Name,IP,PING);
}
}
print("__________________________________________________");
return 1;
}
return 1;
}


