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

Vip Equipments


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
joaokb
Junior Member
Join Date: Apr 2021
Location: brazil
Old 04-22-2021 , 20:42   Vip Equipments
Reply With Quote #1

hello, im trying to make people with "h" adm flag in my server have smoke, 2 flash's and he and vesthelm every round

i tryied this code but everyone in the server has the smoke, i want just for the vips with "h" flag

can anyone help me?

PHP Code:
#include <amxmodx>
#include <fun>
#include <colorchat>
#include < hamsandwich >
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <fakemeta_util>


#define VIP-ACC ADMIN_LEVEL_H

new VIPhealth

public 
plugin_init() 
{

    
register_plugin"VIP Privilage""1.0""(K![L]leR-ND)" )
    
RegisterHam(Ham_Spawn"player""Privilage"1)    

    
VIPhealth register_cvar("health_VIP""100"


}

public 
Privilage(id)
{
        if( 
get_user_flagsid ) & VIP-ACC 
        {
        
ColorChat(idGREEN"^1[ ^4GameOver ^1] ^3You got^1 100HP ^3-^1 Full nade Pack")
        }

        
set_user_health(idget_pcvar_num(VIPhealth))
        
give_item(id"weapon_hegrenade")
        
give_item(id"weapon_flashbang")
        
give_item(id"weapon_flashbang")
        
give_item(id"weapon_smokegrenade")
        

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1046\\ f0\\ fs16 \n\\ par }
*/ 
__________________
⠀⠀⠀⠀⠀⠀
⠀⠀kabest

Last edited by joaokb; 04-22-2021 at 21:19.
joaokb is offline
 



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 05:02.


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