View Single Post
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 06-21-2015 , 19:22   Re: who's the problem with client id from other function call?
Reply With Quote #2

try this:
PHP Code:
public Action Event_PlayerDeath(Event event, const char[] namebool dontBroadcast)
{
    
int attacker GetClientOfUserID(event.GetInt("attacker")), victim GetClientOfUserID(event.GetInt("userid")), assister GetClientOfUserID(event.GetInt("assister"));
    if (!
IsClientInGame(attacker) || !IsClientInGame(victim) || attacker == victim || GetClientTeam(attacker) == GetClientTeam(victim))
        return 
Plugin_Continue;
    
EventCall(killerEVENT_KILL);
    
EventCall(victimEVENT_DEATH);
    return 
Plugin_Continue;
}

void EventCall(int clientint type)
{

__________________

Last edited by WildCard65; 06-21-2015 at 19:23.
WildCard65 is offline