Well, the truth is that I have searched several things on this subject on the internet, however, I can not make it work, it should be noted that all the codes that show them, are pure examples of something simple that I want to do.
In my research, I came across a native particle (callfunc_begin), however, did several tests using this but without any positive result, below, show you something I want to do.
PHP Code:
/* First plugin, since this function is called from another. */
public plugin_init()
{
register_plugin(BLA... BLA... BLA)
register_clcmd("say /call", "CallFunction")
}
public CallFunction(id)
{
new Settings = callfunc_begin("Testing", "UserAlive.amxx")
if(Settings > 0)
{
callfunc_push_int(id)
callfunc_end()
}
}
In the code above, which would be the function would call another plugin:
PHP Code:
/* This is UserAlive.amxx */
public Testing(id)
{
if(is_user_alive(id))
{
client_print(id, print_chat, "You're alive.")
}
}
In theory, I want to do is something very simple, I want to say a comment "say" the Call, which will produce the function of another plugin is occurring.
Do not know if I will understand, but I think the code should know what I want more age or younger, obviously this is something to try later. Actually, I need you to tell me I'm doing wrong, and how I must.
Thanks, and hopefully help someone