AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Random Messages (https://forums.alliedmods.net/showthread.php?t=180696)

_Pro_ 03-18-2012 22:19

Random Messages
 
3 Attachment(s)
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

Dojmgubben 03-18-2012 22:29

Re: Random Messages
 
I do think this aleeady exists, notnsure, but i think :)

fysiks 03-18-2012 23:19

Re: Random Messages
 
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.

_Pro_ 03-19-2012 00:52

Re: Random Messages
 
Thanks fysiks, i think the set_task is ok, but i not sure.

ConnorMcLeod 03-19-2012 02:16

Re: Random Messages
 
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


All times are GMT -4. The time now is 03:35.

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