20.08.2012, 00:30
It depends on how do you define your "Innocent" players...
You would use a warning system.
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; }