I got it working, I tested exactly what v3x has posted to compile, and that didn't work. I guess my firefox doesn't like to upload the sma files, I had to copy and paste the code to compile it.
Anyhow, the plugin works, but sometimes I see the ammo go into the 40s then shoot back up to 50. Is there a way to make it always be at 50?
Thank you everyone for your help, i'm sure i'll be needing you all later on

! I'm really motivated to learn this.