Raised This Month: $ Target: $400
 0% 

Mesage fix


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
raducuursu
Junior Member
Join Date: Sep 2012
Old 09-07-2013 , 04:37   Mesage fix
Reply With Quote #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 PLUGINVERSIONAUTHOR )
    
    
set_task ADVERTISING_TIME"show_messages"___,"b" );
}

public 
show_messages ( )
{
    
client_print_color(0Grey"%s"messages[random(sizeof messages)])

raducuursu is offline
 



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:14.


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