Raised This Month: $ Target: $400
 0% 

Solved check team = 0 when disconnect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 02-15-2017 , 13:39   check team = 0 when disconnect
Reply With Quote #1

Hi !
i cant check it ? where is the worong ?
PHP Code:
public client_disconnect(id){
    
    new 
team_name[32];
    new 
team_number get_user_team(idteam_namecharsmax(team_name));
    
    new 
numplayers[32]
    
get_players(players,num)
    
    for(new 
i=0;i<=num;i++)
    {
        if(
get_user_team(players[i])== team_number
        {
            
client_print(0print_chat"**End1**")// debug!
        
}
    }

__________________

Last edited by abdobiskra; 02-20-2017 at 10:01.
abdobiskra is offline
Send a message via Skype™ to abdobiskra
 



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 21:00.


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