Raised This Month: $51 Target: $400
 12% 

Vip access


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 11-17-2021 , 16:58   Vip access
Reply With Quote #1

Hi guys i want VIP ACCESS Get
Weapons [ALready]
Need Neo Model [ CT ONLY ]
Knife Model [ CT ONLY ]


PHP Code:
#include <amxmodx>
#include <fakemeta>

#define VIP_FLAG ADMIN_LEVEL_H

enum pWeapons
{
    
WeaponsID,
    
ModelV32 ],
}

new 
g_szWeapons[ ][ pWeapons ] = 
{
    { 
CSW_KNIFE"models/vipweapons/knife.mdl" },
    { 
CSW_AK47"models/vipweapons/ak47.mdl" },
    { 
CSW_M4A1"models/vipweapons/m4a1.mdl" },
    { 
CSW_DEAGLE"models/vipweapons/deagle.mdl" },
    { 
CSW_USP"models/vipweapons/usp.mdl" },
    { 
CSW_SG550"models/vipweapons/sg550.mdl" }
}

public 
plugin_init() 
{
    
register_plugin("Vip Weapon models""1.0""Supremache")
    
register_event("CurWeapon""OnCurWeapon""be""1=1");
}

public 
plugin_precache( )
{
    for( new 
charsmaxg_szWeapons ); i++ )
    {
        
precache_modelg_szWeapons][ ModelV ] )
    }
}

public 
OnCurWeaponid )
{
    if( !
is_user_aliveid ) || ~get_user_flagsid ) & VIP_FLAG || get_user_teamid ) == 
    {
        return;
    }
    
    new 
iWeapon read_data(2);
    
    for( new 
charsmaxg_szWeapons ); i++ )
    {
        if( 
iWeapon == g_szWeapons][ WeaponsID ] )
        {
            
set_pevidpev_viewmodel2g_szWeapons][ ModelV ] )
            
            break;
        }
    }


/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1036{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/ 
SHIFT0 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 11-19-2021 , 17:02   Re: Vip access
Reply With Quote #2

hmmm. this plugin has updated

https://forums.alliedmods.net/showpo...1&postcount=16

Ex:
// Weapon ID , "v_model", "p_model", access, team( 1 = T & 2 = CT )
// You can make the model part as empty " "
PHP Code:
CSW_KNIFE"models/ownerweapons/v_knife.mdl""models/vipweapons/p_knife.mdl"ADMIN_IMMUNITYTEAM_CT }, 
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 11-20-2021 , 06:05   Re: Vip access
Reply With Quote #3

Done ! Thanks to Supremache & Bugsy
SHIFT0 is offline
Reply



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 00:54.


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