Dynamic Faction System
_________________________________________________
I started working on this weed system two days ago since I felt that I had left Pawno behind,I thought I had to make something just so I would not forget this as a language. A lot of ideas crossed my mind however, weed system seemed like one which has not been published that many times in the past and that always holds a spot for improvements and new ideas. This drug system is not that advanced and there are certainly way better options than this out there (rootcause's drug system for example). I did not progress this system into personal use like smoking, selling, statistics etcetera however, it is limited to the script variables. There is also no saving system and whoever who has the the basic knowledge of MySQL/INI will be able to properly insert saving system into this script.
Credits:
- Y_Less, even if not part of these forums anymore, his foreach, y_timer and y_iterate have been used in this script and therefore, it wouldn't be the same without them (not to mention the amount of coding lines those includes have saved me)
However, lets jump straight onto the screenshots of this project:
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
_________________________________________________
I started working on this weed system two days ago since I felt that I had left Pawno behind,I thought I had to make something just so I would not forget this as a language. A lot of ideas crossed my mind however, weed system seemed like one which has not been published that many times in the past and that always holds a spot for improvements and new ideas. This drug system is not that advanced and there are certainly way better options than this out there (rootcause's drug system for example). I did not progress this system into personal use like smoking, selling, statistics etcetera however, it is limited to the script variables. There is also no saving system and whoever who has the the basic knowledge of MySQL/INI will be able to properly insert saving system into this script.
Credits:
- Y_Less, even if not part of these forums anymore, his foreach, y_timer and y_iterate have been used in this script and therefore, it wouldn't be the same without them (not to mention the amount of coding lines those includes have saved me)
However, lets jump straight onto the screenshots of this project:









Commands
/buyseeds - Allows you to buy seeds of your choice
/myseeds - shows you the seeds you got on you
/mydrugs - shows you the drugs you got on you, also lets you manage them
/pickpackup - picks up the dropped package (if near any)
/collectweed - collects the weed plant you are next to
/plantseed - plants a seed of a specific type (slots can be taken from /myseeds)
Adding new type of seed
Line 51; 52, there's this variable:
PHP Code:
new SeedInformation[][seedpacks] =
{
{0, "Albanian", 500, 3, 60},
{1, "Jamaican", 500, 1, 30}
};
{id, "name", price, grams_per_seed, time_in_seconds}
- You can only add a maximum of five drugs/seeds and ID's MUST be increasing regularly (0 -> 1 -> 2 -> 3 -> 4)
Download: Pastebin