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

To do this in SourceMod


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 09-20-2012 , 04:11   To do this in SourceMod
Reply With Quote #1

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
set_msg_block(get_user_msgid("Radar"), BLOCK_SET )

This is the amxmodx code.
to do this in sourcemod?
RuRuRu612754 is offline
necavi
Veteran Member
Join Date: Sep 2010
Old 09-20-2012 , 04:20   Re: To do this in SourceMod
Reply With Quote #2

Assuming that that same usermessage exists in source:
PHP Code:
#include <sourcemod>

public OnPluginStart()
{
    
HookUserMessage(GetUserMessageId("radar"), Hook_Radartrue);
}
public 
Action:Hook_Radar(UserMsg:msg_idHandle:bf, const players[], playersNumbool:reliablebool:init)
{
    return 
Plugin_Handled;


Last edited by necavi; 09-20-2012 at 04:20.
necavi is offline
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 09-20-2012 , 04:54   Re: To do this in SourceMod
Reply With Quote #3

Quote:
Originally Posted by necavi View Post
Assuming that that same usermessage exists in source:
PHP Code:
#include <sourcemod>

public OnPluginStart()
{
    
HookUserMessage(GetUserMessageId("radar"), Hook_Radartrue);
}
public 
Action:Hook_Radar(UserMsg:msg_idHandle:bf, const players[], playersNumbool:reliablebool:init)
{
    return 
Plugin_Handled;

thanks.
but, this code is does not work on a server CSGO?
RuRuRu612754 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-20-2012 , 07:33   Re: To do this in SourceMod
Reply With Quote #4

[CS:S] Radar Config
__________________
Do not Private Message @me
Bacardi is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 09-21-2012 , 08:07   Re: To do this in SourceMod
Reply With Quote #5

Quote:
Originally Posted by RuRuRu612754 View Post
thanks.
but, this code is does not work on a server CSGO?
How about you say what you are trying to accomplish. Hide the radar?

Quote:
Originally Posted by Bacardi View Post
The radar stuff is different in CS:GO and the prop m_bPlayerSpotted (or w/e it is) doesn't exist.

Last edited by Dr!fter; 09-21-2012 at 08:07.
Dr!fter is offline
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 09-21-2012 , 10:36   Re: To do this in SourceMod
Reply With Quote #6

Quote:
Originally Posted by Dr!fter View Post
How about you say what you are trying to accomplish. Hide the radar?



The radar stuff is different in CS:GO and the prop m_bPlayerSpotted (or w/e it is) doesn't exist.
unn, no.
i want not be displayed on friendly and enemy radar
but, radar does not want to hide.
RuRuRu612754 is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 09-21-2012 , 13:20   Re: To do this in SourceMod
Reply With Quote #7

Quote:
Originally Posted by RuRuRu612754 View Post
but, radar does not want to hide.
maybe you need to talk nicer to it then... if it doesnt want to play hide and go seek with you then dont force it
lol
Doc-Holiday is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 09-21-2012 , 14:34   Re: To do this in SourceMod
Reply With Quote #8

Quote:
Originally Posted by RuRuRu612754 View Post
unn, no.
i want not be displayed on friendly and enemy radar
but, radar does not want to hide.
Maybe you can use special kung-fu to make them play hide and seek? Like when you bought candy for children.
__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.
GsiX is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 09-21-2012 , 18:11   Re: To do this in SourceMod
Reply With Quote #9

Quote:
Originally Posted by RuRuRu612754 View Post
but, radar does not want to hide.
Beat his ass.
__________________
retired
shavit 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 08:46.


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