AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [ZE] AWP Green For VIPS (https://forums.alliedmods.net/showthread.php?t=331770)

SHIFT0 04-06-2021 18:03

[ZE] AWP Green For VIPS
 
Hi everyone,
Guys I want this awp for vips online admin_level_h
When the round start i want this awp all the VIP_FLAG ADMIN_LEVEL_H Get It
How pls
Models/Algerian/v_awp.mdl
p_awp.mdl
w_awp.mdl

Napoleon_be 04-07-2021 12:01

Re: [ZE] AWP Green For VIPS
 
Untested. I picked this plugin somewhere from the forums and customized it.

PHP Code:

#include <amxmodx> 
#include <amxmisc> 
#include <fakemeta> 

//#define NEW_MODEL    "models/v_awp_new.mdl" 

#if !defined MAX_PLAYERS
    
const MAX_PLAYERS 32;
#endif

#pragma semicolon 1

new const g_szModels[][] = 
{
    
"v_awp.mdl",
    
"p_awp.mdl",
    
"w_awp.mdl"
};

public 
plugin_init( ) 

    
register_plugin"Awp model""1.1""Craxor/NapoleoN#" ); 
    
register_event("CurWeapon""cdxw""be""1=1"); 


public 
plugin_precache()
{
    
FormatPath(truefalse);
   
//precache_model(NEW_MODEL);
}
public 
cdxwid 

    
//if( has_all_flags(id, "o" ) && get_user_weapon( id ) == CSW_AWP )
    
FormatPath(falsetrue);
}

FormatPath(bool:bPrecache falsebool:bSetModels false)
{
    new 
szModels[sizeof(g_szModels)];

    for(new 
isizeof(g_szModels); i++)
    {
        
formatex(szModelscharsmax(szModels), "Models/Algerian/%s"g_szModels[i]);

        if(
bPrecache)
        {
            
precache_model(szModels[i]);
        }
    }

    if(
bSetModels)
    {
        new 
iPlayers[MAX_PLAYERS], iNumid;
        
get_players(iPlayersiNum);

        for(new 
iiNumi++) 
        {
            
id iPlayers[i];

            if(
get_user_flags(id) & ADMIN_LEVEL_H && get_user_weapon(id) == CSW_AWP)
            {
                
set_pev(idpev_viewmodel2szModels[0]);
                
set_pev(idpev_modelszModels[1]);
                
set_pev(idpev_weaponmodel2szModels[2]);
            }
        }
    }



SHIFT0 04-07-2021 12:33

Re: [ZE] AWP Green For VIPS
 
Thanks <3


All times are GMT -4. The time now is 19:55.

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