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

Invisibility Problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alexande
Member
Join Date: Feb 2020
Old 02-13-2020 , 12:42   Invisibility Problem
Reply With Quote #1

Hi guys , I got a new problem , I have furien server , but I have a problem with the invisibility , when I target a furien and he is invisible I can see his name https://imgur.com/a/ERdRNVD
What should I do?

Last edited by Alexande; 02-13-2020 at 12:43.
Alexande is offline
thEsp
BANNED
Join Date: Aug 2017
Old 02-13-2020 , 15:10   Re: Invisibility Problem
Reply With Quote #2

Since we are in the scripting part of AM: Hook "StatusValue" message and block it.
thEsp is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-17-2020 , 04:04   Re: Invisibility Problem
Reply With Quote #3

Someone correct me if I did something wrong. Untested.
PHP Code:
#include <amxmodx>
#include <cstrike>

public plugin_init()
{
    
register_plugin("Block StatusValue CT on T""0.0.1""D i 5 7 i n c T")
    
    
register_message(get_user_msgid("StatusValue"), "fwMsgStatusValue")
}

public 
fwMsgStatusValue(const iIDMsg, const iDestMsg)
{
    
// Ignore if the message isn't sent to a specific player
    // Ignore if the teams of the player receiving the message and the player he's aiming on aren't different
    
if (iDestMsg != MSG_ONE && iDestMsg != MSG_ONE_UNRELIABLE || get_msg_arg_int(2) != 2)
        return 
PLUGIN_CONTINUE;
    
    
// Get the ID of the player that is receiving the message
    
new iID get_msg_arg_int(1);
    
    
// Ignore if the player receiving the message is not alive and CT
    
if (!is_user_alive(iID) || CsTeams:cs_get_user_team(iID) != CS_TEAM_CT)
        return 
PLUGIN_CONTINUE;
    
    
// Block the message but let other plug-ins read it
    
return PLUGIN_HANDLED_MAIN;

Attached Files
File Type: sma Get Plugin or Get Source (D7StatusValueBlockCTOnT.sma - 71 views - 917 Bytes)
__________________

Last edited by georgik57; 02-17-2020 at 04:06.
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
bad_boy
Member
Join Date: Oct 2018
Old 02-17-2020 , 16:40   Re: Invisibility Problem
Reply With Quote #4

It would be better if he edit the server config.
mp_playerid 2

Last edited by bad_boy; 02-17-2020 at 16:40.
bad_boy is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-18-2020 , 03:24   Re: Invisibility Problem
Reply With Quote #5

Quote:
Originally Posted by bad_boy View Post
It would be better if he edit the server config.
mp_playerid 2
Won't that also hide it when Ts are aiming on CTs?
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
bad_boy
Member
Join Date: Oct 2018
Old 02-18-2020 , 20:20   Re: Invisibility Problem
Reply With Quote #6

Quote:
Originally Posted by georgik57 View Post
Won't that also hide it when Ts are aiming on CTs?
You are correct. He should use mp_playerid 1

https://forums.alliedmods.net/showpo...39&postcount=2
bad_boy 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 21:35.


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