[Help] "FOR" Cycle.
Hi i've seen a lot of plugins wich s contains this code:
PHP Code:
PHP Code:
PD: Sorry for my bad english. PD2: That code ,its made by BAILOPAN.Thanks you. |
Re: [Help] "FOR" Cycle.
|
Another question :)
Thank you,i dont really understand all about FOR Cycle still,but i have other problem im trying to make a plugin wich s in eventstartround,force to all the
players to put on Counter-Terrorist Team,and with a "set_task", on 5 seconds,one player will be selected randomized and will be forced to Terrorist Team,this Randomized terrorist player,will have special habilities,thank you. :) |
Re: [Help] "FOR" Cycle.
FOR - repetitive function with known number of steps.
General form: PHP Code:
2. 'test' is evaluated 3. 'increment' is evaluated 4. If 'test' is true, the function goes to nr 2, 'test'. For instance, there are equal: While: PHP Code:
PHP Code:
Or a countdown: PHP Code:
PHP Code:
So, it takes every player and sets his cash to 16000. I hope you understood a bit. Know, your request. PHP Code:
|
Re: [Help] "FOR" Cycle.
Thank you very much !,im understanding,your code works perfect but, i play with Bots for test plugins,and when the round s starts,everybody goes to CT team and one stays in Terrorist team,then when the public function CHOOSE its activated with the set_task in 5.0 seconds,one CT goes to TT,and then
in terrorist team instead be 1 terrorist there are 2 terrorists,and i dont know why but sometimes the TERRORIST transfered to COUNTER-TERRORIST,gots TERRORIST MODEL,instead CT MODEL,and sometimes too all the CTs shoot his own team CT VS CT because after the team change,they were terroist i think that is because they are bots and when the round starts they got the teammates names and enemies names.Im trying to do ,on startround all the players go to CT team and with the set task,one of them transfer to TT,each round each player TT most be transfered to CT,and one new is selected and transfered to TT team,thank very much i appreciate your work thank you very much thank u thank u thank u.Sorry for my bad English, |
| All times are GMT -4. The time now is 09:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.