Raised This Month: $ Target: $400
 0% 

HELP : Knife Admin Human


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BN Houssam
BANNED
Join Date: Sep 2015
Location: Oujda
Old 09-26-2015 , 16:41   Re: HELP : Knife Admin Human
Reply With Quote #1

Jarab Hadi

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "PlayBoy"
#pragma semicolon 0

enum eModels
{
    
View,
    
Player
};


new const 
g_szModels[eModels][] = 
{
    
"models/GD_BaseBuilder/GD_v_Admin_Knife.mdl",
    
"models/GD_BaseBuilder/GD_v_Admin_Knife.mdl"
};


public 
plugin_precache()
{
    for(new 
eModelseModels0eModelsi++)        
        
precache_model(g_szModels[i]);
}


public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
         
register_event("CurWeapon""EventCurWeapon""be""1=29");
}


public 
client_authorized(id)
{
    if(
is_user_admin(id))
    
        
g_bIsAdmin[id] = true;
        
    else
        
g_bIsAdmin[id] = false;
}
    
public 
EventCurWeapon(id)
{
    if(
g_bIsAdmin[id])
    {    
        
set_pev(idpev_viewmodel2g_szModels[View]);
        
set_pev(idpev_weaponmodel2g_szModels[Player]);
    }
    return 
PLUGIN_CONTINUE;

BN Houssam is offline
Hartmann
Senior Member
Join Date: Nov 2014
Old 09-26-2015 , 16:48   Re: HELP : Knife Admin Human
Reply With Quote #2

Quote:
Originally Posted by BN Houssam View Post
Jarab Hadi

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "PlayBoy"
#pragma semicolon 0

enum eModels
{
    
View,
    
Player
};


new const 
g_szModels[eModels][] = 
{
    
"models/GD_BaseBuilder/GD_v_Admin_Knife.mdl",
    
"models/GD_BaseBuilder/GD_v_Admin_Knife.mdl"
};


public 
plugin_precache()
{
    for(new 
eModelseModels0eModelsi++)        
        
precache_model(g_szModels[i]);
}


public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
         
register_event("CurWeapon""EventCurWeapon""be""1=29");
}


public 
client_authorized(id)
{
    if(
is_user_admin(id))
    
        
g_bIsAdmin[id] = true;
        
    else
        
g_bIsAdmin[id] = false;
}
    
public 
EventCurWeapon(id)
{
    if(
g_bIsAdmin[id])
    {    
        
set_pev(idpev_viewmodel2g_szModels[View]);
        
set_pev(idpev_weaponmodel2g_szModels[Player]);
    }
    return 
PLUGIN_CONTINUE;

https://forums.alliedmods.net/showpo...92&postcount=3

EDIT: and write in English.
__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx


Last edited by Hartmann; 09-26-2015 at 16:49.
Hartmann is offline
Reply


Thread Tools
Display Modes

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:21.


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