Cop-Ban
#2

It depends on how do you define your "Innocent" players...

You would use a warning system.

Код:
new Warnings[MAX_PLAYERS];

public OnPlayerDeath(playerid, killerid, reason)
{
	switch(Warnings)
	{
	    case 0, 1, 2:
	    {
	    	if(GetPlayerWantedLevel(playerid) == 0 && IsPlayerCop(killerid))
			{
	    		SendClientMessage(killerid, COLOR_RED, "WARNING: Stop killing innocent people or you will be banned!");
				Warnings[killerid] = ++;
			}
	    }
	    case 3:
	    {
    		if(GetPlayerWantedLevel(playerid) == 0 && IsPlayerCop(killerid))
			{
	    		SendClientMessage(killerid, COLOR_RED, "BAN: You have killed enoug innocent people, now you are banned!");
	    		Ban(killerid);
			}
	    }
	}
	return 1;
}
Reply


Messages In This Thread
Cop-Ban - by CROSS_Hunter - 19.08.2012, 22:32
Re: Cop-Ban - by Shetch - 20.08.2012, 00:30
Re: Cop-Ban - by CROSS_Hunter - 21.08.2012, 01:31
Re: Cop-Ban - by Steven82 - 21.08.2012, 01:35
Re: Cop-Ban - by CROSS_Hunter - 21.08.2012, 01:42

Forum Jump:


Users browsing this thread: 1 Guest(s)