SA-MP Forums Archive
[FilterScript] Crate System - Simple - 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] Crate System - Simple (/showthread.php?tid=457758)



Crate System - Simple - Smxe - 13.08.2013

The Crate!
Hey guys my names David and my Admin Name Knight! I made a quick little filterscripts that Server's can use in-order to make a quick little system to get guns. I'll later upload a giftbox like system! So here is simply a system that spawns an object and a dynamic text message (removable) and you're able to approach it and type /opencrate and choose from the list of firearms. I'll show you below how to example to make it so where it checks for a specific thing or coin system!

Commands:
/spawncrate - Creates a crate at your location, rcon admins only
/opencrate - Anyone can do it and it opens a dialog for your crate and you can choose a firearm!

Screen Shots:
When you open the crate:

When you place the crate:

When you destroy the crate:


Pending Updates/To-Do List
  • When you close your server, causing the crate to disappear. (update 1.2 fix)
  • Fix the dynamic object so its on ground level (its sorta 25% into the ground).
How to make it work for your servers coin system etc?

Код:
			if(listitem == 0) // Shotgun
			{
				if(GetPlayerMoney(playerid) >= 100)
				{
					GivePlayerWeapon(playerid, 25, 99999);
					SendClientMessage(playerid, COLOR_LIGHTBLUE,"   You have purchased a Shotgun!");
                                        GivePlayerMoney(playerid, -100);
				}
				else
				{
					SendClientMessage(playerid, COLOR_GREY,"   You can't afford that weapon!");
				}
			}
Quote:

Things that you must have! zcmd, sscanf, incognito streamer
Download Links:
Version 1.0: (click me)
Version 2.0: (click me)


Re: Crate System - Simple - Team_PRO - 13.08.2013

well it easy to use nice anyway


Re: Crate System - Simple - Kudoz - 13.08.2013

Nice job. Looks good. Well done, sir.


Re: Crate System - Simple - Nobi - 13.08.2013

how to delete ?


Re: Crate System - Simple - Smxe - 13.08.2013

Quote:
Originally Posted by Nobi
Посмотреть сообщение
how to delete ?
Just repeat the command /spawncrate


Re: Crate System - Simple - BodyBoardVEVO - 13.08.2013

Guud Jab!


Re: Crate System - Simple - McWillson - 28.09.2013

Nice job, sir Knight


Re: Crate System - Simple - boomerboom - 13.11.2013

You don't owe any credits for this! https://sampforum.blast.hk/showthread.php?tid=475364


Re: Crate System - Simple - Voxel - 13.11.2013

This is pretty cool, i might use something like this


Re : Crate System - Simple - Marocain - 13.11.2013

Coppied From Me -_-