Quote:
Originally Posted by Bos93
PHP Code:
#include < amxmodx >
#define PLUGIN_NAME "x" #define PLUGIN_VERSION "x" #define PLUGIN_AUTHOR "x"
new bool:g_bReturn;
public plugin_init( ) { register_plugin ( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR ); }
public plugin_natives() { register_native("get_bReturn", "_get_bReturn_", 1 ); }
public _get_bReturn_( ) { return g_bReturn; }
Example for other plugins:
native bool:get_bReturn;
if( get_bReturn ) //code
|
If I will use that like this?
PHP Code:
bool:get_bReturn[33];
public plugin_natives()
{
register_native("get_bReturn", "_get_bReturn_", 1 );
}
public _get_bReturn_( )
{
return g_bReturn;
}
Do I have to change something?