pfn_spawn - NEED HELP
Hello! I've found this function:
Code:
public pfn_spawn(entid) |
Re: pfn_spawn - NEED HELP
Code:
is that what you want ? |
Re: pfn_spawn - NEED HELP
Hum. Going to test it right now
|
Re: pfn_spawn - NEED HELP
I don't get why, but still not working.
Code:
#include <amxmodx>(Actually what this is doing is NOTHING. Seems like this function can't acess to cvars...) |
Re: pfn_spawn - NEED HELP
... the cvar doesnt exist
|
Re: pfn_spawn - NEED HELP
Of Course, you have to create the var
in plugin_init(); Code:
|
Re: pfn_spawn - NEED HELP
Quote:
Code:
register_cvar(cvar_ctf_enabled,"0") |
Re: pfn_spawn - NEED HELP
then use cvar_ctf_enabled instead of sv_ctf_mode. :) (and it will work) don't forget to use [small ][/small ] next time
|
Re: pfn_spawn - NEED HELP
Code:
|
Re: pfn_spawn - NEED HELP
The forward pfn_spawn is called before plugin_init.
So your going to have to register the cvar in plugin_precache but it always going to be set to 1 on first server load. |
| All times are GMT -4. The time now is 22:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.