Hi.
I have a problem all night to get tired that was immortal, CT, and TT could not walk after 60 seconds.
I did that dims the map after 60 seconds, and that TT could not move and that they had no weapons, but now it crashes my mistake
The error is that how it all did not get a CT flashlights, weapon, is not immortal and TT can walk.
Here code-seek:
PHP Code:
public cmd_hns_start() { server_cmd("jb_unblock_weapons") new Players[32] new playerCount, i get_players(Players, playerCount, "ac") for (i=0; i<playerCount; i++) set_lights("a"); { if (cs_get_user_team(Players[i]) == CS_TEAM_T) { set_user_maxspeed(Players[i], 0.01) set_user_health(Players[i], 100) } else { give_item(Players[i], "weapon_knife") current_weapon(Players[i]) set_bit(g_Fonarik, Players[i]) client_cmd(Players[i], "impulse 100") new j = random_num(0, sizeof(_WeaponsFree) - 1) give_item(Players[i], _WeaponsFree[j]) cs_set_user_bpammo(Players[i], _WeaponsFreeCSW[j], _WeaponsFreeAmmo[j]) /// give two random guns new n = random_num(0, sizeof(_WeaponsFree) - 1) while (n == j) { n = random_num(0, sizeof(_WeaponsFree) - 1) } give_item(Players[i], _WeaponsFree[n]) cs_set_user_bpammo(Players[i], _WeaponsFreeCSW[n], _WeaponsFreeAmmo[n]) } } emit_sound(0, CHAN_AUTO, "jbextreme/brass_bell_C.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) new sz_msg[256]; formatex(sz_msg, charsmax(sz_msg), "^x03%L", LANG_SERVER, "UJBM_MENU_GAME_TEXT_HNS_START") client_print(0, print_center , sz_msg) return PLUGIN_CONTINUE } public cmd_game_hns() { g_nogamerounds = 0 g_BoxStarted = 0 jail_open() g_GameMode = 3 g_SimonAllowed = 0 g_Simon = 0 set_lights("z"); emit_sound(0, CHAN_AUTO, "jbextreme/brass_bell_C.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) player_hudmessage(0, 2, HUD_DELAY + 1.0, {0, 255, 0}, "%L", LANG_SERVER, "UJBM_MENU_GAME_TEXT_HNS") set_lights("z"); server_cmd("jb_block_weapons") new Players[32] new playerCount, i get_players(Players, playerCount, "ac") for (i=0; i<playerCount; i++) { strip_user_weapons(Players[i]) } set_task(60.0,"cmd_hns_start",TASK_GIVEITEMS) return PLUGIN_CONTINUE }
Please help
Sorry for my English, but I do not know too much