|
Author
|
Message
|
|
Junior Member
|

09-07-2013
, 04:37
Mesage fix
|
#1
|
anyone who can fix this bug, messages appear one after another
should not appear the same message 2 times in a row
PHP Code:
#include < amxmodx >
#include < amxmisc >
#include <colorchat>
#define PLUGIN "Messages Shower"
#define VERSION "1.0"
#define AUTHOR "Alka"
#define ADVERTISING_TIME 35.0
stock const messages [ ] [ ] =
{
"^x04[ZP]^x01 Te rugam sa citesti regulamentul pe^x03 http://csoutstanding.com",
"^x04[ZP]^x01 IP: ^x04178.168.55.213 ^x01PORT: ^x0327015",
"^x04[ZP]^x01 Type^x03 /donate^x04 <name> <packs>^x01 to donate ammo packs!",
"^x04Co-Owner^x01+^x04Vip ^x03PERMANENT ^x045Euro ^x03Cosmote/Paypal^x01! : ^x03add ! [email protected] ^x01!",
"^x04[ZP]^x01Thank you for your decision you made!^x03 .:: HellZm.CsOutStanding.Com ::."
}
public plugin_init ( )
{
register_plugin ( PLUGIN, VERSION, AUTHOR )
set_task ( ADVERTISING_TIME, "show_messages", _, _, _,"b" );
}
public show_messages ( )
{
client_print_color(0, Grey, "%s", messages[random(sizeof messages)])
}
|
|
|
|