RSSy MYGO.pl Opublikowano Wrzesień 10, 2023 o 04:53 RSSy Udostępnij Opublikowano Wrzesień 10, 2023 o 04:53 Hello ! Can you add to this free vip event plugin a menu with weapons free for all players ; AK47+DEAGLE+HE SMOKE FLASHBANG M4A1+DEAGLE+HE SMOKE FLASHBANG Also for gold vip with flag access "t" AWP+DEAGLE + HE SMOKE FLASHBANG Thanks in advance!! #include <amxmodx> #include <amxmisc> const TASK_ID = 258; new task_set = 0; new inceput, sfarsit, flag_vip, h public plugin_init() { register_plugin("Dam la saraci vip", "3.0", "cyby // editat de LOL") register_dictionary("vip_free.txt") inceput = register_cvar( "vip_start", "01" ); sfarsit = register_cvar( "vip_end", "23" ) flag_vip = register_cvar( "vip_flag", "524288" ) } public client_putinserver(id) { new o, m, s; time(o, m, s) if(o >= get_pcvar_num( inceput ) && o < get_pcvar_num( sfarsit )) { if( get_user_flags(id) != get_pcvar_num( flag_vip ) ) { set_user_flags(id, get_pcvar_num( flag_vip )) set_task(3.0, "mesaj", id) set_task(1.0, "hud_mess", _, _, _, "b") set_task(60.0, "incepe", id) set_task(60.0, "terminare", id) } if( !task_set ) { set_task( 60.0, "recheck", TASK_ID, _, _, "b" ); // task pus la 1 minut pentru a functiona corect task_set = 1; } } } public recheck() { time( h, _, _ ); if( h >= 23 ) { new iPlayers[ 32 ], iNum, i; get_players( iPlayers, iNum ); for( i = 0; i < iNum; i++ ) { remove_user_flags( iPlayers[ i ] ); } server_cmd( "amx_reloadadmins" ); remove_task( TASK_ID ); task_set = 0; } } public incepe(id) { new o, m, s; time(o, m, s) if(o == get_pcvar_num( inceput ) ) ColorChat(id, "%L", LANG_SERVER, "MESAJ_INCEPUT") } public terminare(id) { new o, m, s; time(o, m, s) if(o == get_pcvar_num( sfarsit ) ) ColorChat(id, "%L", LANG_SERVER, "MESAJ_SFARSIT") } public hud_mess() { new o, m, s; time(o, m, s) if(o >= get_pcvar_num( inceput ) && o < get_pcvar_num( sfarsit )) { set_hudmessage(random(256), random(256), random(256), 0.00, 0.17, 1, 1.0, 1.1, 0.1, 0.1, -1) show_hudmessage(0, "%L", LANG_SERVER, "MESAJ_HUD") } } public mesaj(id) { if( get_user_flags(id) != get_pcvar_num( flag_vip ) ) { ColorChat(id, "%L", LANG_SERVER, "MESAJ_INTRARE", get_pcvar_num( inceput ), get_pcvar_num( sfarsit )) } } stock ColorChat(const id, const input[], any:...) { new count = 1, players[32]; static msg[191]; vformat(msg, 190, input, 3); replace_all(msg, 190, "!g", "^4"); replace_all(msg, 190, "!n", "^1"); replace_all(msg, 190, "!t", "^3"); if(id) players[0] = id; else get_players(players, count, "ch"); { for(new i = 0; i < count; i++) { if(is_user_connected(players[i])) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]); write_byte(players[i]); write_string(msg); message_end(); } } } } Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi