Raised This Month: $ Target: $400
 0% 

Stop players from buying but not from picking.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 10-25-2011 , 10:19   Stop players from buying but not from picking.
Reply With Quote #1

I want to know what to do that this code would be only that players who don't have ADMIN_LEVEL_H coudn't buy awp, sg550, g3sg1. But they could pick it up if someone drop it.
PHP Code:
public event_CurSnipers(id)
    {    
    
get_mapnamemapnamecharsmax(mapname) );
    if ( 
equali(mapname"awp_india") || equali(mapname"awp_dust") || equali(mapname"cs_deagle5") )
        return 
PLUGIN_CONTINUE;
        
    if(
read_data(2) == CSW_G3SG1)
    {
        if(!(
get_user_flags(id) & ADMIN_LEVEL_H))
        {
        
client_print(idprint_center"Sniper's only for VIP's")
        
client_cmd(id"drop")
        }
    }
    if(
read_data(2) == CSW_SG550)
    {
        if(!(
get_user_flags(id) & ADMIN_LEVEL_H))
        {
            
client_print(idprint_center"Sniper's only for VIP's")
            
client_cmd(id"drop")
        }
    }
    if(
read_data(2) == CSW_AWP)
    {
        if(!(
get_user_flags(id) & ADMIN_LEVEL_H))
        {
        
client_print(idprint_center"Sniper's only for VIP's")
        
client_cmd(id"drop")
        }
    }
    return 
PLUGIN_HANDLED

__________________
Please enter this website everyday: http://forums.alliedmods.net/showthread.php?t=169067

Last edited by Evaldas.Grigas; 10-25-2011 at 10:23.
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
 



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 14:15.


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