AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   fantastiko (https://forums.alliedmods.net/showthread.php?t=223574)

fantastiko 08-15-2013 06:21

fantastiko
 
fantastiko

Shooting King 08-15-2013 10:09

Re: help spec mode
 
FYI, from HLSDK
PHP Code:

#define OBS_NONE            0    
#define OBS_CHASE_LOCKED        1 // #Spec_Mode1    Locked Chase cam
#define OBS_CHASE_FREE            2 // #Spec_Mode2    Free chase cam
#define OBS_ROAMING            3 // #Spec_Mode3    Free look
#define OBS_IN_EYE            4 // #Spec_Mode4    First Person    
#define OBS_MAP_FREE            5 // #Spec_Mode5    Free Overview 
#define OBS_MAP_CHASE            6 // #Spec_Mode6    Chase Overview 

PHP Code:

#include <amxmodx>

#define PLUGIN        "spectate block"
#define VERSION        "0.0.1"
#define AUTHOR        "author unknown anonym"

#define OBS_IN_EYE    4

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_event("TextMsg""block_spec_modes""bd""2&Spec_Mod");
}

public 
block_spec_modes(id)
{
    new 
data[12];
    
read_data(2data11);
        
    if( 
data[10] != OBS_IN_EYE )
    {
        
client_cmdid"spec_mode %d"OBS_IN_EYE );
        return 
PLUGIN_HANDLED;
    }
    return 
PLUGIN_CONTINUE;




All times are GMT -4. The time now is 16:00.

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