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

[CSGO] Make all players invisible for single user


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hitmany
Senior Member
Join Date: Jul 2010
Old 11-27-2016 , 05:53   [CSGO] Make all players invisible for single user
Reply With Quote #1

Hello. In CS 1.6 we have FM_AddToFullPack function where I can make all players invisible for 1 single player.

So, how it in Sourcemod?
hitmany is offline
CamerDisco
AlliedModders Donor
Join Date: Aug 2015
Location: Poland
Old 11-27-2016 , 06:40   Re: [CSGO] Make all players invisible for single user
Reply With Quote #2

Function SetTransmit in sdkhooks
PHP Code:
public OnClientPutInServer(int client)
{
    
SDKHook(clientSDKHook_SetTransmitHook_SetTransmit);
}

public 
Action Hook_SetTransmit(int entityint client)
{
    if (
client != entity && (entity <= MaxClients) && IsPlayerAlive(client)) {
            return 
Plugin_Handled;
    }
    
    return 
Plugin_Continue;

__________________


Max-Play.pl - the best polish servers
CamerDisco is offline
hitmany
Senior Member
Join Date: Jul 2010
Old 11-27-2016 , 10:50   Re: [CSGO] Make all players invisible for single user
Reply With Quote #3

thx I will try

Last edited by hitmany; 11-27-2016 at 10:58.
hitmany 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 17:24.


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