Raised This Month: $ Target: $400
 0% 

[L4D & Dev] OnClientChanged


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 10-21-2022 , 16:44   Re: [L4D & Dev] OnClientChanged
Reply With Quote #2

2 snippet to use

PHP Code:
public void OnClientChanged(int clientint teamint changes) {

    
//1
    
int alives 0;
    for (
int i 1<= MaxClientsi++)
        if (
isAliveHumanSurvivor(i))
            
alives++;

    
AlivedHumanSurvivor alives//a global var

    //2

    
if (changes IS_DEATH) {
        
PrintToChatAll("%N is died lol"client);
    }

__________________
NoroHime is offline
 


Thread Tools
Display Modes

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 22:43.


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