Plugin Optimize
Hello, I need some 'help' on my plugin and need someone to fix it for me please?
This is susposed to change a CVAR, but it's not. What I'm trying to do is create a command in this case "amx_npckill" and make it so it will change a allready built-in cvar, in this case "killnpc". amx_npckill - The created command. killnpc - Allready built-in command (svencoop had it). Do you get me? amx_npckill 0 should change killnpc to 0, and vise versa. But theres just one little problem.. It won't work it compiles but just doesn't work. Can someone get it too work please? PHP Code:
|
Re: Plugin Optimize
killnpc is your command, not your cvar.
Quote:
Quote:
|
Re: Plugin Optimize
Responded at a bad time ;) I'm about to go to bed cause it's 12:15 and tired.
I'll test this tomorrow morning, thanks. |
Re: Plugin Optimize
if i understand u correctly try this..
u may also have to go into your amxmodx/config/cvars folder and add this line "amx_npckill" "0" "1" "u" Code:
#include <amxmodx>try somin like this so that each time u type npckill in console it will turn it on and off instean of going into ur amxmodx menu....but hey im pro at coding just tryin to give ideas/help Code:
#include <amxmodx> |
| All times are GMT -4. The time now is 06:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.