Raised This Month: $ Target: $400
 0% 

AWP weapons only VIP members bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gamperis
BANNED
Join Date: Aug 2013
Old 08-15-2013 , 11:04   AWP weapons only VIP members bug
Reply With Quote #1

Hi everyone. I set in VIP plugin that AWP weapon is only VIP members, but i are not VIP member and can buy, take AWP weapon, but when i taked AWP and press one number (primary weapon number), me writes: AWP weapons only VIP members, so this is ridiculous . I can buy and take AWP weapons, but when i press one number me writes AWP weapons only VIP members .

So, how do i fix it and make that when i wanna buy or take AWP weapon, i get the prohibited message: AWP weapons only VIP members?

Last edited by Gamperis; 08-15-2013 at 11:38.
Gamperis is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 08-15-2013 , 11:50   Re: AWP weapons only VIP members bug
Reply With Quote #2

post the code and show us what you did wrong
sami_spt is offline
Gamperis
BANNED
Join Date: Aug 2013
Old 08-15-2013 , 12:03   Re: AWP weapons only VIP members bug
Reply With Quote #3

PHP Code:
           g_awp_active register_cvar("awp_active""1")
    
register_clcmd("weapon_awp","HandleCmd")
        
register_clcmd("weapon_sg550","HandleCmd")
        
register_clcmd("weapon_g3sg1","HandleCmd"
PHP Code:
public HandleCmd(id){
    if (!
get_pcvar_num(g_awp_active))
      return 
PLUGIN_CONTINUE
    
if(get_user_flags(id) & ADMIN_LEVEL_H
        return 
PLUGIN_CONTINUE
    client_print
(idprint_center"AWP weapons only VIP members!")
    return 
PLUGIN_HANDLED


Last edited by Gamperis; 08-15-2013 at 13:47.
Gamperis 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:47.


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