Help on plugin
im trying to make a plugin that on CS:CZ it adds bots when there are 0 players and takes them away when players enter
would this work PHP Code:
|
Re: Help on plugin
No, that won't work. Mainly because where are you calling check_playernumber?
|
Re: Help on plugin
i dont know lol i was just messing with some code, i was just trying to make this, im still not all that good at scripting
Can you help me? |
Re: Help on plugin
Try this :
Code:
|
Re: Help on plugin
thx but this only adds the bots it never removes them, i want something like when a player enters a bot leaves when 6 players enter 6 bots leave
|
Re: Help on plugin
replace
set_pcvar_num(cvar_bot_quota, 0) with server_cmd("bot_kick") |
Re: Help on plugin
not working still
i want it to Kick 1 bot when 1 player enters 2 bots when 2 players in server 3 bots when 3 players in server and etc |
Re: Help on plugin
I've just edited the code, try it again :)
|
Re: Help on plugin
/home/groups/amxmodx/tmp3/phpiH86DV.sma(10) : error 037: invalid string (possibly non-terminated string)
1 Error. Could not locate output file /home/groups/amxmodx/public_html/websc3/phpiH86DV.amx (compile failed). |
Re: Help on plugin
I've only renamed pointer 'max' to 'maxbots' so it should compiles fine, just don't know why you fail.
|
| All times are GMT -4. The time now is 16:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.