09.08.2008, 06:06
ANTI - DRIVE - BY
Код:
public OnPlayerDeath(playerid, killerid, reason) { if(killerid != INVALID_PLAYER_ID && IsPlayerConnected(killerid)) { if((IsPlayerInAnyVehicle(killerid)) && (reason==WEAPON_MP5 || reason==WEAPON_UZI || reason==WEAPON_TEC9) &&( !(IsPlayerInAnyVehicle(playerid)))) { Kick(killerid); } } return 1; }
Код:
A Simple code for solving a server owners nightmare of Drive - By's This Auto kicks the player if he / she commits a Drive - By.