Raised This Month: $ Target: $400
 0% 

Help vip flag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-20-2017 , 16:14   Re: Help vip flag
Reply With Quote #1

Change

PHP Code:
new userm3[33
To

PHP Code:
new bool:userm3[33
Set that boolean false at spawn or anywhere you want.

And

PHP Code:
    case 1:
    {
        if( !
is_user_aliveid ) ) 
        {
            
ColorChatidNORMAL,"You can not buy items if you are dead");
            return 
PLUGIN_HANDLED
        }
        else if (
get_user_flagsid ) & ADMIN_LEVEL_H 
        {
            
ColorChatidNORMAL,"You need to be VIP to buy this item");
            return 
PLUGIN_HANDLED
        }
        else if(
userm3[id]) 
        {
            
ColorChatidNORMAL"You have already buy this item before");
            return 
PLUGIN_HANDLED;
        }
        else
        {
            if( 
bm_points[id] >= 30 
            {
                
bm_points[id] -= 30
                
                fm_give_item
id"weapon_m3" )
                
                
cs_set_weapon_ammofind_ent_by_owner( -1"weapon_m3"id ), )
                
cs_set_user_bpammo(idCSW_M30)
                
                
userm3[id] = true
                
                
new szName[32];
                
get_user_name(idszNamecharsmax(szName));
                
ColorChat0NORMAL"%s bought M3"szName )
            } 
            else 
            {
                
ColorChatidNORMAL"You need more points to buy M3")
            }
        }
    } 
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 03-20-2017 at 16:15.
EFFx 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 17:49.


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