Advertisement
Guest User

Anti drive-by

a guest
May 9th, 2013
516
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.48 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. public OnFilterScriptInit()
  4. {
  5.     print("\n--------------------------------------");
  6.     print(" Anti Drive-BY by BlackHorse");
  7.     print("--------------------------------------\n");
  8.     return 1;
  9. }
  10.  
  11. public OnPlayerDeath(playerid, killerid, reason)
  12. {
  13.     new playerState = GetPlayerState(killerid);
  14.     if (playerState == PLAYER_STATE_DRIVER)
  15.     {
  16.         GameTextForPlayer(playerid, "You used driveby to kill player.BYE!", 3000, 2);
  17.         Kick(playerid);
  18.     }
  19.     return 1;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement