All pastes #422134 Raw Edit

Something

public text v1 · immutable
·published 2007-04-03 08:25 UTC
rendered paste body
// AutoKick Operation Code



public OnPlayerDeath(playerid, killerid, reason)

{

if (killerid == INVALID_PLAYER_ID) {

ResetPlayerMoney(playerid);

} 

else {

SendClientMessage(killerid, COLOR_YELLOW, "You have been kicked for killing");

SendClientMessage(killerid, COLOR_YELLOW, "You will not receive messages or be able to interact until rejoining.");

Kick(killerid);

ResetPlayerMoney(playerid);

}

return 1;

}