• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Filterscript] Weed Drug Script
#1
Weed Drug Script
A weed drug script for roleplay server or roleplay gamemode. Previously it has many performance issue but i tried to fix all of them. You can use it with your roleplay gamemode, all you need to change player inventory items variables as per your roleplay gm.
To improve further performance in /weed cmd, you can make multiple iterators for each weed field and use them according to which weed field player is at. No changes need in timer because timer can loop over every single plant if you set timer than more 5 seconds.
How to build?
    - Change `g_PlayerInventory[playerid]` to your inventory variables or you can use (`getInvitem` or 'setInvitem') functions
    - Compile and Run!
Used Library
sscanf - [v2.13.8]
streamer -  [v2.9.6]
YSI Includes - [latest] (y_timers, y_commands, y_hooks, y_iterators)
Source Code:- https://github.com/galaxone/SAMP-RP-Weed-Drug-System
Screen Shot
[Image: zGgM5av.png]
[Image: kJj0TmC.png]
[Image: w9pnu7W.png]
  Reply
#2
Cool system
  Reply
#3
Good stuff.
  Reply


Forum Jump: