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

Two issues with SetTransmit and SetEntProp


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 11-28-2017 , 14:06   Two issues with SetTransmit and SetEntProp
Reply With Quote #1

Hello friends i've two issues with some things:

I need respawn players on arena maps and make his invisible to another players, this works but have some problems:

If player dead and get respawn other players can't see dead players but dead players can see alive players.

I need dead players see only dead players, my actual code:

This code work half, alive players dont see dead players, but dead players see alive players.

PHP Code:
#include <sourcemod>
#include <sdkhooks>
#include <tf2_stocks>

int IsDeadMan[MAXPLAYERS+1]

public 
void OnPluginStart(){
    
HookEvent("player_death"OnPlayerDeath);
}

public 
Action OnPlayerDeath(Event eventchar[] namebool dontBroadcast){
    
int client GetClientOfUserId(GetEventInt(event"userid"));
    
TF2_RespawnPlayer(client);
    
SDKHook(clientSDKHook_SetTransmitHook_SetTransmit); 
    
IsDeadMan[client] = true;
}

// ----------[ entity = target ] ---------
// ----------[ client = client ] --------
public Action Hook_SetTransmit(int entityint client)  
{  
    if(
IsDeadMan[entity] && IsDeadMan[client])  
        return 
Plugin_Continue

    return 
Plugin_Handled;  

and my next issue is, any way to set players has dead and allow to pickups weapons and kill other players, like an ghost?

I try this:

PHP Code:
SetEntProp(clientProp_Send"m_lifeState"2);
TF2_RegeneratePlayer(client); 
But dont works.

Thanks for all help.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM
rodrigo286 is offline
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 11-29-2017 , 14:35   Re: Two issues with SetTransmit and SetEntProp
Reply With Quote #2

Any one can help with this?

I try some ways but no result yet.

Thanks.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM
rodrigo286 is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 11-29-2017 , 14:39   Re: Two issues with SetTransmit and SetEntProp
Reply With Quote #3

What do you mean by "set them as dead"?
If you want them to appear dead on the scoreboard then fake the scoreboard, not the netprops.
Mitchell is offline
rodrigo286
Veteran Member
Join Date: Sep 2010
Location: Brazil, São Paulo
Old 11-29-2017 , 14:48   Re: Two issues with SetTransmit and SetEntProp
Reply With Quote #4

I need for arena servers, when player die, he are respawned and see/view only dead players.

Also i need this dead players show on scoreboard as dead players, like fake scoreboard.

Thanks for help Mitchell.
__________________
My Plugins | VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet

CZSBrasil TEAM
rodrigo286 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 20:54.


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