[FilterScript] Weapon Crates - 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 Crates (
/showthread.php?tid=622280)
Weapon Crates - Jelly23 - 20.11.2016
Weapon Crates
This is a dynamic system, you can create crates and put weapons inside of them, aswell as pick them up and take them with you, it uses MySQL ofc. Rcon admins can create/destroy/teleport to/reset crates. Players can buy crates for a cost defined by you.
Configuration- #define MAX_CRATES - The maximum amount of crates, by default its 500.
- #define CRATE_COST - The cost of each crate for players, by default its $10,000.
- MySQL information can be changed at lines: 20, 21, 22 and 23.
Pictures
Commands & Information
Player Commands: - /crate - Will show you the crate dialog. By selecting a row with a weapon in it, it will be given to you.
- /buycrate - Will spawn a crate at your position for a cost.
- You must press Y to drop a crate, if you have one in hands.
- If you Spawn/Die/Disconnect while having a crate in hands, it will automatically be dropped at your current position.
Rcon Commands: - /cmenu - Will show you the rcon dialog.

- /ctest - Will give you a desert eagle, the purpose of this command was test the system.
Includes/Plugins
Download
Table:
Filterscript:
Re: Weapon Crates - Jelly23 - 20.11.2016
Mediafire is also avaible.
Re: Weapon Crates -
MikeB - 20.11.2016
For some reason, the pastebin links are not working for me in any of your releases.
Re: Weapon Crates - Jelly23 - 20.11.2016
Quote:
Originally Posted by MikeB
For some reason, the pastebin links are not working for me in any of your releases.
|
Strangely, it's all fine.
Re: Weapon Crates -
MikeB - 20.11.2016
Quote:
Originally Posted by Jelly23
Strangely, it's all fine.
|
Guess, pastebin's working now.
Re: Weapon Crates -
RyderX - 20.11.2016
Good Work
Re: Weapon Crates - Jelly23 - 21.11.2016
Quote:
Originally Posted by RyderX
Good Work 
|
Thanks..
Re: Weapon Crates - Jelly23 - 22.11.2016
Small update:
-Added ''Edit crate position'' in /cmenu.
http://imgur.com/ndQjLuZ
Download:
Solidfiles
Pastebin
Mediafire
Respuesta: Weapon Crates -
Gles - 23.11.2016
Very good job brother!
Re: Respuesta: Weapon Crates - Jelly23 - 24.11.2016
Quote:
Originally Posted by Gles
Very good job brother!
|
Thanks.
Re: Weapon Crates -
saffierr - 20.01.2017
You may want to use 'Update3DTextLabelText();' instead of deleting.
Re: Weapon Crates -
Jelly23 - 20.01.2017
Quote:
Originally Posted by saffierr
You may want to use 'Update3DTextLabelText();' instead of deleting.
|
And you might want to look into the code again, as you don't even know why i'm deleting it.
Of course, i'd need to delete it, otherwise you would see a 3d Label in the floor while editing it's position.
And do you realize, you can't change it's position with Update3DTextLabelText?