Advertisement
Guest User

Untitled

a guest
Mar 15th, 2011
2,115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. //Anti Desert Eagle Driveby By Noss*
  2. #include <a_samp>
  3.  
  4.  
  5. public OnFilterScriptInit()
  6. {
  7. print(" ");
  8. print(" Anti Desert Eagle Driveby");
  9. print(" By Noss*");
  10. print(" ");
  11. }
  12.  
  13. public OnFilterScriptExit()
  14. {
  15. print(" ");
  16. print(" Anti Desert Eagle Driveby");
  17. print(" By Noss*");
  18. print(" ");
  19. }
  20.  
  21. public OnPlayerStateChange(playerid, newstate, oldstate)
  22. {
  23. if(newstate==PLAYER_STATE_PASSENGER)
  24. {
  25. new gun,tmp;
  26. GetPlayerWeaponData(playerid,4,gun,tmp);
  27. #pragma unused tmp
  28. if(gun)SetPlayerArmedWeapon(playerid,gun);
  29. else SetPlayerArmedWeapon(playerid,0);
  30. }
  31. return 1;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement