AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Restrict weapon buy (https://forums.alliedmods.net/showthread.php?t=117555)

reinert 02-02-2010 10:37

[HELP] Restrict weapon buy
 
Hello, i want a plugin that restricts AWP buy for simple players, buy VIP players can buy awp :)

Bugsy 02-02-2010 13:39

Re: [HELP] Restrict weapon buy
 
see my individual weapon restrictions plugin. link in sig. will need slight modification

reinert 02-02-2010 14:07

Re: [HELP] Restrict weapon buy
 
ah, thank you. maybe you can get me on right way ?


Your plugin's code is so big, i cant get it how it works, so can you export simple and small code like:
PHP Code:

if(get_user_flags(id) & ADMIN_LEVEL_H)
    {
        return 
PLUGIN_CONTINUE;
        } else {
restriction here,
        
client_print(idprint_chat"You can't buy AWP");
        {            return 
PLUGIN_CONTINUE;
        } 


Bugsy 02-02-2010 22:00

Re: [HELP] Restrict weapon buy
 
Are you looking to just block the AWP purchase? Or do you also want to prevent him from picking up an AWP that is laying on the ground?

reinert 02-03-2010 08:44

Re: [HELP] Restrict weapon buy
 
I Already blocked the AWP picking up for simple players. so i need only block from purchasing it.


All times are GMT -4. The time now is 07:25.

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