https://wiki.alliedmods.net/Creating...Mod_Scripting)
So, from what I get here, you are working with two scripts. One is creating a Native to be used from the other. The one defining the Native has the line:
CreateNative("JC_GetCaptain", Native_Obtener);
You also need to create an include file with contents like:
PHP Code:
/** Double-include prevention */
#if defined _mynatives_included_
#endinput
#endif
#define _mynatives_included_
native int JC_GetCaptain();
Now include it with:
#include "filenameOfIncludeInSameDirectory.inc"
Then you should be able to run: if(JC_GetCaptain() == client)