AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Vip knife [admin_level_h] (https://forums.alliedmods.net/showthread.php?t=328146)

Mohamed null 10-28-2020 12:27

Vip knife [admin_level_h]
 
hi guys
I looking for VIP KNIFE Pls For vips pls guys ADMIN_LEVEL_H with no say default knife VIP
models/knife/p_vipknife.mdl")
models/knife/v_vipknife.mdl")

Napoleon_be 10-28-2020 14:36

Re: Vip knife [admin_level_h]
 
untested

PHP Code:

/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
// #include <amxmisc>
// #include <cstrike>
// #include <engine>
#include <fakemeta>
// #include <hamsandwich>
// #include <fun>
// #include <xs>
// #include <sqlx>

#pragma semicolon 1

#if !defined MAX_PLAYERS
    
const MAX_PLAYERS 32;
#endif

#define PLUGIN  "VIP Knife"
#define VERSION "1.0"
#define AUTHOR  "NapoleoN#"

new const szModel[][] = {
    
"p_vipknife.mdl",
    
"v_vipknife.mdl"
};

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_event("CurWeapon""ResetModel""be""1=1""2=29");
}

public 
plugin_precache() {
    for(new 
isizeof(szModel); i++) {
        
precache_model(szModel[i]);
    }
}

public 
ResetModel() {
    new 
id read_data(1);

    if(
get_user_flags(id) & ADMIN_LEVEL_H) {
        
set_pev(idpev_viewmodel2szModel[1]);
        
set_pev(idpev_weaponmodel2szModel[0]);
    }



Mohamed null 10-28-2020 15:07

Re: Vip knife [admin_level_h]
 
Ty

Mohamed null 10-28-2020 15:11

Re: Vip knife [admin_level_h]
 
bro i will add the models in models/knife/p_vipknife.mdl") & models/knife/v_vipknife.mdl")


All times are GMT -4. The time now is 03:35.

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