Raised This Month: $ Target: $400
 0% 

[CS GO] Player visability like WarmUp


Post New Thread Reply   
 
Thread Tools Display Modes
kondzixd
Member
Join Date: Sep 2010
Old 03-30-2015 , 11:11   Re: [CS GO] Player visability like WarmUp
Reply With Quote #11

Quote:
Originally Posted by BAILANDO View Post
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 = { &nbsp;&nbsp;&nbsp;&nbsp;name = "Invisibility", &nbsp;&nbsp;&nbsp;&nbsp;author = "BAILANDO", &nbsp;&nbsp;&nbsp;&nbsp;description = "", &nbsp;&nbsp;&nbsp;&nbsp;version = "1.0", &nbsp;&nbsp;&nbsp;&nbsp;url = "http://" }; public OnPluginStart(){ &nbsp;&nbsp;&nbsp;&nbsp;HookEvent("round_start", RoundStart); } public Action:RoundStart(Handle:event, const String:name[], bool:dontBroadcast){ &nbsp;&nbsp;&nbsp;&nbsp;for(new i = 1; i <= GetMaxClients();i++){ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;if(IsClientInGame(i)){ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;SetEntityRenderMod e(i, RENDER_TRANSCOLOR); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;SetEntityRenderCol or(i, 255, 255, 255, 100); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;} &nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;CreateTimer(5.0, StopInvisibility); } public Action:StopInvisibility(Handle:timer){ &nbsp;&nbsp;&nbsp;&nbsp;for(new i = 1; i <= GetMaxClients();i++){ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;if(IsClientInGame(i)){ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;SetEntityRenderMod e(i, RENDER_TRANSCOLOR); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;SetEntityRenderCol or(i, 255, 255, 255, 255); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;} &nbsp;&nbsp;&nbsp;&nbsp;} }
It does not work in cs go, i tested it.
kondzixd 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 11:27.


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