Raul USHU Admin
Mesaje : 162 Data de înscriere : 13/02/2010 Localizare : Galgau Almas
| Subiect: Plugin cfg_vertical_messages.sma Lun Feb 15, 2010 12:11 am | |
| Plugin cfg_vertical_messages. sma [Trebuie sa fiti inscris si conectat pentru a vedea acest link] [Trebuie sa fiti inscris si conectat pentru a vedea acest link] [Trebuie sa fiti inscris si conectat pentru a vedea acest link] - Citat :
- /*
Tv-VMR.Idle.Ro */
#include < amxmodx >
// - - - - - - - - - - - - - - - #define INTERVAL 20.0 #define COLORMODE 2
#define RED 0 #define GREEN 170 #define BLUE 0
#define X_POSITION 0.95 #define Y_POSITION 0.05
#define DURATION 5.0
new const g_sMessages[ ][ ] = { " Tv-VMR.Idle.Ro ", " Salvati La Favorit ", " [Trebuie sa fiti inscris si conectat pentru a vedea acest link] " }; // - - - - - - - - - - - - - - -
new g_maxplayers;
public plugin_init() { register_plugin ( "Vertical Messages", "1.0", "aNNakin" ); set_task ( INTERVAL, "show_message", _, _, _, "b" ); g_maxplayers = get_maxplayers ( ); }
public show_message ( ) { new s_String[ 32 ], s_Show[ ( sizeof s_String * 2 ) - 1 ], i_X, i_I, i_J, i_Red, i_Green, i_Blue; i_X = random_num ( 0, sizeof g_sMessages - 1 ); copy ( s_String, 31, g_sMessages[ i_X ] ); while ( ( s_Show[ i_J++ ] = s_String[ i_I++ ] ) ) s_Show[ i_J++ ] = '^n' #if COLORMODE == 1 i_Red = RED; i_Green = GREEN; i_Blue = BLUE; #else i_Red = random_num ( 0, 255 ); i_Green = random_num ( 0, 255 ); i_Blue = random_num ( 0, 255 ); #endif set_hudmessage ( i_Red, i_Green, i_Blue, 0.95, 0.05, 0, 6.0, DURATION ); for ( i_I = 1; i_I <= g_maxplayers; i_I++ ) if ( is_user_connected ( i_I ) ) show_hudmessage ( i_I, "%s", s_Show ); return 0; } | |
|