Anti DB
#1

Does not kick in a military technology and on a place of the passenger
pawn Код:
#include <a_samp>
public OnPlayerDeath(playerid, killerid, reason)
{
if(IsPlayerInAnyVehicle(killerid))
{
new vehicleid = GetPlayerVehicleID(killerid);
if(GetVehicleModel(vehicleid) == 432 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 447 || GetVehicleModel(vehicleid) == 520 || GetVehicleModel(vehicleid) == 464 || GetVehicleModel(vehicleid) == 564)
{

}
else if((GetVehicleModel(vehicleid) != 432 || GetVehicleModel(vehicleid) != 425 || GetVehicleModel(vehicleid) != 447 || GetVehicleModel(vehicleid) != 520 || GetVehicleModel(vehicleid) != 464 || GetVehicleModel(vehicleid) != 564) && GetPlayerState(killerid) == PLAYER_STATE_DRIVER) //464 564
{
SendClientMessage(killerid,"You are kicked for Drive By");
Kick(killerid);
}
}
return 1;
}
Reply
#2

http://forum.sa-mp.com/index.php?topic=12197.0
Reply
#3

use [pawn ] and [/pawn]

without the space
Reply
#4

Seif_ It is checked up, works =) I would not spread if did not work
Reply
#5

This kicks a player if he even enters a vehicle and your sendclientmessage is screwed up ,wtf man
Reply
#6

I'd like to request a topic lock due to the subject ain't right, and the filterscript isn't made correctly, which should be.
No offence, but this is just not an anti-DriveBy
Reply
#7

nice
Reply
#8

this wont work....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)