• Announcements

    • jhxp

      Forums are online again after a maintenance.   18/03/17

      MTA Forums maintenance is completed, although some automatic time-heavy tasks are still in process and will be finished eventually in background. Expect some features such as Forum Search to not display all results until all processes are finished. Please let us know if you spot a forum feature that worked correctly before the maintenance but does not work anymore now. Thanks. --MTA Team
Sign in to follow this  
Followers 0

[Looking for] Anti weapon fire spam script

3 posts in this topic

Posted (edited)

hey i need a Anti wep spam script like this : when you shoot a  RPG u must wait 5 seconds to shoot another RPG

Edited by Dutchman101
fixed title

Share this post

Link to post

Posted (edited)

Beginner scripter here,


you could try to use:


  • "anim_loop_start" - float - Start of aimed firing animation loop
  • "anim_loop_stop" - float - End of aimed firing animation loop (Reduce to increase firing rate)
  • "anim_loop_bullet_fire" - float - Time in aimed firing animation when weapon should be fired (Must be between Start and End)

I would try to use the following settings:

¨anim_loop_start¨ 0.2 or 0.3

¨anim_loop_bullet_fire¨ 0.2 or 0.3 (same settings you used for anim_loop_start)

¨anim_loop_stop¨ 5.0 or something big (the larger this amount the later the player can fire again)

Just try whether or not it works ;)



Edited by Noah_Antilles

Share this post

Link to post

Hey [CIN]Kiss , i'll try to do it now wait 20 mins ! 



Here you are , client side just do meta.xml

NOTE: this for only RPG if u wanna for everyweapons then make again client side 

and copy paste i give u (clientside)

then edit this line : 

if weapon == 36 then


 edit " 36 " for weapon u want to do Anti Spam

NOTICE: 36 is the RPG id , change it to example : (M4) Id WHATEVER ..

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.