SA-MP Forums Archive
[FilterScript] Weapon Skills Training System - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Weapon Skills Training System (/showthread.php?tid=553366)



Weapon Skills Training System - Battlezone - 29.12.2014

Intro:
This system consists of upgrading player desired weapon skills by shooting small bottles objects. There are 11 slots and 3 positions for each slot bottle which control the training difficulty. Shooting difficulty does also depend on the weapon you choose; example: using sniper rifle you could easily destroy the 3 bottles from the first attempts, while using 9mm will decreasing destroying objects from the first attempts, as the video shows. Weapon Skills are saved in player variables that can be checked using /myskills. OIn order to start training, you have to use /train. Do not worry about loosing your position and your weapons, they will be saved and you get them back just after the training!
This system is really simple and basic, I will update it, optimize the codes and add more features as soon as I get more free time :l
Commands: /myskills /train







Video:


[ame]http://www.youtube.com/watch?v=V3HsE1Veu2o[/ame]



Download and Credits:

Thanks to samp team for a_samp and Zeex for zcmd, pastebin link: http://pastebin.com/k5xuN8KZ



Re: Weapon Skills Training System - LivingLikeYouDo - 29.12.2014

Woah nice one!


Re: Weapon Skills Training System - Lordzy - 29.12.2014

This filterscript can be used as an exploit because you're not checking the hittype under OnPlayerWeaponShot. Also, IMO, the concept used here isn't really good. Calculating the player's skill randomly isn't really the way it has to be worked out, you should check how good the player shoots. To make it quick, I'd calculate the time spent to shoot, number of bullets fired and it's shot accuracy.


Re: Weapon Skills Training System - Battlezone - 29.12.2014

That's why I said it's really simple and basic, I will update it soon as possible
About the hittype, yes you're right, I will add that in a few seconds
EDIT: I can't calculate the shot accuracy because as you can see, a player won't be able to destroy the third bottle only by aiming at a very limited area


Re: Weapon Skills Training System - Glossy42O - 29.12.2014

wow awesome work ! +rep


Re: Weapon Skills Training System - MohanedZzZ - 29.12.2014

Good job,
+Rep
Happy new year.


AW: Weapon Skills Training System - Flori - 29.12.2014

I like it. Nice job.


Re: Weapon Skills Training System - Battlezone - 29.12.2014

Thank you guys!


Re: Weapon Skills Training System - xXxMauroxXx - 30.12.2014

Awesome work!


Re: Weapon Skills Training System - JessThompson - 15.06.2017

Quote:
Originally Posted by Battlezone
View Post
That's why I said it's really simple and basic, I will update it soon as possible
About the hittype, yes you're right, I will add that in a few seconds
EDIT: I can't calculate the shot accuracy because as you can see, a player won't be able to destroy the third bottle only by aiming at a very limited area
NOTE FOR ANYONE WHO WANTS TO USE THIS FILTERSCRIPT: The hit type under onweaponshot is wrong it needs to be 4 since the objects are player objects, not server objects.


Re: Weapon Skills Training System - Spydah - 15.06.2017

Very nice concept man!