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

Upgrade VIP plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rgn6
New Member
Join Date: Mar 2021
Old 03-07-2021 , 16:55   Upgrade VIP plugin
Reply With Quote #1

HI

Please advice or edit so that VIP players can load spawn items from 2 to 40 rounds in the given map
So that the first round does not load any spawn items on the map

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

#define PLUGIN_VERSION "1.0"
#define VIP_FLAG ADMIN_LEVEL_E

public plugin_init()
{
    
register_plugin("Generated VIP Plugin"PLUGIN_VERSION"AMXX-BG.info")
    
register_cvar("amxxbg_vip"PLUGIN_VERSIONFCVAR_SERVER|FCVAR_SPONLY|FCVAR_UNLOGGED)
    
register_event("HLTV""event_new_round""a""1=0""2=0");
         
RegisterHam(Ham_Spawn"player""OnPlayerSpawn"1)
}

public 
OnPlayerSpawn(id)
{
    if(
gRound>=2){
        if(
gRound<=40){

        
give_item(id"weapon_ak47")
    
cs_set_user_bpammo(idCSW_AK47120)
    
give_item(id"weapon_m4a1")
    
cs_set_user_bpammo(idCSW_M4A1120)
    
give_item(id"weapon_hegrenade")
    
give_item(id"weapon_flashbang")
    
cs_set_user_bpammo(idCSW_FLASHBANG3)
    
give_item(id"weapon_smokegrenade")
    
cs_set_user_bpammo(idCSW_SMOKEGRENADE2)
}

bool:is_user_vip(id)
    return !!(
get_user_flags(id) & VIP_FLAG
Last edited by rgn603-05-21 at 07:58 PM.
rgn6 is online now Report Post    

Theodore Bagwell
Member
Join Date
Jan 2021
Location
USA
    
Old 03
-05-21 02:07 PM   ReVip plugin
Reply With Quote Multi
-Quote This Message #4
Quote:
Originally Posted by rgn6 View Post
HI

Can anyone advise how to adjust it to give vip toys spawn items in the second round of the map
?

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

#define PLUGIN_VERSION "1.0"
#define VIP_FLAG ADMIN_LEVEL_E

public plugin_init()
{
    
register_plugin("Generated VIP Plugin"PLUGIN_VERSION"AMXX-BG.info")
    
register_cvar("amxxbg_vip"PLUGIN_VERSIONFCVAR_SERVER|FCVAR_SPONLY|FCVAR_UNLOGGED)
    
register_event("HLTV""event_new_round""a""1=0""2=0");
         
RegisterHam(Ham_Spawn"player""OnPlayerSpawn"1)
}

public 
OnPlayerSpawn(id)
{
    if(
gRound>=2){
        if(
gRound<=40){

        
give_item(id"weapon_ak47")
    
cs_set_user_bpammo(idCSW_AK47120)
    
give_item(id"weapon_m4a1")
    
cs_set_user_bpammo(idCSW_M4A1120)
    
give_item(id"weapon_hegrenade")
    
give_item(id"weapon_flashbang")
    
cs_set_user_bpammo(idCSW_FLASHBANG3)
    
give_item(id"weapon_smokegrenade")
    
cs_set_user_bpammo(idCSW_SMOKEGRENADE2)
}

bool:is_user_vip(id)
    return !!(
get_user_flags(id) & VIP_FLAG
rgn6 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 12:00.


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