[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
#2

hey dude nice work keep it up
Reply
#3

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 ?
Reply
#4

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

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

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.
Reply
#7

Ok, assuming you did, nice one
Reply
#8

Nice
Reply
#9

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

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
Reply
#11

Its actually copy paste from Next generations RP script.
Reply
#12

simple and good work
Reply
#13

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

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

I cant give rep,but I like this FS
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)