Raised This Month: $ Target: $400
 0% 

[CODE] VIP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
frOOgy
Senior Member
Join Date: Jul 2014
Old 07-10-2014 , 18:13   [CODE] VIP
Reply With Quote #1

I need VIP Plugin. VIP Privilegions:

1. 150 HP/ 100 AP Every spawn
2. +15 HP/AP Bonus for kill
3. [V.I.P] In Scoretable

VIP add in VIP.ini file (VIP Flags: "bt")
frOOgy is offline
Send a message via Skype™ to frOOgy
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-10-2014 , 18:24   Re: [CODE] VIP
Reply With Quote #2

Tested & work
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <hamsandwich>

#define PLUGIN "VIP"
#define VERSION "1.0"
#define AUTHOR "EAgle"


#define ADMIN_FLAG ADMIN_LEVEL_H

enum
{
    
SCOREATTRIB_ARG_PLAYERID 1,
    
SCOREATTRIB_ARG_FLAGS
};

enum ( <<= )
{
    
SCOREATTRIB_FLAG_NONE 0,
    
SCOREATTRIB_FLAG_DEAD 1,
    
SCOREATTRIB_FLAG_BOMB,
    
SCOREATTRIB_FLAG_VIP
};



public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn"player""fw_player_respawn"1)
    
    
register_messageget_user_msgid"ScoreAttrib" ), "MessageScoreAttrib" );
    
    
register_event("DeathMsg""bonus""be")
}

public 
bonus(id)
{
    new 
attacker read_data(1)
    new 
health get_user_health(attacker)
    new 
armor get_user_armor(attacker)
    new 
nhealth 15
    
new narmor 15

    set_user_health
(attackerhealth nhealth)
    
set_user_armor(attackerarmor narmor)

}

public 
fw_player_respawn(id)
{

    if( 
get_user_flags(id) && ADMIN_FLAG )
    {
        
set_user_health(id150)
        
set_user_armor(id100)
            
    }
    
    
}
public 
MessageScoreAttribiMsgIdiDestiReceiver )
{

        new 
iPlayer get_msg_arg_intSCOREATTRIB_ARG_PLAYERID );
        
        if( 
accessiPlayerADMIN_FLAG ) )
        {
            
set_msg_arg_intSCOREATTRIB_ARG_FLAGSARG_BYTESCOREATTRIB_FLAG_VIP );
        }
 

__________________

Last edited by Eagle07; 07-10-2014 at 18:27.
Eagle07 is offline
frOOgy
Senior Member
Join Date: Jul 2014
Old 07-10-2014 , 18:27   Re: [CODE] VIP
Reply With Quote #3

VIP add in VIP.ini ?
frOOgy is offline
Send a message via Skype™ to frOOgy
frOOgy
Senior Member
Join Date: Jul 2014
Old 07-10-2014 , 18:27   Re: [CODE] VIP
Reply With Quote #4

"nick" "passowrd" "bt" "a"
frOOgy is offline
Send a message via Skype™ to frOOgy
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-10-2014 , 18:32   Re: [CODE] VIP
Reply With Quote #5

you need VIP system !
__________________
Eagle07 is offline
frOOgy
Senior Member
Join Date: Jul 2014
Old 07-10-2014 , 18:33   Re: [CODE] VIP
Reply With Quote #6

I need code + vip.ini
frOOgy is offline
Send a message via Skype™ to frOOgy
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-10-2014 , 18:33   Re: [CODE] VIP
Reply With Quote #7

why you don't want to add in users.ini ?
__________________
Eagle07 is offline
frOOgy
Senior Member
Join Date: Jul 2014
Old 07-10-2014 , 18:38   Re: [CODE] VIP
Reply With Quote #8

OK, in user.ini
frOOgy is offline
Send a message via Skype™ to frOOgy
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-17-2014 , 04:52   Re: [CODE] VIP
Reply With Quote #9

Feel free to try this new plugin:
zmd94 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-17-2014 , 05:56   Re: [CODE] VIP
Reply With Quote #10

Quote:
Originally Posted by Eagle07 View Post
you need VIP system !
Eagle07, how about adding credits to Exolent ? You take "vip in scoreboard" code from him.
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 15:16.


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