Raised This Month: $51 Target: $400
 12% 

[L4D2] Points Resetter 2


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
noxman
Member
Join Date: Jun 2012
Old 02-04-2014 , 15:14   [L4D2] Points Resetter 2
Reply With Quote #1

I have this points resetter installed on my server:

PHP Code:
public Action:Event_TeamChange(Handle:eventString:event_name[], bool:dontBroadcast) { 

    new 
client GetClientOfUserId(GetEventInt(event"userid")); 
    new 
teamnew GetEventInt(event"team"); 
    new 
teamold GetEventInt(event"oldteam"); 

    if (
teamold != teamnew && IsAllowedReset()) { 
        
points[client] = GetConVarInt(StartPoints); 
        
hurtcount[client] = 0
        
protectcount[client] = 0
        
headshotcount[client] = 0
        
killcount[client] = 0
        
wassmoker[client] = 0
    } 
     
    
tanksspawned 0
    
witchsspawned 0
    
PrintToChat(client"[PS]The Points are been reset to 200."); 

This one works very good.

Iam currently on survivor/infected team => switch to infected/survivor => Points are reset to 200.

Iam on survivor/infected team => switch to spec mode and back => point should be not reset.

Is that possible?

Thanks in advance
noxman is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 02-05-2014 , 12:55   Re: [L4D2] Points Resetter 2
Reply With Quote #2

IsAllowedReset() , what's that ?
__________________
Want to check my plugins ?
Arkarr is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode