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

VIP Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
xfire97
Member
Join Date: Aug 2011
Old 02-29-2012 , 12:06   VIP Plugin
Reply With Quote #1

This plugin serves to provide deagle, grenades and VEST/HELM to all to have a flag ADMIN LEVEL H.

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

#define PLUGIN "Vip"
#define VERSION "1.0"
#define AUTHOR "Rocha"

public plugin_init() 
{
    
register_plugin("Vip""1.0""Rocha")
    
RegisterHam(Ham_Spawn"player""Ham_PlayerSpawn"1)
    
RegisterHam(Ham_Spawn"player""PlayerSpawn"1)
}

public 
Ham_PlayerSpawn(id)
{
    if(
get_user_flags(id) & ADMIN_LEVEL_H)
    {
        
strip_user_weapons(id)
        
give_item(id"weapon_knife")
        
give_item(id"weapon_flashbang")
        
give_item(id"weapon_deagle")
        
give_item(id"ammo_50ae")
        
give_item(id"ammo_50ae")
        
give_item(id"ammo_50ae")
        
give_item(id"ammo_50ae")
        
give_item(id"ammo_50ae")
        
give_item(id"item_assaultsuit")
        
give_item(id"weapon_flashbang")
        
give_item(id"weapon_smokegrenade")
        
give_item(id"weapon_hegrenade")
        
give_item(id"item_thighpack")
    }
}

public 
PlayerSpawn(id)
{
    if(
get_user_flags(id) & ADMIN_LEVEL_H)
    {
        
strip_user_weapons(id)
        
give_item(id"weapon_knife")
        
give_item(id"weapon_deagle")
        
give_item(id"weapon_flashbang")
        
give_item(id"item_thighpack")
        
give_item(id"ammo_50ae")
        
give_item(id"ammo_50ae")
        
give_item(id"ammo_50ae")
        
give_item(id"ammo_50ae")
        
give_item(id"ammo_50ae")
        
give_item(id"item_assaultsuit")
        
give_item(id"weapon_flashbang")
        
give_item(id"weapon_smokegrenade")
        
give_item(id"weapon_hegrenade")
    }

xfire97 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 02-29-2012 , 12:13   Re: VIP Plugin
Reply With Quote #2

Why did you post that here, you can find vip plugins like this in the request section.

That's probably where you copied this from.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 02-29-2012 at 12:16.
wickedd is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-29-2012 , 12:32   Re: VIP Plugin
Reply With Quote #3

Also, please don't release again such plugins.

Unapproved.
__________________
Arkshine is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 02-29-2012 , 13:52   Re: VIP Plugin
Reply With Quote #4

Trash?
__________________
kiki33hun is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 02-29-2012 , 13:54   Re: VIP Plugin
Reply With Quote #5

You need check is user alive in Ham_Spawn... Also, this code is horrible
__________________
kramesa is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 03-02-2012 , 03:10   Re: VIP Plugin
Reply With Quote #6

PHP Code:
register_plugin("Vip""1.0""Rocha"
PHP Code:
#define PLUGIN "Vip"
#define VERSION "1.0"
#define AUTHOR "Rocha" 
We all know this probably not your plugin.. But to show you don't know anything of pawn is here.

You're defining something that is never used in your whole code.

+ You are registering the Ham function "Ham_Spawn" twice which isn't really necessary if you're giving the same items twice.
__________________

Last edited by Napoleon_be; 03-02-2012 at 03:10.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
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 03:54.


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