|
Member
|
03-30-2015
, 11:11
Re: [CS GO] Player visability like WarmUp
|
#11
|
Quote:
Originally Posted by BAILANDO
Don't know if this work on CS:GO(on CSS you can set Alpha layer), but if you need make player 50% invisible, then use alpha color. Invulnerability for a time you need hook with sdkhook and block damage or something.
This code make all players half-invisible for 5 seconds after round start.
Code:
#include <sourcemod> #include <sdktools> #include <cstrike> //#include <sdkhooks> public Plugin:myinfo = { name = "Invisibility", author = "BAILANDO", description = "", version = "1.0", url = "http://" }; public OnPluginStart(){ HookEvent("round_start", RoundStart); } public Action:RoundStart(Handle:event, const String:name[], bool:dontBroadcast){ for(new i = 1; i <= GetMaxClients();i++){ &nb sp;if(IsClientInGame(i)){ &nb sp; SetEntityRenderMod e(i, RENDER_TRANSCOLOR); &nb sp; SetEntityRenderCol or(i, 255, 255, 255, 100); &nb sp;} } CreateTimer(5.0, StopInvisibility); } public Action:StopInvisibility(Handle:timer){ for(new i = 1; i <= GetMaxClients();i++){ &nb sp;if(IsClientInGame(i)){ &nb sp; SetEntityRenderMod e(i, RENDER_TRANSCOLOR); &nb sp; SetEntityRenderCol or(i, 255, 255, 255, 255); &nb sp;} } }
|
It does not work in cs go, i tested it.
|
|
|
|