- | Afiseaza codul
#include < amxmodx > #include < hamsandwich > #include < biohazard > #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "P.Of.Pw" new g_endround public plugin_init() { register_plugin( PLUGIN, VERSION, AUTHOR ) register_event( "HLTV", "event_round_start", "a", "1=0", "2=0" ) register_logevent( "logevent_round_end", 2, "1=Round_End" ) RegisterHam(Ham_Killed, "player", "fwd_PlayerKilled", 1) } public event_round_start() { g_endround = false } public logevent_round_end() { g_endround = true } public fwd_PlayerKilled(id) { if( g_endround ) return HAM_IGNORED; if( !game_started() ) return HAM_IGNORED; set_task( 1.0, "ham_spawn", id ) return HAM_IGNORED } public ham_spawn(id) { if( !is_user_alive( id ) ) { remove_task( id ) ExecuteHamB( Ham_CS_RoundRespawn, id ) set_task( 1.0, "set_bh_zombie", id ) } } public set_bh_zombie( id ) { if( !is_user_connected( id ) ) return; static name[ 32 ] get_user_name( id, name, 31 ) server_cmd( "amx_show_activity 0" ) server_cmd( "amx_infect %s", name ) server_cmd( "amx_show_activity 2" ) }
[Rezolvat]Bug plugin
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
- Membru, skill 0
- Posts: 36
- Joined: 14 Oct 2012, 09:15
- Detinator Steam: Da
- CS Status: Ma Joc Counter Strike
- Detinator server CS: zm.wtfcs.com
- SteamID: Da
- Has thanked: 1 time
- Contact:
Salut:) Am acest plugin:
El ar trebui sa spawneze doar zombie dar din pacate spawneaza si CT cum pot face sa spawneze doar zm