SA-MP Forums Archive
[Include] Single player skillbar include V1.0 - 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)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Single player skillbar include V1.0 (/showthread.php?tid=481451)



Single player skillbar include V1.0 - kreison - 15.12.2013

Single player skillbar include V1.0


What is it?

It is an simple include that recreates in a very similar way the GTA San Andreas single player skill bars.


Functions
pawn Code:
SetSkillForPlayer(playerid, text[], time, newvalue, oldvalue) // Create a skill bar for player that appears for a certain time (in seconds) and with the derived values in percentage


Configuration
The include is easily configurable, just open the include and at the top of the code you will see the configuration defines with comments.



Suggestions and bugs
Feel free to leave suggestions for the next version and bug report. I'll try to keep this include updated as new ideas or bugs to be fixed appear.



Video demonstration (Without sound)
[ame]http://www.youtube.com/watch?v=Eg36zC21XEo[/ame]


Credits
F_Ferrazini for help me create the textdraws.


Download
Pastebin
http://pastebin.com/5kARuj81


I hope you guys enjoy it and sorry for my bad english
Portuguese version: https://sampforum.blast.hk/showthread.php?pid=2820788#pid2820788



Re: Single player skillbar include V1.0 - Wizzy951 - 15.12.2013

Really nice!


Re: Single player skillbar include V1.0 - Delete_ - 15.12.2013

nice, good job.


Re: Single player skillbar include V1.0 - Emmet_ - 15.12.2013

Nice, you should make it a bit smaller in terms of height though so it looks much like the real thing.


Re: Single player skillbar include V1.0 - PT - 15.12.2013

was very good if in 0.4a you can use the original thing of GTA SA :P

Nice Job


Re: Single player skillbar include V1.0 - kreison - 15.12.2013

Thank you for the comments guys!

Quote:
Originally Posted by Emmet_
View Post
Nice, you should make it a bit smaller in terms of height though so it looks much like the real thing.
I will try improve it. Thank you for the suggestion.


Quote:
Originally Posted by PT
View Post
was very good if in 0.4a you can use the original thing of GTA SA :P

Nice Job
I agree with you, would be nice have a native function to do it.


Re: Single player skillbar include V1.0 - Gen3i - 15.12.2013

Good job!!


Respuesta: Single player skillbar include V1.0 - [DOG]irinel1996 - 21.12.2013

Really nice, I love it. Good job.
Maybe I'll make a system based on this for my server, thanks for the idea.


Re: Single player skillbar include V1.0 - BizzyD - 21.12.2013

Really nice, keep it up!


Re : Single player skillbar include V1.0 - Ivory - 21.12.2013

Good idea !! Thank's

+1