Raised This Month: $ Target: $400
 0% 

callfunc_begin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-22-2013 , 14:31   Re: callfunc_begin
Reply With Quote #1

amx_spectate is the command, not the public function.

Use this :

PHP Code:
CallSpectateFunction(id)
{
    static 
plugin = -1func = -1pluginType 0;
    if( 
plugin == -)
    {
        
plugin is_plugin_loaded("Invisible Spectator");
        if( 
plugin )
        {
            
func get_func_id("make_invis"plugin); // old version
            
if( func == -)
            {
                
func get_func_id("ClCmd_Spectate"plugin); // orpheu version
                
if( func != -)
                {
                    
// ops, something went wrong !!
                    
pluginType 2// orpheu
                
}
            }
            else
            {
                
pluginType 1;
            }
        }
    }

    if( 
func != -)
    {
        if( 
callfunc_begin_i(funcplugin) )
        {
            
callfunc_push_int(id);
            if( 
pluginType == )
            {
                
callfunc_push_int(ADMIN_BAN);
            }
            
callfunc_end();
        }
    }

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 10-22-2013 at 14:32.
ConnorMcLeod is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode