About banip command
new szIp[32];
get_user_ip(id, szIp, charsmax(szIp), 1); server_cmd("kick #%d;wait;wait;wait;addip %d ^"%s^";wait;wait;wait;writeip", get_user_userid(id), get_pcvar_num(g_iPcvar[CVAR_BANTIME]), szIp); What is the "wait" means here? and why use "kick #%d" before addip ? Thanks :o |
Re: About banip command
addip doesn't kick, that's why it has kick there...
One wait means one frame, it waits as many frames as the waits are before executing the next command. |
Re: About banip command
Quote:
and, the last the question, if there are no "wait", what is the different ? ` |
Re: About banip command
As if you make a say script in CS without wait's ur CS will crash, so my guess is:
The server might crash if u dont use waits. |
Re: About banip command
Thanks!
two nice people |
Re: About banip command
Quote:
You use waits to add a time interval between commands. Example, if you have a series of 5 say commands without waits, it will only print one because you cannot say 5 messages that fast. So, you add waits in between so the game allows them to work. If you don't have waits, it won't make your server crash. Example: Code:
alias settings1 "alias settings settings2; cl_minmodels 1; cl_righthand 1; net_graph 3; cl_showfps 0;" |
Re: About banip command
True exolent, but still if your making two commands without any waits, it will crash..
i made a say script.. Without about 70 waits it would crash my cs. |
Re: About banip command
Quote:
|
Re: About banip command
Code:
alias "w1" "wait;" |
Re: About banip command
It shouldn't crash.
|
| All times are GMT -4. The time now is 07:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.