Raised This Month: $32 Target: $400
 8% 

Random radio command [CS]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
degrees9871
Junior Member
Join Date: Jan 2019
Old 05-08-2020 , 08:13   Random radio command [CS]
Reply With Quote #1

Echoes random radio command. Wanted plugin like this but couldn't find one

Usage:
type radio in console to echo random command

__________________________________________
Attached Files
File Type: sma Get Plugin or Get Source (random_radio.sma - 233 views - 581 Bytes)

Last edited by degrees9871; 05-08-2020 at 08:21.
degrees9871 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-08-2020 , 08:54   Re: Random radio command [CS]
Reply With Quote #2

What's the point of this though? Why would you want to echo out a random radio command? I don't see how this kind of randomness is useful for any type of gameplay.

By the way, your function is wrong. The last element in the list will never be selected because of the "sizeof - 1".
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 05-08-2020 , 09:32   Re: Random radio command [CS]
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
By the way, your function is wrong. The last element in the list will never be selected because of the "sizeof - 1".
http://amxmodx.org/api/amxmodx/random_num

Quote:
Maximum value (inclusive)
and sizeof - 1 is the last element in the array.
__________________

Last edited by HamletEagle; 05-08-2020 at 09:34.
HamletEagle is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-08-2020 , 09:57   Re: Random radio command [CS]
Reply With Quote #4

Quote:
Originally Posted by HamletEagle View Post
http://amxmodx.org/api/amxmodx/random_num



and sizeof - 1 is the last element in the array.
My bad. I thought I saw "random" in there, not "random_num".
__________________

Last edited by OciXCrom; 05-08-2020 at 09:57.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-30-2021 , 05:45   Re: Random radio command [CS]
Reply With Quote #5

This does not seem useful but it is also way too simple to be approved. If you decide to add more features, please PM me.
__________________
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 15:05.


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