Raised This Month: $12 Target: $400
 3% 

Guess the number with directions


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Event Related       
eyal282
Veteran Member
Join Date: Aug 2011
Old 12-31-2017 , 17:00   Guess the number with directions
Reply With Quote #1

https://forums.alliedmods.net/showthread.php?t=304015

Based on this request, a random number between 0 and 500 is born every 5 minutes and all players need to guess it. If you fail to guess it, the plugin tells you if your guess is higher or lower than the actual number until you finally discover the number and win 5000$. Everything except for enable / disable is in the plugin ( though settings the delay to 999999 will do the trick )

It's a small plugin of only 56 lines but who knows, maybe someone else is looking for it
Attached Files
File Type: sma Get Plugin or Get Source (GuessTheNumber.sma - 681 views - 2.3 KB)

Last edited by eyal282; 01-01-2018 at 09:23.
eyal282 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-31-2017 , 17:21   Re: Guess the number with directions
Reply With Quote #2

Requiring AMX Mod X 1.8.3 is not a good idea for any released plugin prior to a stable release of 1.8.3. You should add preprocessor directives to make it compile with either compiler. For example, you could easily set it so that it uses a regular client_print() if the compiler is 1.8.2 or older. Then, you would simply say "colored messages are supported only for AMX Mod X 1.8.3".
__________________
fysiks is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 12-31-2017 , 17:32   Re: Guess the number with directions
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
Requiring AMX Mod X 1.8.3 is not a good idea for any released plugin prior to a stable release of 1.8.3. You should add preprocessor directives to make it compile with either compiler. For example, you could easily set it so that it uses a regular client_print() if the compiler is 1.8.2 or older. Then, you would simply say "colored messages are supported only for AMX Mod X 1.8.3".
Or they can hit the button of "Get Plugin" if they want to use 1.8.2
eyal282 is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 12-31-2017 , 19:05   Re: Guess the number with directions
Reply With Quote #4

I think the Get Plugin is using the 1.8.1 ver. because the complier that it uses is from amxmodx.org site. AMXX still support 1.8.1. Tons of servers use that version.
__________________
Relaxing is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 01-01-2018 , 01:09   Re: Guess the number with directions
Reply With Quote #5

Quote:
Originally Posted by Relaxing View Post
I think the Get Plugin is using the 1.8.1 ver. because the complier that it uses is from amxmodx.org site. AMXX still support 1.8.1. Tons of servers use that version.
If you could test it out, I'll modify my plugin to support it.
eyal282 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-01-2018 , 04:37   Re: Guess the number with directions
Reply With Quote #6

Quote:
Originally Posted by eyal282 View Post
Or they can hit the button of "Get Plugin" if they want to use 1.8.2
What are you talking about? If your plugin has 1.8.3 natives it WILL NOT compile with older versions.
__________________

Last edited by HamletEagle; 01-01-2018 at 04:37.
HamletEagle is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 01-01-2018 , 05:22   Re: Guess the number with directions
Reply With Quote #7

Quote:
Originally Posted by HamletEagle View Post
What are you talking about? If your plugin has 1.8.3 natives it WILL NOT compile with older versions.
Is the compiler of Alliedmods 1.8.3 or 1.8.2?
eyal282 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-01-2018 , 05:57   Re: Guess the number with directions
Reply With Quote #8

Quote:
Originally Posted by eyal282 View Post
Is the compiler of Alliedmods 1.8.3 or 1.8.2?
1.8.1 I think, but how's that related with what fysiks said? If you want it to work under amxx 1.8.2 then you need to check what version the plugin is compiled with(AMXX_VERSION_NUM) and use different functions.
__________________
HamletEagle is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 01-01-2018 , 06:28   Re: Guess the number with directions
Reply With Quote #9

Quote:
Originally Posted by HamletEagle View Post
1.8.1 I think, but how's that related with what fysiks said? If you want it to work under amxx 1.8.2 then you need to check what version the plugin is compiled with(AMXX_VERSION_NUM) and use different functions.
Done.

Last edited by eyal282; 01-01-2018 at 09:24.
eyal282 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-13-2020 , 08:29   Re: Guess the number with directions
Reply With Quote #10

Do not post plugins "just for the sake of it". eg. A fulfilled request may have been useful for one or a few people, but that does not necessarily mean that it has a place in the Approved section. Please take the time to expand your knowledge and produce some quality work.
__________________
HamletEagle is offline
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

Forum Jump


All times are GMT -4. The time now is 11:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode