Kicks the player for using a minigun.
[pawn]
public OnPlayerDeath(playerid, killerid, reason)
{
if(reason == 33)
{
new szMsg[76], name[24];
GetPlayerName(killerid, name, sizeof(name));
format(szMsg, sizeof(szMsg), "[Auto-Kick] Kicking %s for using a minigun.", name);
SendClientMessageToAll(0xFFFF00AA, szMsg);
Kick(killerid);
return 1;
}
}
[/pawn]
You can replace Kick(killerid) with Ban(killerid) to ban them. Then you have to change the format() message so it says Banning instead of Kicking.