Raised This Month: $32 Target: $400
 8% 

[ZE] AWP Green For VIPS


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 04-06-2021 , 18:03   [ZE] AWP Green For VIPS
Reply With Quote #1

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
SHIFT0 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-07-2021 , 12:01   Re: [ZE] AWP Green For VIPS
Reply With Quote #2

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]);
            }
        }
    }

__________________

Last edited by Napoleon_be; 04-07-2021 at 12:04.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 04-07-2021 , 12:33   Re: [ZE] AWP Green For VIPS
Reply With Quote #3

Thanks <3

Last edited by SHIFT0; 04-07-2021 at 12:36. Reason: xd
SHIFT0 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 07:26.


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