Advertisement
Guest User

Bullet Holes for vehicles

a guest
Jun 19th, 2014
975
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define FILTERSCRIPT
  4.  
  5. public OnFilterScriptInit()
  6. {
  7. printf("Vehicle Holes Filterscript loaded");
  8. return 1;
  9. }
  10. public OnFilterScriptExit()
  11. {
  12. printf("Vehicle Holes Filterscript unloaded");
  13. return 1;
  14. }
  15.  
  16. new bulletobject;
  17.  
  18. public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
  19. {
  20. if(hittype == 2)
  21. {
  22. bulletobject = CreateObject(3106, fX, fY, fZ, 0.0, 0.0, 0.0);
  23. AttachObjectToVehicle(bulletobject, hitid, fX,fY, fZ, 0.0, 0.0, 0.0);
  24. SetTimerEx("DestroyBullet", 7000, false, "i", bulletobject);
  25. }
  26. return 1;
  27. }
  28.  
  29. forward DestroyBullet(bulletid);
  30. public DestroyBullet(bulletid)
  31. {
  32. DestroyObject(bulletid);
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement