AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   AWP weapons only VIP members bug (https://forums.alliedmods.net/showthread.php?t=223607)

Gamperis 08-15-2013 11:04

AWP weapons only VIP members bug
 
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 :D. I can buy and take AWP weapons, but when i press one number me writes AWP weapons only VIP members :D.

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?

sami_spt 08-15-2013 11:50

Re: AWP weapons only VIP members bug
 
post the code and show us what you did wrong

Gamperis 08-15-2013 12:03

Re: AWP weapons only VIP members bug
 
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




All times are GMT -4. The time now is 15:47.

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