AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   MDL MOTD for welcome camera [Bug] (https://forums.alliedmods.net/showthread.php?t=310994)

NarutoAzores 09-29-2018 11:57

MDL MOTD for welcome camera [Bug]
 
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

Ghosted 09-29-2018 12:12

Re: MDL MOTD for welcome camera [Bug]
 
ehm, maybe post what error console said to you

iceeedr 09-29-2018 12:13

Re: MDL MOTD for welcome camera [Bug]
 
Quote:

Originally Posted by Ghosted (Post 2617308)
ehm, maybe post what error console said to you

"he dont say any error in console "

NarutoAzores 09-29-2018 12:22

Re: MDL MOTD for welcome camera [Bug]
 
Maybe because its for half-life server someone can convert to cs 1.6?

Ghosted 09-29-2018 13:00

Re: MDL MOTD for welcome camera [Bug]
 
Quote:

Originally Posted by iceeedr (Post 2617309)
"he dont say any error in console "

What?

NarutoAzores 09-29-2018 13:01

Re: MDL MOTD for welcome camera [Bug]
 
Quote:

Originally Posted by Ghosted (Post 2617320)
What?

Plugin dont have error in console

Natsheh 09-29-2018 13:23

Re: MDL MOTD for welcome camera [Bug]
 
Can you attach the model?

Ghosted 09-29-2018 13:25

Re: MDL MOTD for welcome camera [Bug]
 
Quote:

Originally Posted by NarutoAzores (Post 2617322)
Plugin dont have error in console

Oh ya my bad, didn't read properly (im actually getting old :crab:)

NarutoAzores 09-29-2018 14:05

Re: MDL MOTD for welcome camera [Bug]
 
1 Attachment(s)
There is

arnalll 09-29-2018 18:02

Re: MDL MOTD for welcome camera [Bug]
 
1 Attachment(s)
Quote:

Originally Posted by NarutoAzores (Post 2617311)
Maybe because its for half-life server someone can convert to cs 1.6?

as i told you before i manage to make it run for DoD, there are several version of the plugin in the russian forum thread.

cant remember the one i used.

the only thing i kept is below

https://www.youtube.com/watch?v=eGUD...ature=youtu.be


All times are GMT -4. The time now is 17:49.

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