SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 29/12/2014, 03:12 PM   #1
Battlezone
Gangsta
 
Battlezone's Avatar
 
Join Date: Aug 2013
Location: Berlin
Posts: 803
Reputation: 155
Default Weapon Skills Training System

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

Last edited by Battlezone; 29/12/2014 at 03:44 PM.
Battlezone is offline   Reply With Quote
Old 29/12/2014, 03:15 PM   #2
LivingLikeYouDo
Banned
 
Join Date: Jun 2014
Location: <4char>
Posts: 356
Reputation: 28
Default Re: Weapon Skills Training System

Woah nice one!
LivingLikeYouDo is offline   Reply With Quote
Old 29/12/2014, 03:26 PM   #3
Lordzy
High-roller
 
Lordzy's Avatar
 
Join Date: Mar 2012
Location: NetherRealm
Posts: 2,703
Reputation: 1176
Default Re: Weapon Skills Training System

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.
__________________
Currently inactive - I don't play at any SA-MP servers nor work on anything in PAWN for now. The projects that I've done so far in PAWN, which requires updates will be taking some time.
Lordzy is offline   Reply With Quote
Old 29/12/2014, 03:29 PM   #4
Battlezone
Gangsta
 
Battlezone's Avatar
 
Join Date: Aug 2013
Location: Berlin
Posts: 803
Reputation: 155
Default Re: Weapon Skills Training System

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
Battlezone is offline   Reply With Quote
Old 29/12/2014, 03:39 PM   #5
Glossy42O
High-roller
 
Join Date: Oct 2014
Location: in my house
Posts: 1,733
Reputation: 231
Default Re: Weapon Skills Training System

wow awesome work ! +rep
Glossy42O is offline   Reply With Quote
Old 29/12/2014, 04:23 PM   #6
MohanedZzZ
Huge Clucker
 
Join Date: Nov 2013
Location: Scripting Help
Posts: 253
Reputation: 103
Default Re: Weapon Skills Training System

Good job,
+Rep
Happy new year.
__________________
MAYAR

Yup, She is inside me
23\1\2017
MohanedZzZ is offline   Reply With Quote
Old 29/12/2014, 04:26 PM   #7
Flori
Huge Clucker
 
Flori's Avatar
 
Join Date: Sep 2014
Location: Germany
Posts: 352
Reputation: 26
Default AW: Weapon Skills Training System

I like it. Nice job.
Flori is offline   Reply With Quote
Old 29/12/2014, 04:32 PM   #8
Battlezone
Gangsta
 
Battlezone's Avatar
 
Join Date: Aug 2013
Location: Berlin
Posts: 803
Reputation: 155
Default Re: Weapon Skills Training System

Thank you guys!
Battlezone is offline   Reply With Quote
Old 30/12/2014, 07:03 PM   #9
xXxMauroxXx
Big Clucker
 
xXxMauroxXx's Avatar
 
Join Date: Dec 2014
Location: Croatia
Posts: 60
Reputation: 9
Default Re: Weapon Skills Training System

Awesome work!
__________________
xXxMauroxXx is offline   Reply With Quote
Old 15/06/2017, 11:07 AM   #10
JessThompson
Huge Clucker
 
JessThompson's Avatar
 
Join Date: Dec 2013
Location: Developer Lodge
Posts: 399
Reputation: 22
Default Re: Weapon Skills Training System

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.
__________________
If I helped you please leave a REP+
Developer ~ Scripter
PHP | HTML | CSS | VB.NET | PAWN
JessThompson is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Weapon skills Steve1312 Scripting Help 2 26/03/2014 09:33 AM
[Include] L-Skills - Server sided weapon skill system! Lordzy Includes 47 15/02/2014 10:07 AM
Weapon SKills sekol Help Archive 2 12/09/2010 07:33 AM
Weapon Skills 0.3a BuLLeT[LTU] Help Archive 5 17/10/2009 09:41 PM


All times are GMT. The time now is 01:05 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.