How to kick with Part Of Name?
#3

you will need sscan f and zcmd

Код:
CMD:kick(playerid, params[]) {
	new id, reson[128], string[ 128 ];
	if( sscanf( params, "uz", reson) )
	{
		if(PlayerInfo[playerid][pAdminLevel] >= 1)// put your admin level thing here
		{
			SendClientMessage(playerid, WHITE, "[SEVER]:{20DB16} Usage /kick [ID] [RESON]");
		}
	}
	else
	{
	if(PlayerInfo[playerid][pAdminLevel] >= 1)
	    {
	        if(IsPlayerConnectedEx(id) )
	        {
	        	if(PlayerInfo[playerid][pAdminLevel] >= PlayerInfo[id][pAdminLevel])
		        {
					format(string, sizeof(string), "You have bean KICK By a Admin %s Because of %s", GetNameEx(playerid), params);
					NearByMessage(playerid, WHITE, string);
					Kick( id );
		    	}
	    	}
	    	else
	    	{
	    	    SendClientMessage( playerid, WHITE, "That player is not connected or isn't logged in." );
	    	}
		}
	}
	return 1;
}
Reply


Messages In This Thread
How to kick with Part Of Name? - by ]B4E[kengston - 08.01.2011, 00:27
Re: How to kick with Part Of Name? - by Lorenc_ - 08.01.2011, 00:31
Re: How to kick with Part Of Name? - by yarrum3 - 08.01.2011, 00:37
AW: How to kick with Part Of Name? - by ]B4E[kengston - 08.01.2011, 00:39

Forum Jump:


Users browsing this thread: 1 Guest(s)