JCTF + GunGame
I was looking to run JCTF and GunGame mods side by side. What I need to make this more interesting is that flag captures to increase GunGame levels. I read the JCTF api and it's fairly simple. My question here is. What kind of trigger can I use in JCTF, since GunGame has no api.
Is there any way to use amx_gungame_level <target> <level> to your advantage? If that's not going to work, then is there any other way to increase level on flag capture? I know, it's possible in some way or another, as I have seen it on a server. Links: |
Re: JCTF + GunGame
Quote:
http://amxmodx.org/api/amxmodx/console_cmd |
Re: JCTF + GunGame
Thanks for the reply Yami. I have the code, but it won't pin point the person who triggered the event.
PHP Code:
Quote:
|
Re: JCTF + GunGame
You either need to pass the #UserID or the Name of the player
|
Re: JCTF + GunGame
For some reason the cvar amx_gungame_level won't work with userid. I converted the user index into userid and console still prints the same message.
Quote:
Example: amx_gungame_level tag name +1 When server sends the command, it treats "tag" "name" as two arguments, when it should consider "tag name" as one and "+1" as the other. How would I be able to fix this? Is there any solution? |
Re: JCTF + GunGame
Please show us exactly what you have tried so we can determine the correct way to assist you
|
Re: JCTF + GunGame
PHP Code:
|
Re: JCTF + GunGame
format(cmd,128, "amx_gungame_level ^"%s^" +1", name);
|
Re: JCTF + GunGame
Quote:
|
Re: JCTF + GunGame
Quote:
http://www.amxmodx.org/doc/ Also this method is not that efficient. The only reason why I went with it was because, I wanted to create a sub-plugin that won't require any change to main plugins. |
| All times are GMT -4. The time now is 15:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.