Raised This Month: $ Target: $400
 0% 

Logo contol


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kard1nal
Senior Member
Join Date: Dec 2012
Location: Russia
Old 01-27-2013 , 03:44   Logo contol
Reply With Quote #1

So, I've done:

Code:
public plugin_init()
register_clcmd("impulse 201", "decalset")

public decalset(id){
	if(g_DecalStarted && get_user_team(id) == 1)
	return HAM_SUPERCEDE //now spays should be prohibited

	return PLUGIN_CONTINUE
	}
I need to prohibit sprays, but users still can to make it.
Which "return" I should use?

Sorry for my English.

Last edited by Kard1nal; 01-27-2013 at 03:46.
Kard1nal is offline
Send a message via Skype™ to Kard1nal
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-27-2013 , 04:02   Re: Logo contol
Reply With Quote #2

HAM_SUPERCEDE should only be used on Ham forwards. Try PLUGIN_HANDLED, but I doubt it will work in your case either.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
michal123
Junior Member
Join Date: Feb 2011
Location: Poland
Old 01-27-2013 , 04:33   Re: Logo contol
Reply With Quote #3

If you want block spray, use register_impulse or http://forums.alliedmods.net/showpos...6&postcount=12
Look in this topic: http://forums.alliedmods.net/showthread.php?t=77765
michal123 is offline
Kard1nal
Senior Member
Join Date: Dec 2012
Location: Russia
Old 01-27-2013 , 04:49   Re: Logo contol
Reply With Quote #4

I've done like in that topic says, but now no one can spray logo (I need to block T team only).

Code:
public Player_ImpulseCommands(id)
{
    if(pev(id, pev_impulse) == 201 && g_DecalStarted && get_user_team(id) == 1)
    {
        set_pev(id, pev_impulse, 0)
        return HAM_HANDLED
    }
    return HAM_IGNORED
}
Kard1nal is offline
Send a message via Skype™ to Kard1nal
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 20:33.


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