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
#2

small, efficient, dependable.
Reply
#3

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

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

-_-
Reply
#5

wow good idea
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)