Anti drive-by system for SAMP 0.3a
#1

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
// Anti-DB System
  if ((IsPlayerInAnyVehicle(killerid)) && (GetPlayerVehicleSeat(killerid) == 0))
  {
    // Your code here, for example
	SetPlayerHealth(killerid,0.0); // kill
    // May jail or kick...     
  }
  return 0;
}
Works without bugs because code very small
Reply


Messages In This Thread
Anti drive-by system for SAMP 0.3a - by eclipse_HITMAN - 01.04.2010, 07:06
Re: Anti drive-by system for SAMP 0.3a - by Babul - 01.04.2010, 07:12
Re: Anti drive-by system for SAMP 0.3a - by [cA]Unforseen - 01.04.2010, 08:02
Re: Anti drive-by system for SAMP 0.3a - by Mike Garber - 01.04.2010, 10:11
Re: Anti drive-by system for SAMP 0.3a - by johnathon956 - 01.04.2010, 17:23

Forum Jump:


Users browsing this thread: 2 Guest(s)