Raised This Month: $ Target: $400
 0% 

[REQ] Random messages


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RuleBreaker
Senior Member
Join Date: May 2011
Old 07-11-2011 , 18:37   [REQ] Random messages
Reply With Quote #1

How to add random colorchat messages in plugin? Like messages in advertisements.ini
RuleBreaker is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-11-2011 , 19:41   Re: [REQ] Random messages
Reply With Quote #2

The plugin has to be coded to handle color chat.
__________________
fysiks is offline
Stressful
Senior Member
Join Date: Feb 2011
Old 07-12-2011 , 03:01   Re: [REQ] Random messages
Reply With Quote #3

set_task . Then ColorChat .
__________________
Stressful is offline
Old 07-12-2011, 03:22
Stressful
This message has been deleted by Stressful. Reason: Double Post.
RuleBreaker
Senior Member
Join Date: May 2011
Old 07-12-2011 , 05:15   Re: [REQ] Random messages
Reply With Quote #4

Quote:
Originally Posted by Stressful View Post
set_task . Then ColorChat .
Random
RuleBreaker is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-12-2011 , 05:46   Re: [REQ] Random messages
Reply With Quote #5

Use a random task delay.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
RuleBreaker
Senior Member
Join Date: May 2011
Old 07-12-2011 , 17:40   Re: [REQ] Random messages
Reply With Quote #6

How?
RuleBreaker is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-12-2011 , 18:20   Re: [REQ] Random messages
Reply With Quote #7

Just use this: https://forums.alliedmods.net/showthread.php?t=27814
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
RuleBreaker
Senior Member
Join Date: May 2011
Old 07-12-2011 , 18:33   Re: [REQ] Random messages
Reply With Quote #8

But i want to make it my self. I just need 2-3 messages in my plugin to be random
RuleBreaker is offline
am_amx
Senior Member
Join Date: Jul 2010
Location: here
Old 07-12-2011 , 23:26   Re: [REQ] Random messages
Reply With Quote #9

Quote:
Originally Posted by Exolent[jNr] View Post
use Autoresponder/Advertiser Version 0.5

if you want to code by your self....
use an array of messages and random function every time to get random index

this is made by Exolent i'm showing part of it..
PHP Code:
new const g_szMessages[ ][ ] =
{
    
"Message 1",
    
"Message 2",
    
"Message 3"
};
randomsizeofg_szMessages ) ) 
__________________

Last edited by am_amx; 07-12-2011 at 23:29.
am_amx is offline
Reply



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 19:41.


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