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



Crate System by LemonPunch - LemonPunch - 09.10.2013

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


Re: Crate System by LemonPunch - MBilal - 09.10.2013

hey dude nice work keep it up


Re: Crate System by LemonPunch - Luminar - 09.10.2013

Quote:
Originally Posted by LemonPunch
View Post
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
lol
how you have -1 rep ?


Re: Crate System by LemonPunch - knackworst - 09.10.2013

This ain't yours... I've seen and downloaded the exact same thing last week...


Re: Crate System by LemonPunch - LemonPunch - 09.10.2013

Quote:
Originally Posted by Luminar
View Post
lol
how you have -1 rep ?
Someone -repped me for this "Accept me at skype"


Re: Crate System by LemonPunch - LemonPunch - 09.10.2013

Quote:
Originally Posted by knackworst
View Post
This ain't yours... I've seen and downloaded the exact same thing last week...
Well this is mine, you maybe saw my other account.


Re: Crate System by LemonPunch - knackworst - 09.10.2013

Ok, assuming you did, nice one


Re: Crate System by LemonPunch - kosa451 - 09.10.2013

Nice


Re: Crate System by LemonPunch - Team_PRO - 11.10.2013

I Think I Already See This FS Before You ,Did You Steal It?


Re: Crate System by LemonPunch - LemonPunch - 13.10.2013

Quote:
Originally Posted by Team_PRO
View Post
I Think I Already See This FS Before You ,Did You Steal It?
No, I've not


Re: Crate System by LemonPunch - Unri - 14.10.2013

Its actually copy paste from Next generations RP script.


Re: Crate System by LemonPunch - shittt - 14.10.2013

simple and good work


Re: Crate System by LemonPunch - LemonPunch - 14.10.2013

Quote:
Originally Posted by Unri
View Post
Its actually copy paste from Next generations RP script.
Lol No, This isnt from NGG Script.


Re: Crate System by LemonPunch - Superhot - 14.10.2013

can\'t compile ;/
pawno\include\sscanf.inc(2 : error 021: symbol already defined: "unformat"


Re: Crate System by LemonPunch - Luminar - 16.10.2013

I cant give rep,but I like this FS