13.08.2013, 00:53
(
Последний раз редактировалось Smxe; 14.08.2013 в 01:09.
)
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
How to make it work for your servers coin system etc?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).
Код:
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 |
Version 1.0: (click me)
Version 2.0: (click me)