NemeSyS17 Posted April 4, 2017 Share Posted April 4, 2017 Server : FurienWatf.Rangfort.ro Nick : NemeSSGrad server : DetinatorLa ce doriţi ajutor? : pai addonsul ed e furien si am bagat comanda /respawn , cred cas titi cum e pe furien , ca dau ON OF , problema e ca daca e on cand ii da respawn la player , player-ul cade sub mapa si in acelasi timp devine invizibil ! cum sa rezolv ? :/ Poză cu problema (Nu este obligatoriu) : - Aici am .sma-ul daca puteti sa mi-l faceti in regula ! #include <amxmodx> #include <amxmisc> #include <hamsandwich> #define PLUGIN "Respawn Status" #define VERSION "1.0" new g_bStatus; public plugin_init() { register_plugin(PLUGIN, VERSION, "FaTzZu") RegisterHam(Ham_Killed, "player", "Ham_PlayerKilled", 0); register_clcmd("say /respawn","cmdSayRespawn") register_clcmd("say_team /respawn","cmdSayRespawn") } public cmdSayRespawn(id) { if(!(get_user_flags(id) & ADMIN_IMMUNITY)) { client_print(id, print_chat, "Nu ai acces la comanda !"); return PLUGIN_HANDLED; } new szText[192]; new menu = menu_create("Change RESPAWN status", "handlerMenu"); switch(g_bStatus) { case true: formatex(szText, 191, "RESPAWN - \yON") case false: formatex(szText, 191, "RESPAWN - \dOFF") } menu_additem(menu, szText, "1", 0) menu_setprop(menu, MPROP_EXIT, MEXIT_ALL); menu_display(id, menu, 0); return PLUGIN_HANDLED; } public handlerMenu(id, menu, item) { if( item == MENU_EXIT ) { menu_destroy(menu); return PLUGIN_HANDLED; } new data[6], iName[64]; new access, callback; menu_item_getinfo(menu, item, access, data,5, iName, 63, callback); new key = str_to_num(data); switch(key) { case 1: { switch(g_bStatus) { case true: g_bStatus = false; case false: g_bStatus = true; } cmdSayRespawn(id); } } menu_destroy(menu); return PLUGIN_HANDLED; } public Ham_PlayerKilled(victim, attacker, shouldgib) { if(g_bStatus) set_task(1.0,"Respawn_Player", victim); } public Respawn_Player(id) { ExecuteHam(Ham_CS_RoundRespawn, id); } Link to comment Share on other sites More sharing options...
NemeSyS17 Posted April 5, 2017 Author Share Posted April 5, 2017 UP! Link to comment Share on other sites More sharing options...
NemeSyS17 Posted April 6, 2017 Author Share Posted April 6, 2017 Dai TC ! Link to comment Share on other sites More sharing options...
Recommended Posts