in my plugin, i want bots to be zombies. i get to this:
Code:
public round_start() {
set_task(1.0,"SetBotToZombie")
}
public plugin_precache(){
precache_model("models/player/zombie/zombie.mdl")
}
public SetBotToZombie() {
new players[32],num,i
get_players(players,num)
for(i = 0; i <= num; i++) {
new id = players[i]
if(!get_cvar_num("amx_zombiebot")) {
return PLUGIN_HANDLED
}
if(is_user_bot(id) && is_user_alive(id)) {
set_user_health(id,get_cvar_num("amx_zombiebot_health"))
set_user_maxspeed(id,get_cvar_num("amx_zombiebot_speed"))
cs_set_user_model(id,"models/player/zombie/zombie.mdl")
}
}
return PLUGIN_CONTINUE
}
i then compile the sma file, put the amxx file into plugins... shortly, everything is working as is shoud be.
then i go into the game, i wait a second, and bots reappear as normal, in gign model... after i kill one, it turnes to zombie from zombie.mdl and just stands at the place of kill. so, i have a problem... so, i beg you, if anyone could help me with this, so zombies would appear at first, not when i kill a bot.