#include <amxmodx> #include <hamsandwich> public plugin_init() { register_plugin( "Respawn", "1.0", "Sinoku" ); register_clcmd( "respawn", "Respawn" ); register_event("DeathMsg", "trup", "a"); } public trup(id) { if( !is_user_alive( id ) ) { client_cmd(id, "respawn") } } public Respawn( id ) { if( !is_user_alive( id ) ) { ExecuteHamB( Ham_CS_RoundRespawn, id ); } return PLUGIN_HANDLED; }
Napisalem se taki plugin na respawn i mam problem
1 jak zrobic zeby automatycznie byl respawn po 2 sek
2 plugin sie debuguje ;/ znaczy dizalal najpierw przez 2 dni 0 problema potem debug....
Wycinek loga
L 06/03/2009 - 14:46:13: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20090603.log") L 06/03/2009 - 14:46:13: [HAMSANDWICH] Entity has null private data (13) L 06/03/2009 - 14:46:13: [AMXX] Run time error 10 (plugin "respawn.amxx") (native "ExecuteHamB") - debug not enabled! L 06/03/2009 - 14:46:13: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 06/03/2009 - 14:49:02: [HAMSANDWICH] Entity has null private data (14) L 06/03/2009 - 14:49:02: [AMXX] Run time error 10 (plugin "respawn.amxx") (native "ExecuteHamB") - debug not enabled! L 06/03/2009 - 14:49:02: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 06/03/2009 - 14:49:04: [HAMSANDWICH] Entity has null private data (14) L 06/03/2009 - 14:49:04: [AMXX] Run time error 10 (plugin "respawn.amxx") (native "ExecuteHamB") - debug not enabled! L 06/03/2009 - 14:49:04: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 06/03/2009 - 14:49:06: [HAMSANDWICH] Entity has null private data (14) L 06/03/2009 - 14:49:06: [AMXX] Run time error 10 (plugin "respawn.amxx") (native "ExecuteHamB") - debug not enabled! L 06/03/2009 - 14:49:06: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).