Raised This Month: $ Target: $400
 0% 

check client disconnect or team == 0 ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 01-29-2017 , 13:24   Re: check client deconnect or team == 0 ?
Reply With Quote #3

Quote:
Originally Posted by edon1337 View Post
1) If the code is uncompleted, how can we help ?
I think I explained what the problem thing that is not clear?

Quote:
Originally Posted by edon1337 View Post
2) Why to use tasks when you have events ?
bcz i said up :
Quote:
game: valve
dont have events
Quote:
Originally Posted by edon1337 View Post
3) Indent your code properly.
i dont share the code to fix it ..only to illustrate the problem bcz the code work for me perfect only this problem as i said up (when players deconnected for any (teams == 0)
Quote:
Originally Posted by edon1337 View Post
4) Your set_task usage is wrong, you have to use "b" flag to make it repeatable.
Yes myb but i used other way look in code :
Quote:
PHP Code:
    if(roundtime)
        
set_task(1.0,"round_think")
    else
        
round_end(0
Quote:
Originally Posted by edon1337 View Post
5) No need to return PLUGIN_HANDLED.
I do not use it?

Quote:
Originally Posted by edon1337 View Post
If I understood right, you just want to check when Zombies/Humans win so you can display a HUD message ?
no not exactly what you understood .. and about hud msg look in round_end i used it ?

I hope that the idea becomes clear
__________________

Last edited by abdobiskra; 01-29-2017 at 13:27.
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:03.


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