Get Lower Player Num
How to get the lower player num ? well, lets go to an example:
there is 5 cts, then next round there is 6, so i want to move this last one that goes to cts, and change to t. i just wonder how to catch their playtime and then get if they are new or no.. .-. |
Re: Get Lower Player Num
PHP Code:
|
Re: Get Lower Player Num
i think u didnt understand xD, lets see a more detailed explanation:
i got 3 CTs and 9 TRs playing... 3 TRs go out... so There is 3 CTs and 6 TRs, and by my server rules, there should be 3 to 1 TR/CT.. so how can i move the last CT connected to TRs? .-. its for Jailbreak... .-. edit: looking to your code looks like he just see if there are more then 5 Cts the last ID goes TR ? edit: so if the last id connected goes to TR.. interesting '-' |
Re: Get Lower Player Num
PHP Code:
When there are 3 CT's, then 1 CT get moved to the T's until the T's are 9 or more players, same with 12 T's and 4 CT's. |
Re: Get Lower Player Num
|
Re: Get Lower Player Num
PHP Code:
But i'm not sure if that is rly what you want, because when someone joines CT with a longer connection time as someone else, then the player who already was CT get moved to the T's. Example: Player A is T and is connected 10 minutes, player B is CT and is connected 5 minutes. Player A joines CT and player B get switched to the T's, because player A is longer connected. |
Re: Get Lower Player Num
Use client_infochanged or something to retrieve the event when a player switches team. Pseudocode:
PHP Code:
greets |
Re: Get Lower Player Num
i tried this idea, but it doenst give you the exacly last one :s
sorry abt the late answer ;/ i was busy... |
| All times are GMT -4. The time now is 10:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.