lecz chcialbym ograniczyc ich respawn
bo teraz co smierc ich respawni ( z opoznieniem 10 sec )
a chcialbym ustawic zeby max 3 razy mogli sie zrespawnic
potem death
/////////////////////////////////////////////////////////////////// // Survivor Respawn // ///////////////////////////////////////////////////////////////// public ham_killed_respawn(id) { if(is_user_connected(id) && cs_get_user_team(id) == CS_TEAM_CT) { g_respawn_delay[id] = 10 survivor_respawner(id) } } public survivor_respawner(id) { if(is_user_alive(id) || !is_user_connected(id)) return PLUGIN_CONTINUE if(g_respawn_delay[id] > 0) { set_hudmessage(255, 255, 255, -1.0, -1.0, 0, 0.0, 1.1, 0.0, 0.0, -2) show_hudmessage(id, "Zostaniesz ozywiony za %d sekund...", g_respawn_delay[id]) g_respawn_delay[id]-- set_task(1.0, "survivor_respawner", id) } else ExecuteHamB(Ham_CS_RoundRespawn, id) return PLUGIN_CONTINUE } public join_spawn() { new player_spawn = read_data(1) static user_team[32] read_data(2, user_team, 31) if(!is_user_connected(player_spawn)) return PLUGIN_CONTINUE switch(user_team[0]) { case 'C': set_task(1.0, "survivor_respawner", player_spawn) case 'T': client_print(player_spawn, print_chat, "Zombies cant use this respawn method!") case 'S': client_print(player_spawn, print_chat, "Spectators cant use this respawn method!") } return PLUGIN_CONTINUE }
proszę o pomoc