Raised This Month: $51 Target: $400
 12% 

Solved Block weapons scar


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
szogun
Senior Member
Join Date: Apr 2016
Old 08-19-2017 , 10:01   Block weapons scar
Reply With Quote #1

Hello
I used this method of blocking individual weapons but after the update does not work

PHP Code:
#include <sourcemod>

public Action:CS_OnBuyCommand(client, const String:weapon[])
{
    if(
StrEqual(weapon"g3sg1"false) || StrEqual(weapon"scar20"false) || StrEqual(weapon"scar20"false))
    {
        
PrintToChat(client"\x01[\x04RESTRICT\x01] \x02Kupowanie tej broni jest zablokowane!");
        return 
Plugin_Handled;
    }
    return 
Plugin_Continue;


Last edited by szogun; 08-21-2017 at 06:09.
szogun is offline
CamerDisco
AlliedModders Donor
Join Date: Aug 2015
Location: Poland
Old 08-19-2017 , 11:19   Re: Block weapons scar
Reply With Quote #2

Did you try the newest 6024 build?
__________________


Max-Play.pl - the best polish servers
CamerDisco is offline
szogun
Senior Member
Join Date: Apr 2016
Old 08-19-2017 , 11:41   Re: Block weapons scar
Reply With Quote #3

Sm version 6022
szogun is offline
CamerDisco
AlliedModders Donor
Join Date: Aug 2015
Location: Poland
Old 08-19-2017 , 12:29   Re: Block weapons scar
Reply With Quote #4

So maybe try 6024..
__________________


Max-Play.pl - the best polish servers
CamerDisco is offline
OSWO
Senior Member
Join Date: Jul 2015
Location: United Kingdom, London
Old 08-19-2017 , 20:13   Re: Block weapons scar
Reply With Quote #5

PHP Code:
#include <cstrike> 
__________________
SourceTimer | WeaponSkins++ | BasePlugins++ https://github.com/OSCAR-WOS
OSWO is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 08-20-2017 , 10:36   Re: Block weapons scar
Reply With Quote #6

You have to wait for https://github.com/alliedmodders/sourcemod/pull/659 the update broke a lot of things.
Dr!fter is offline
szogun
Senior Member
Join Date: Apr 2016
Old 08-21-2017 , 06:09   Re: Block weapons scar
Reply With Quote #7

Problems fixed, update sm 6024
szogun is offline
BulgarPL
Member
Join Date: Dec 2015
Old 08-21-2017 , 19:11   Re: Block weapons scar
Reply With Quote #8

Quote:
Originally Posted by szogun View Post
Problems fixed, update sm 6024
How u get this work?
Im using similar plugin and it is not working on SM 6024
BulgarPL is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 08-21-2017 , 19:59   Re: Block weapons scar
Reply With Quote #9

Use the latest dev build. It fixes OnBuyCommand.
Dr!fter is offline
szogun
Senior Member
Join Date: Apr 2016
Old 08-22-2017 , 07:20   Re: Block weapons scar
Reply With Quote #10

And you can know if for a stable version this bug will also be fixed
szogun 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 07:21.


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