i find this
PHP Code:
register_logevent("logd_infect",5,"2=Medic_Infection");
public logd_infect()
{
// get the names of the players
new logd[64], name1[32], name2[32];
read_logargv(0,logd,63);
parse_loguser(logd,name1,31);
read_logargv(4,logd,63);
parse_loguser(logd,name2,31);
// get the indexes of the players
new player1, player2;
player1 = get_index_by_name(name1);
player2 = get_index_by_name(name2);
// invalid players
if(!player1 || !player2) return PLUGIN_CONTINUE;
// effects
infected[player2] = 1;
set_user_rendering(player2,kRenderFxGlowShell,GC_INFECTED_R,GC_INFECTED_G,GC_INFECTED_B,kRenderNormal,16);
client_print(0,print_chat,"%s has infected %s, %s will glow %s for the duration of his infection",name1,name2,name2,GC_INFECTED_NAME);
return PLUGIN_CONTINUE;
}
(
http://forums.alliedmods.net/showthr...light=infected)
and i find this too :
PHP Code:
bool:BotIsInfected(pEntity)
{
new pent = -1;
while ((pent = find_ent_by_class( pent, "timer" )) && (is_valid_ent(pent)))
{
//UTIL_SavePent(pent);
if((entity_get_edict(pent, EV_ENT_owner) == pEntity) && entity_get_edict(pent, EV_ENT_enemy))
{
if ((entity_get_int(entity_get_edict(pent, EV_ENT_enemy), EV_INT_playerclass) == TFC_CLASS_MEDIC))
return true;
}
}
return false;
}
(
http://forums.alliedmods.net/showthr...light=infected)
and i find this too :
http://forums.alliedmods.net/showthr...light=infected
but how to for admin can conta other player for punish
like amx_conta "player"
maybe build an fake event
or new infection systheme but this infection MUST contaminated other peaple ^^
can you help me please ?