[ Solved ] One from Ct goes to T
hi, i'm trying to make this: all t's come to ct, and one of them goes to T
but, sometimes who come to server, cant move, and teleporting to spec places, fix it please my code -REMOVED CODE- P.S. sry for my bad english |
Re: One from Ct goes to T
PHP Code:
Also, it seems like you're checking if the user is on T and CT at the same time. I think this would be better: PHP Code:
PHP Code:
[edit] Oh and you'll want to check i<=maxplayers, since if you have 32 slots, index 32 is a valid player index. Goes from 1 to maxplayers. Updated code to match. Also I just realized the situation is somewhat more complicated, in that you could have empty spots in your player indexes. You'll have to create an array to store the valid player indexes connected to your server. PHP Code:
|
Re: One from Ct goes to T
@Prajch: thanks
EDIT: works fine now! +k :) |
| All times are GMT -4. The time now is 03:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.