09.10.2013, 15:12
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?
Here's the download:
http://pastebin.com/iQDmXhrw
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!"); } }
http://pastebin.com/iQDmXhrw