View Single Post
evilmaniac
SourceMod Donor
Join Date: May 2012
Old 02-02-2016 , 23:25   Re: [L4D2] Points System (v1.7.5, 2016-01-31)
Reply With Quote #9

Quote:
Originally Posted by SELL View Post
PHP Code:
HookEvent("player_team"Reset_Points);

public 
Action:Reset_Points(Handle:eventString:event_name[], bool:dontBroadcast)
{
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    
points[client] = 0;

I am not strong in plug-ins, but I think this code can be added. this is when the transition from command to command the survivors infected, then Points are not saved. Only here I Do not Know How To Fix team !takeover then also resets Points)))
I'm not sure what exactly you are trying to do. Are you trying to reset a player's points when they switch teams, but not when they use the !takeover command ?
__________________
evilmaniac is offline