[FilterScript] Crate System - Simple
#1

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)
Reply
#2

well it easy to use nice anyway
Reply
#3

Nice job. Looks good. Well done, sir.
Reply
#4

how to delete ?
Reply
#5

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

Guud Jab!
Reply
#7

Nice job, sir Knight
Reply
#8

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

This is pretty cool, i might use something like this
Reply
#10

Coppied From Me -_-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)