Raised This Month: $ Target: $400
 0% 

How to block events?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MihaiGamerXD
Member
Join Date: Aug 2018
Old 11-22-2018 , 13:17   How to block events?
Reply With Quote #1

Hello again, and I'm here for a question: How to block events?
Example:

PHP Code:
include <amxmodex>
include <
amxmisc>
include <
cstrike>

public 
plugin_init() {
    
register_plugin("Block Event","1.0","MihaiGamerXD")
    
register_logevent("Block",6,"3=CTs_Win")
    
register_logevent("Block",6,"3=Terrorists_Win")
}

public 
Block() {
    new 
mapname[32]
    
get_mapname(mapname,31)
    if (
equal(mapname,"de_dust2")) {
        return 
PLUGIN_HANDLED;
    }
    return 
PLUGIN_CONTINUE;

but it doesn't work! Any ideas?

Last edited by MihaiGamerXD; 11-22-2018 at 13:17.
MihaiGamerXD is offline
 



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:35.


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