Problems with a selection detection
Code:
|
1] How do you know it enters check_time?
2] for(new i=0; i<pnum; i++) please do: new i for(i=0; i<pnum; i++) 3] Why are you binding these calls to client_putinserver, which is called separately also? my reveal trickiness... |
I know it enters check_time because
Code:
use to have Code:
and it did output something, htough it wasn't a number :-/ |
it wasn't a number because you did "%s" instead of "%d"
|
okay that explains that...but...why won't this work? I'm so confused
to me this code should work |
alright, now that I realized my error, I think I may be able to fix this
I was trying to detect alive players, when I wanted to detect dead players >.< thank you bail for helping me to realize that Code:
this all works the way I intended it to. BAIL...you remind my of my programming teacher...you give a LITTLE hint on how to fix a problem then make me go and do it myself...and I did, thank you ;) |
alright, after multiple people telling me doing everything I did in client_putinserver was a bad idea I decided I'd break hte plugin up a bit
Code:
Please tell me if that looks better someone |
the code looks fine but the concept looks flawed, from what I can tell, you kick a guy if the round starts and he hasn't picked a skin... but what if he joins right when it says "terrorists win!" or something... then he has less than half a second to pick or gets kicked. On one hand, you could kick him if he still hasn't picked for a whole consecutive round, and that wouldnt be hard to implement using your current code.
|
it actually gives him until the round starts, the world triggered Round_Start doesn't occur until freeze time is up.
|
Dusting off some old code and seeing if I can get this working again :)
But I need a server willing to test :( Code:
I've made a TINY change (I fixed format of one of my loops) lol. Anyone have any more suggestions? I'm also thinking of basing this around the round time instead of round start, how can I recieve that variable to give that player that much time to select a skin? Yay for necro-posting :lol: |
| All times are GMT -4. The time now is 14:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.