Quote:
PHP Code:
return PLUGIN_HANDLED
is greater than
|
What? O_o . You sould learn more before to say that...

.
You don't have to use HANDLED all the time...
Code:
#define PLUGIN_CONTINUE 0 /* Results returned by public functions */
#define PLUGIN_HANDLED 1 /* stop other plugins */
#define PLUGIN_HANDLED_MAIN 2 /* to use in client_command(), continue all plugins but stop the command */
Quote:
|
What in the hell is this, why do you have cstrike?
|
Because it gives money... But since it uses fakemeta he could use the money offset using
set_pdata_*() .
Quote:
|
you shouldn't use fakemeta and engine together.
|
Not really. But his code doesn't use any engine function. So he can remove '#include <engine>'.
Quote:
Next, after 900 seconds it'll regenerate? :/
PHP Code:
#define TASK_REGEN 999
|
This define isn't for that...

It's a random value used by the task...
Quote:
Next, why is your CVAR a server command?
PHP Code:
register_cvar("sv_tfcmod", "1")
should be:
PHP Code:
register_cvar("amx_tfcmod", "1")
|
I agree to not use sv_ prefix. But he can use other than 'amx_'.
Quote:
Change on all:
PHP Code:
if ( get_cvar_num(sv_tfcmod) == 0 )
|
What?!
He should use pcvar.
So, something like :
Code:
new p_mode, p_perkill
public plugin_init()
{
p_mode = register_cvar( "sv_tfcmod", "1" )
p_perkill = register_cvar( "XP_per_kill", "20" )
}
myfunction()
{
if( !get_pcvar_num( p_mode ) )
return;
}
__________________