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

How to block events?


Post New Thread Reply   
 
Thread Tools Display Modes
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
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-22-2018 , 14:52   Re: How to block events?
Reply With Quote #2

Events just notify you that something happen usually, blocking them does nothing as the action already happened. To block round end you need orpheu.
__________________
HamletEagle is offline
MihaiGamerXD
Member
Join Date: Aug 2018
Old 11-22-2018 , 15:14   Re: How to block events?
Reply With Quote #3

Got Orpheu! How to use it?
MihaiGamerXD is offline
Old 11-23-2018, 09:17
MihaiGamerXD
This message has been deleted by HamletEagle. Reason: Can you stop bumping and follow the rules for once?
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 11-23-2018 , 10:45   Re: How to block events?
Reply With Quote #4

I think blocking AlertMessage would be enough. I think it's impossible without special modules (Btw you can try that <<< (register_forward & FM_AlertMessage)).
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 11-23-2018 at 13:15.
Ghosted is offline
MihaiGamerXD
Member
Join Date: Aug 2018
Old 11-23-2018 , 18:55   Re: How to block events?
Reply With Quote #5

HamletEagle, I don't know what bumping mean!
MihaiGamerXD is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 11-23-2018 , 20:30   Re: How to block events?
Reply With Quote #6

Read the rules.

Inability to adhere to these rules may result in a temporary or permanent ban, individual posting rights removed, and/or your thread being Trashed.

Posting

Search before posting a question.
Use descriptive topic titles. People should know at a glance of the title what the thread is about.
Do not "bump" your threads. Bumping is posting simply to make the thread higher in the forum sort order.
Do not cross-post threads to multiple forums (or posts to multiple threads).
Always be respectful to other members. Flaming or abusing members in any way will not be tolerated.
Do not spam, or post "me too" posts, or any such derivative drivel that does not contribute to a thread.
Do not advertise (including hosting services, game servers and gaming communities).
Do not post or attach illegal content, or links to illegal content, including viruses, trojans, and malware.
Do not derail threads or post completely unrelated topics in a thread.
Do not disrupt the readability of a thread with huge lengths of texts, wild color/font variations, or large images (this includes making the main body of all your posts a different font/color/style).
This is an English forum (other than a few specific, labelled subforums). If you're going to post in another language, also add the text in English, even if from online translator.
Do not advertise (including in signatures) the sale of turnkey (i.e. pre-made) plugins, work-for-hire is fine.
Do not blank out posts. Additionally, if you solve your problem post the solution for others to find.
Do not reply to spam posts, use the Report Post button.

General

Do not create multiple accounts or evade bans. They will all be banned if you are posting from multiple accounts.
Do not use "Report Post" or "Contact Us" for anything other than forum issues.
Violation of AlliedModders project's licenses will result in a ban, even if not on AlliedModders.
If you have a problem with a moderator's decision, Private Message that moderator or an administrator - do not otherwise get involved if you weren't directly affected.
If you post (or see a post) in the wrong section, use the Report Post button to request it be moved rather than replying to the thread.

Steam Cracks

You do not need to own the game on Steam to participate in these forums. However, publicizing violations of the Digital Millennium Copyright Act (DMCA) will result in a ban. This includes...
Linking to sites that are targeted toward cracking Steam or circumventing its copyright protection.
Asking for support against cracked or illegitimate versions of Steam, either directly or via evidence in your request.
Mentioning that you, or promoting the act of, cracking Steam or circumventing its copyright protection.
Promoting the running of "no-steam" servers, or publicizing that you run such servers.

Although the administrators and moderators of AlliedModders will attempt to keep all objectionable messages off this forum, it is impossible for us to review all messages. All messages express the views of the author, and neither the owners of AlliedModders, nor Jelsoft Enterprises Ltd. (developers of vBulletin) will be held responsible for the content of any message.

By agreeing to these rules, you warrant that you will not post any messages that are obscene, vulgar, sexually-oriented, hateful, threatening, or otherwise violative of any laws.

The owners of AlliedModders reserve the right to remove, edit, move or close any thread for any reason.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
MihaiGamerXD
Member
Join Date: Aug 2018
Old 11-24-2018 , 04:54   Re: How to block events?
Reply With Quote #7

Thank you for the rules!
MihaiGamerXD 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 19:40.


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