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

Random Messages


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
_Pro_
Senior Member
Join Date: Mar 2012
Location: Argentina
Old 03-18-2012 , 22:19   Random Messages
Reply With Quote #1

Random Messages
Author: _Pro_
Version: 1.1

Description: Displays messages in the "messages.txt" every cvar "amx_message_time" secons

How to use: Put in the file "messages.txt" wich will tell (per line). For green color write !g and for normal color write !n.

Install: The file "messages.txt" goes in configs folder.

ChangeLog:

Code:
v1.1:
- New constant set_task (Thanks fysiks).
- The file read once a map start (Thanks fysiks).
- Now the file is the correct (Thanks fysiks).
Need colorchat include
Attached Files
File Type: txt messages.txt (121 Bytes, 555 views)
File Type: inc colorchat.inc (2.1 KB, 462 views)
File Type: sma Get Plugin or Get Source (Random_Messages.sma - 1361 views - 1.1 KB)

Last edited by _Pro_; 03-19-2012 at 00:49.
_Pro_ is offline
Send a message via MSN to _Pro_ Send a message via Skype™ to _Pro_
Dojmgubben
New Member
Join Date: Mar 2012
Location: Sweden
Old 03-18-2012 , 22:29   Re: Random Messages
Reply With Quote #2

I do think this aleeady exists, notnsure, but i think
__________________
Hello thar! Visit and join RealZone.se!
Dojmgubben is offline
Send a message via Skype™ to Dojmgubben
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-18-2012 , 23:19   Re: Random Messages
Reply With Quote #3

amx_imessage
amx_cmessage (one that i created based on imessage)
  1. You should only read the file once at map start.
  2. The file is not messages.txt.
  3. Instead of starting a new task everytime you should just use a repeating task.
  4. Make sure your code actually works. Too many things are spelled incorrectly.
  5. Don't write your posts in all bold or large text.
__________________
fysiks is offline
_Pro_
Senior Member
Join Date: Mar 2012
Location: Argentina
Old 03-19-2012 , 00:52   Re: Random Messages
Reply With Quote #4

Thanks fysiks, i think the set_task is ok, but i not sure.
_Pro_ is offline
Send a message via MSN to _Pro_ Send a message via Skype™ to _Pro_
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-19-2012 , 02:16   Re: Random Messages
Reply With Quote #5

This is redundant, can only unapprove.
Also code is wrong, will only show the message once.

http://www.amxmodx.org/compiler.php?...hor=&go=search
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 03-19-2012 at 02:18.
ConnorMcLeod is offline
Old 03-28-2012, 08:02
jonnymack
This message has been deleted by Exolent[jNr]. Reason: Spam
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 06:15.


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