and zombie is respawn all time in Round !!! can i do it only respawn 4 time per round? i want to add limit, i don't want to respawn all time. 4 time per round to respawn, per round not per map
i know that's hard , but i hope that's someone help me.
hmm, i want to make limit i don't need respawn code, because i enable cvar of deathmatch = 2 (zombie only) i just want to make a limit, i want only 4 respawn per round for zombie, not more.
public Event_NewRound() { new iPlayers[32], iPlayerCount, i, id get_players(iPlayers, iPlayerCount, "a") for(i = 0; i < iPlayerCount; i++) { id = iPlayers[i] g_iRespawnCount[id] = 0 } }
public fw_PlayerRespawn(id) { if(is_user_alive(id) && zp_get_user_zombie(id)) { if(g_iRespawnCount[id] >= 4) { user_silentkill(id) client_print(id, print_chat, "[ZP] Zombie only allowed to respawn 4 times per round!") } else { g_iRespawnCount[id]++ } } } Just check the cvar of deathmatch in your code.
Personal message only for paid request. If you love this forum, kindly to donate by clicking the donate button at the footer of this forum.