Quote:
Originally Posted by joropito
PHP Code:
public somelocal(id, name[]) { if( callfunc_begin("someremote","otherplugin.amxx") == 1 ) { callfunc_push_int(id) callfunc_push_str(name) callfunc_end() } }
1- begin [setting up call]
2- push [values as parameters]
3- end [setup and do the call]
someremote must be public function in the other plugin.
|
Thanks very much. It works for me, but not 100%. I have this in the otherplugin.amxx:
PHP Code:
public someremote(id){
if(get_pcvar_num(p_game)&&isalive(id)&¬admin(id)){
It works well, till the function isalive comes. This is in isalive:
PHP Code:
public isalive(id){
if(is_user_alive(id))return 1
client_print(id,"PLUGIN stops here -.- , you aren't alive dude!")
return 0
}
But if I do in the same plugin ( otherplugin.amxx ) a
then it does work and continue also after notadmin...
EDIT: Kid, please get the fuck out if you can't read anything. Think before posting, thanks!