SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 23/05/2017, 02:16 PM   #11
Azhar
Little Clucker
 
Azhar's Avatar
 
Join Date: Nov 2014
Location: Pakistan
Posts: 46
Reputation: 9
Default Re: Weed system (Grow, plant, give, drop, different type of seeds, different type of weeds, customizable)

That's pretty cool, keep it up.!
Good Job
__________________
~[Pro]Malik
Azhar is offline   Reply With Quote
Old 23/05/2017, 09:01 PM   #12
Logic_
Banned
 
Join Date: Jun 2015
Posts: 1,506
Reputation: 305
Default Re: Weed system (Grow, plant, give, drop, different type of seeds, different type of weeds, customizable)

It's pretty good to see the usage of Iterator in such cases. Some tips that you can follow that's easier to read/ write:
  • Instead of using 'var == 0' just use '!var'.
  • Use switch instead of if statements
  • Maybe replace IsPlayerInRangeOfPoint with streamer's circle dyn. area?
  • Using a variable that stores the player name on connect rather than using a function to fetch player name again and again.

Amazing release, you just earned yourself REP += 2;
Logic_ is offline   Reply With Quote
Old 23/05/2017, 09:44 PM   #13
DRP
Big Clucker
 
Join Date: Apr 2014
Posts: 133
Reputation: 46
Default Re: Weed system (Grow, plant, give, drop, different type of seeds, different type of weeds, customizable)

Albanian weed be great for a guy like, in game and of course irl
DRP is offline   Reply With Quote
Old 27/05/2017, 06:44 PM   #14
Spydah
Gangsta
 
Spydah's Avatar
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 727
Reputation: 749
Default Re: Weed system (Grow, plant, give, drop, different type of seeds, different type of weeds, customizable)

Would've been nicer if you finished this for our newbies who don't understand pawno so much, and maybe a tip if you further develop this or anyone, instead of Jamaican / Albanian weed use real names. Kush, Strawberry Haze, euhh White Widow, go on.
__________________

Sexy isn't she?
I don't like +REP askers.
Spydah is offline   Reply With Quote
Old 28/05/2017, 02:31 PM   #15
NaS
High-roller
 
NaS's Avatar
 
Join Date: Mar 2008
Location: 🇩🇪
Posts: 1,785
Reputation: 635
Default Re: Weed system (Grow, plant, give, drop, different type of seeds, different type of weeds, customizable)

Pretty simple but well done.

There are also single weed plants as Objects, the ones you used are dynamic and destroyable which may be not so nice (unless you add a feature to actually destroy them). The Model ID of the single Weed Plant is 19473 if you care.

What I did on my server was not displaying the Weed plant instantly after planting. Instead, I use some thin bush-like object coming out of the ground which some time later (few hours) grows to an actual weed plant. That's a bit more realistic and a nice mechanic imo.
NaS is offline   Reply With Quote
Old 29/05/2017, 07:15 PM   #16
AlexMSK
Banned
 
Join Date: Apr 2016
Location: Albania, yez
Posts: 203
Reputation: 61
Default Re: Weed system (Grow, plant, give, drop, different type of seeds, different type of weeds, customizable)

Nice brother, repped
<3 shqipe <3
AlexMSK is offline   Reply With Quote
Old 29/05/2017, 07:49 PM   #17
KinG7
Guest
 
Posts: n/a
Default Re: Weed system (Grow, plant, give, drop, different type of seeds, different type of weeds, customizable)

nice
  Reply With Quote
Old 29/05/2017, 10:05 PM   #18
Private200
High-roller
 
Private200's Avatar
 
Join Date: May 2012
Posts: 1,176
Reputation: 211
Default Re: Weed system (Grow, plant, give, drop, different type of seeds, different type of weeds, customizable)

Quote:
Originally Posted by Spydah View Post
Would've been nicer if you finished this for our newbies who don't understand pawno so much, and maybe a tip if you further develop this or anyone, instead of Jamaican / Albanian weed use real names. Kush, Strawberry Haze, euhh White Widow, go on.
Script has been updated and you can now use real names instead of nationalities. Jamaican and Albanian have been replaced with Cannabis Sativa and Cannabis Indica, while more can be added easily. This is now no longer limited to weed, but anything that can be planted.

Quote:
Originally Posted by NaS View Post
Pretty simple but well done.

There are also single weed plants as Objects, the ones you used are dynamic and destroyable which may be not so nice (unless you add a feature to actually destroy them). The Model ID of the single Weed Plant is 19473 if you care.

What I did on my server was not displaying the Weed plant instantly after planting. Instead, I use some thin bush-like object coming out of the ground which some time later (few hours) grows to an actual weed plant. That's a bit more realistic and a nice mechanic imo.
I did check out the object here and it says the object does not break on hit, nor that it has got collision. I was thinking of making the weed grow, however it would not look good due to the simple fact that the object does make it look bad (especially if planted in hills or such). I will try out this object tomorrow or something and get back to you. If the object looks good and does not disappear once hit, I will certainly update the script and add the growing functionality.

Pastebin link is the same: https://pastebin.com/ZaXqCns0
Private200 is offline   Reply With Quote
Old 02/06/2017, 01:05 AM   #19
Cyboorg
Big Clucker
 
Cyboorg's Avatar
 
Join Date: May 2017
Location: Kosovo
Posts: 71
Reputation: 3
Default Re: Weed system (Grow, plant, give, drop, different type of seeds, different type of weeds, customizable)

Quote:
C:\Users\SERVER\pawno\include\sscanf2.inc(227) : warning 202: number of arguments does not match definition
C:\Users\SERVER\pawno\include\sscanf2.inc(240) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Got this.
Cyboorg is offline   Reply With Quote
Old 02/06/2017, 02:16 PM   #20
rawenCB
Little Clucker
 
rawenCB's Avatar
 
Join Date: Sep 2016
Location: Czech republic, Opava
Posts: 5
Reputation: 0
Default Re: Weed system (Grow, plant, give, drop, different type of seeds, different type of weeds, customizable)

Look nice, GJ.
rawenCB is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Argument type mismatch ( type 2 ) Laure Scripting Help 10 05/05/2014 10:16 AM
Are arrays reference-type or value-type in PAWN? Cameryn Scripting Help 2 16/06/2013 07:50 PM
/plant weed ( Object wont come up ) oshrizzz Scripting Help 13 19/10/2011 01:17 PM
[SOLVED] Enable Textdraw when type a command and disable when type the ...... RyDeR` Help Archive 2 11/08/2009 09:02 PM


All times are GMT. The time now is 07:01 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.