[FilterScript] simple STATUS like counter-cstrike console.
#1


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;
}
Made By oicq747285250
Reply


Messages In This Thread
simple STATUS like counter-cstrike console. - by oicq747285250 - 11.09.2011, 09:56
Re: simple STATUS like counter-cstrike console. - by Srdjan - 11.09.2011, 10:58
Re: simple STATUS like counter-cstrike console. - by KoczkaHUN - 11.09.2011, 12:04
Re: simple STATUS like counter-cstrike console. - by TheArcher - 11.09.2011, 12:49

Forum Jump:


Users browsing this thread: 1 Guest(s)