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

Vip Equipments


Post New Thread Reply   
 
Thread Tools Display Modes
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
Culverton smith
Junior Member
Join Date: Apr 2021
Old 04-23-2021 , 03:15   Re: Vip Equipments
Reply With Quote #2

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_flags(id) & 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")
    }
        

Culverton smith is offline
joaokb
Junior Member
Join Date: Apr 2021
Location: brazil
Old 04-23-2021 , 08:29   Re: Vip Equipments
Reply With Quote #3

Quote:
Originally Posted by Culverton smith View Post
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_flags(id) & 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")
    }
        

thanks, i think it works
__________________
⠀⠀⠀⠀⠀⠀
⠀⠀kabest
joaokb is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-23-2021 , 11:21   Re: Vip Equipments
Reply With Quote #4

You don't need all those included, and you forgot to check if the player was alive in the spawn and forgot the vesthelm.

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

#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(
is_user_alive(id) && 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")
                
cs_set_user_armor id100CS_ARMOR_VESTHELM )
        }

__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/

Last edited by iceeedr; 04-23-2021 at 11:22.
iceeedr is offline
Send a message via Skype™ to iceeedr
joaokb
Junior Member
Join Date: Apr 2021
Location: brazil
Old 04-24-2021 , 09:10   Re: Vip Equipments
Reply With Quote #5

Quote:
Originally Posted by iceeedr View Post
You don't need all those included, and you forgot to check if the player was alive in the spawn and forgot the vesthelm.

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

#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(
is_user_alive(id) && 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")
                
cs_set_user_armor id100CS_ARMOR_VESTHELM )
        }

are you iceeedr that made the famous pug/mix plugin bro?
__________________
⠀⠀⠀⠀⠀⠀
⠀⠀kabest
joaokb 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:56.


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