Raised This Month: $ Target: $400
 0% 

Message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bladell
Senior Member
Join Date: Jun 2012
Old 12-26-2013 , 17:07   Re: Message
Reply With Quote #1

"^4[AMXX]^1(VIP) Your VIP privileges are: "
if player have flag n "gravity, hp regeneration"
if player have flag o "health"
if player have flag p "speed"
if player have flag q "+50% XP, revive"
if player have flag r, all messages above + "4000$ money, +100% XP" <instead of 50% XP> "acces to <a hero> and amx_startvote"
Bladell is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-27-2013 , 05:32   Re: Message
Reply With Quote #2

A way :

PHP Code:
const FLAG_VIP_GRAV_REGEN ADMIN_LEVEL_B;
const 
FLAG_VIP_HEALTH ADMIN_LEVEL_C;
const 
FLAG_VIP_GRAV_SPEED ADMIN_LEVEL_D;
const 
FLAG_VIP_GRAV_XP_REVIVE ADMIN_LEVEL_E;
const 
FLAG_VIP_ALL ADMIN_LEVEL_F;

format_player_messageid )
{
    new 
flags get_user_flags(id);

    new 
szMessage[190], n;
    
+= formatex(szMessage[n], charsmax(szMessage)-n"^4[AMXX]^1(VIP) Your VIP privileges are:");
    if( 
flags FLAG_VIP_ALL )
    {
        
+= formatex(szMessage[n], charsmax(szMessage)-n" gravity, hp regen, health, speed, 4000$ money, +100% XP, acces to <a hero> and amx_startvote");
    }
    else
    {
        if( 
flags FLAG_VIP_GRAV_REGEN )
        {
            
+= formatex(szMessage[n], charsmax(szMessage)-n" gravity, hp regen,");
        }
        if( 
flags FLAG_VIP_HEALTH )
        {
            
+= formatex(szMessage[n], charsmax(szMessage)-n" health,");
        }
        if( 
flags FLAG_VIP_GRAV_SPEED )
        {
            
+= formatex(szMessage[n], charsmax(szMessage)-n" speed,");
        }
        if( 
flags FLAG_VIP_GRAV_XP_REVIVE )
        {
            
+= formatex(szMessage[n], charsmax(szMessage)-n"+50% XP, revive");
        }
        if( 
szMessage[n-1] == ',' )
        {
            
szMessage[n-1] = EOS;
        }
    }
    
client_print_color(idprint_team_blueszMessage);

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 12-27-2013 at 13:28.
ConnorMcLeod 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 10:12.


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