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

VIP Extras / Free Grenades Every Round


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands       
feruchio
Member
Join Date: Feb 2016
Location: 93.123.18.81:27017
Old 02-09-2016 , 10:41   VIP Extras / Free Grenades Every Round
Reply With Quote #1

This is simple plugin that will allow you to enable vip users or admins on your server to have 4 free grenades every round. As it is set up every user with "r" flag on your server will have 4 grenades to edit the flag just change this line:

#define VIPFLAGS ADMIN_LEVEL_F

and instead of "LEVEL_F" you change it according your purpose for example:

#define VIPFLAGS ADMIN_LEVEL_C for flag "o"

all admins levels are described in your "users.ini" file (located at cstrike/addons/amxmodx/configs).
Attached Files
File Type: sma Get Plugin or Get Source (vip_exstras.sma - 838 views - 891 Bytes)
__________________

Last edited by feruchio; 02-09-2016 at 10:51. Reason: typos
feruchio is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 02-09-2016 , 11:36   Re: VIP Extras / Free Grenades Every Round
Reply With Quote #2

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

#define VIPFLAGS ADMIN_LEVEL_F          //add here who can use that feature by flag, checkout your users.ini to se what flag are available

public plugin_init() {
    
register_plugin("VIP Extras""6.9""HNSWeed")
    
RegisterHam(Ham_Spawn"player""SpawnBonus"1)
}
public 
SpawnBonus(const id) {
    if(
is_user_alive(id)) {
        if(
get_user_flags(id) & VIPFLAGS) {
            switch(
get_user_team(id)) {
                case 
1: {
                    
give_item(id"weapon_hegrenade")
                    
give_item(id"weapon_flashbang")
                    
give_item(id"weapon_flashbang")
                    
give_item(id"weapon_smokegrenade")
                }
                case 
2: {
                    
give_item(id"weapon_hegrenade")
                    
give_item(id"weapon_flashbang")
                    
give_item(id"weapon_flashbang")
                    
give_item(id"weapon_smokegrenade")
                }
            }
                        }
        }
    } 
What did you do, copy this from some other plugin? There's no need to post such a plugin, there's enough of them already in the request forum.

Edit: Also, there's no need for the switch.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 02-09-2016 at 11:41.
wickedd is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-09-2016 , 12:09   Re: VIP Extras / Free Grenades Every Round
Reply With Quote #3

Useless. Unapproved.
__________________
HamletEagle 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 01:24.


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