Raised This Month: $ Target: $400
 0% 

MDL MOTD for welcome camera [Bug]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
NarutoAzores
Junior Member
Join Date: Sep 2018
Old 09-29-2018 , 11:57   MDL MOTD for welcome camera [Bug]
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>

#pragma semicolon 1
#pragma ctrlchar '\'

#define PLUGIN "MDL MOTD for welcome camera"
#define VERSION "1.0"
#define AUTHOR "KORD_12.7"

#define MOTD_MODEL "models/motd_inf.mdl"
#define PFLAG_OBSERVER ( 1<<5 )
const m_afPhysicsFlags 193;

public 
plugin_precache()
{
    
register_plugin(PLUGINVERSIONAUTHOR);

    
precache_model(MOTD_MODEL);
    
RegisterHam(Ham_Spawn"player""Player_Spawn_Post"true);
}

public 
Player_Spawn_Post(const iPlayer)
{
    if (
pev_valid(iPlayer) != 2)
    {
        return 
HAM_IGNORED;
    }

    if (
get_pdata_int(iPlayerm_afPhysicsFlags) & PFLAG_OBSERVER)
    {
        
set_pev(iPlayerpev_viewmodel2MOTD_MODEL);
    }

    return 
HAM_IGNORED;

I put this on my server but dont work he dont say any error in console

Last edited by NarutoAzores; 09-29-2018 at 11:58.
NarutoAzores is offline
 



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 02:44.


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