Witam,
Mam problem z pluginem https://amxx.pl/topi...owy-vip-w-nocy/.
Chciałbym, aby na serwerze był freevip w godzinach 22-10.
Tak wygląda mój .sma freevip'a.
#include <amxmodx> #include <hamsandwich> #define PLUGIN "Free VIP" #define VERSION "1.0" #define AUTHOR "Karol33k" new g_FreeVip[33]; new g_Time_1, g_Time_2 public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) g_Time_1 = register_cvar("free_vip_time_from", "22") g_Time_2 = register_cvar("free_vip_time_to", "10") RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1) } public fwHamPlayerSpawnPost(id) { new szTime[3] get_time("%H",szTime,2) new Time_1 = get_pcvar_num(g_Time_1) new Time_2 = get_pcvar_num(g_Time_2) new iTime = str_to_num(szTime) if( 20 <= iTime <= 24 ) { if( !(get_user_flags(id) & ADMIN_RESERVATION) ) { remove_user_flags(id, ADMIN_USER); set_user_flags(id, ADMIN_LEVEL_H); g_FreeVip[id] = true; set_hudmessage( 255, 255, 255, -1.0, 0.87, 0, 0.0, 12.0, 0.1, 0.2, -1 ); show_hudmessage ( id, "Darmowy vip od %d:00 do %d:00!", Time_1, Time_2) } } else if( 00 <= iTime <= 10 ) { if( !(get_user_flags(id) & ADMIN_RESERVATION) ) { remove_user_flags(id, ADMIN_USER); set_user_flags(id, ADMIN_LEVEL_H); g_FreeVip[id] = true; set_hudmessage( 255, 255, 255, -1.0, 0.87, 0, 0.0, 12.0, 0.1, 0.2, -1 ); show_hudmessage ( id, "%L", id, "Darmowy Vip!!", Time_1, Time_2) } } else if( g_FreeVip[id] ) { remove_user_flags(id, ADMIN_LEVEL_H); set_user_flags(id, ADMIN_USER); g_FreeVip[id] = false; } }
VIP'a na serwerze mam z generatora, czytałem, że trzeba coś pozmieniać, ale nie mam bladego pojęcia jak to zrobić, aby działał z freevip'em
W załączniku dodam .sma do mojego VIP'a.
Czy ktoś będzie w stanie mi go edytować, aby zadziałał z nocnym freevip'em?
Ewentualnie jak to zrobić krok po kroku?
Z góry dziękuję, za każdą odpowiedź w temacie.