PHP Code:
#include <amxmodx>
#include <biohazard>
#define EKLENTI "Zombi Gozu"
#define VERSIYON "1.0"
#define YAZAR "Optimist"
new gmsgSetFOV;
public plugin_init() {
register_plugin(EKLENTI, VERSIYON, YAZAR)
register_cvar("zombi_gozu", "116")
gmsgSetFOV = get_user_msgid("SetFOV")
}
public event_infect(id) {
if(is_user_alive(id)) {
zombigoz(id)
}
}
public zombigoz(id) {
new Vision = get_cvar_num("zombi_gozu")
message_begin(MSG_ONE, gmsgSetFOV, {0,0,0}, id)
write_byte(Vision)
message_end()
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1254\\ deff0\\ deflang1055{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
The problem is that when the zombie respawn no more zoom for him.How to fix that after respawn zombie have zoom look?
__________________