Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define FILTERSCRIPT
- public OnFilterScriptInit()
- {
- printf("Vehicle Holes Filterscript loaded");
- return 1;
- }
- public OnFilterScriptExit()
- {
- printf("Vehicle Holes Filterscript unloaded");
- return 1;
- }
- new bulletobject;
- public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
- {
- if(hittype == 2)
- {
- bulletobject = CreateObject(3106, fX, fY, fZ, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(bulletobject, hitid, fX,fY, fZ, 0.0, 0.0, 0.0);
- SetTimerEx("DestroyBullet", 7000, false, "i", bulletobject);
- }
- return 1;
- }
- forward DestroyBullet(bulletid);
- public DestroyBullet(bulletid)
- {
- DestroyObject(bulletid);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement