| ConnorMcLeod |
09-07-2013 05:14 |
Re: Mesage fix
Fixed your problem + added support for next amxx release (or actual builds).
Also, amxx version on your server is outdated.
PHP Code:
#include < amxmodx >
#if !defined client_print_color // fix for amx1.8.3 #include < colorchat > #else #define Grey print_team_grey #endif
#define PLUGIN "Messages Shower" #define VERSION "1.1" #define AUTHOR "Alka"
#define ADVERTISING_TIME 35.0
new const messages [ ] [ ] = { "^4[ZP]^1 Te rugam sa citesti regulamentul pe^3 http://csoutstanding.com", "^4[ZP]^1 IP: ^4178.168.55.213 ^1PORT: ^327015", "^4[ZP]^1 Type^3 /donate^4 <name> <packs>^1 to donate ammo packs!", "^4Co-Owner^1+^4Vip ^3PERMANENT ^45Euro ^3Cosmote/Paypal^1! : ^3add ! [email protected] ^1!", "^4[ZP]^1Thank you for your decision you made!^3 .:: HellZm.CsOutStanding.Com ::." };
public plugin_init ( ) { register_plugin ( PLUGIN, VERSION, AUTHOR );
set_task ( ADVERTISING_TIME, "show_messages", _, _, _,"b" ); }
public show_messages ( ) { static count = -1; if( ++count >= sizeof(messages) ) { count = 0; } client_print_color(0, Grey, messages[ count ]); }
|