[FilterScript] Crate System by LemonPunch
#1

The Crate!
Hey guys my names LemonPunch and I made a quick little filterscripts that Server's can use in-order to make a quick little system to get guns.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! + I would really appreciate a reputation.
I hope you like it, Thanks - LemonPunch

The 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!

Pictures:
When you open the crate:
http://i.imgur.com/4v0MtL6.png
When you place the crate:
/imageshack/img15/5144/6iv0.png
When you destroy the crate:
http://i.imgur.com/9WxkIG3.png

Notes:
When taking a firearm it says: "You have taken a [gun name]"

How to make it work for your servers coin system, etc?

Code:
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!");
				}
			}
Here's the download:
http://pastebin.com/iQDmXhrw
Reply


Messages In This Thread
Crate System by LemonPunch - by LemonPunch - 09.10.2013, 15:12
Re: Crate System by LemonPunch - by MBilal - 09.10.2013, 18:24
Re: Crate System by LemonPunch - by Luminar - 09.10.2013, 18:28
Re: Crate System by LemonPunch - by knackworst - 09.10.2013, 18:29
Re: Crate System by LemonPunch - by LemonPunch - 09.10.2013, 18:49
Re: Crate System by LemonPunch - by LemonPunch - 09.10.2013, 18:51
Re: Crate System by LemonPunch - by knackworst - 09.10.2013, 18:58
Re: Crate System by LemonPunch - by kosa451 - 09.10.2013, 19:00
Re: Crate System by LemonPunch - by Team_PRO - 11.10.2013, 08:24
Re: Crate System by LemonPunch - by LemonPunch - 13.10.2013, 14:10
Re: Crate System by LemonPunch - by Unri - 14.10.2013, 00:43
Re: Crate System by LemonPunch - by shittt - 14.10.2013, 04:40
Re: Crate System by LemonPunch - by LemonPunch - 14.10.2013, 14:56
Re: Crate System by LemonPunch - by Superhot - 14.10.2013, 16:12
Re: Crate System by LemonPunch - by Luminar - 16.10.2013, 12:19

Forum Jump:


Users browsing this thread: 1 Guest(s)