Hello again. I want to know how can I do just one terrorist? Example, when the random player has been choosed, the other players except the random player will change the team to CT, like on ZP.
I tried this code:
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
public plugin_init() {
register_plugin("Red's War Zombie Mode", "1.0", "MihaiGamerXD")
register_event("HLTV","onNewRound","a","1=0","2=0")
}
public onNewRound() {
set_task(1.0,"ZombieTime",0,"",0,"a",1)
}
public ZombieTime() {
new iPlayers[32], iNum
get_players(iPlayers,iNum,"a")
for (new i = 0; i < iNum; i++) {
new target = iPlayers[random(i)]
if (is_user_alive(iPlayers[i])) {
if (iPlayers[i] != target) {
cs_set_user_team(iPlayers[i],CS_TEAM_CT)
}
}
}
}
And it doesn't work! Any ideas?