[SOLVED]+1/sec.
new my_number
my_number get per sec. +1 or +x.. dont wanna use task. if this & this set my_function +my_number else my_function = xx |
Re: +1/sec.
SOLVED. SRY.
new g_speed_time 90 g_speed_time = g_speed_time + 1 if(g_speed_time >= 90 && g_speed_time <= 120) { set_vision(id, g_speed_time) } } else { if(g_speed_time >= 120) { g_speed_time = 120 } if(g_speed_time >= 90 && g_speed_time <= 400) { g_speed_time = g_speed_time -1 set_vision(id,g_speed_time) } |
Re: +1/sec.
PHP Code:
|
Re: +1/sec.
PHP Code:
PHP Code:
|
Re: +1/sec.
Hmmm :-?? i got it so.
im to lame to change this. but if is there anything better, ill change :( any ideas? PHP Code:
|
Re: +1/sec.
What are you trying to do? I don't see why this would work.
|
Re: +1/sec.
1 Attachment(s)
in demo ull see what i did :P
|
Re: +1/sec.
Code:
if g_speed_time is less or equal to 120 |
Re: +1/sec.
cuz if i dont the vision got over 120 or get over -1 ... try it by ur self. to give by attack2 vision 90 to 120 & fom 120 to 90 back. i know this looks silly but i couldnt find other way to do this.
updated the demo, u can now the effect better. |
Re: +1/sec.
You check if it's equal in the first "if", and also in the second "if". If the speed time is 120, it will only go through the first "if" and wont touch the second "if". That's why you should only check ">" in the second "if" (else if).
|
| All times are GMT -4. The time now is 15:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.