02.09.2010, 19:20
the problem is because when you shoot from the car with a submachine gun on a pedestrian, you shoot a lot faster then when you are on foot
so thats why dbing is baned on roleplay servers
this code should work:
so thats why dbing is baned on roleplay servers
this code should work:
Code:
public OnPlayerDeath(playerid, killerid, reason) { if(GetPlayerState(killerid) == 2) { if(!IsPlayerInAnyVehicle(playerid)) { SendClientMessage(killerid, COLOR_YELLOW, "That was a drive-by kill. Don't do that again!"); Kick(killerid); return 1; } } return 1; }