SA-MP Forums Archive
Anti drive-by system for SAMP 0.3a - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Anti drive-by system for SAMP 0.3a (/showthread.php?tid=138251)



Anti drive-by system for SAMP 0.3a - eclipse_HITMAN - 01.04.2010

Код:
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


Re: Anti drive-by system for SAMP 0.3a - Babul - 01.04.2010

small, efficient, dependable.


Re: Anti drive-by system for SAMP 0.3a - [cA]Unforseen - 01.04.2010

Quote:
Originally Posted by Babul
small, efficient, dependable.
its small but its good for a driveby system


Re: Anti drive-by system for SAMP 0.3a - Mike Garber - 01.04.2010

Oh shit, WOW, I could never figure this out by myself.

-_-


Re: Anti drive-by system for SAMP 0.3a - johnathon956 - 01.04.2010

wow good idea