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



Crate System Version 2.0 [NEW FEATURES!] - FreAkeD - 31.10.2015

Introduction

This is a simple 'Lost Crate' system minigame. A crate spawns, and the first player to find the crate gets some rewards such as weapons, and health.

Requirements

All requirements are located on the GitHub download.

Features

Version 1.0
  • Respawn time of 3 minutes
  • Easily add your own crate spawn points.
  • Crate will destroy at 24:00 gametime if it hasn't been found. Another crate will respawn after that.
Version 2.0 [LATEST]
  • Map Icons are no longer used since the introduction of /crate and the fact the location is told when the crate is spawned.
  • Use /crate to find the distance you are from the crate in meters.
  • The location will be told once the crate spawns.
  • Added about 16 new spawn points. All are in Los Santos.
Commands

Code:
/cratehelp - Display commands and information about this system.
/opencrate - Open the crate (must be near it)
/oc - Shorter command for /opencrate
/crate - See your distance from the crate (in meters)
Defines

Code:
// CRATE OBJECT ID DEFINE //
#define CRATE_MODEL_ID (2358) // The crate object ID.

// TIME DEFINE //
#define CRATE_SPAWN_TIME 180000 // Time it takes for the crate to spawn (in milliseconds). Change to your liking. Current set at 180000 (3 minutes)
Pictures (Click on the links!)

Crate Spawn:

Image

New /crate command for finding distance from crate:

Image

Download

GitHub



Re: Crate System! - SecretBoss - 31.10.2015

Simple and good, nice!


Re: Crate System! - edwardluciano - 31.10.2015

Nice Thx


Re: Crate System! - FreAkeD - 31.10.2015

Quote:
Originally Posted by edwardluciano
View Post
Nice Thx
Quote:
Originally Posted by SecretBoss
View Post
Simple and good, nice!
I've only seen a couple - well actually barely some of these. I decided to release it because of that.

Thanks !


Re: Crate System! - FreAkeD - 10.11.2015

Decided to work on this more and now a new version is here.

What's new:
Visit the download link for the full package download which all files including plugins, includes and source code are included.

GitHub Download