Raised This Month: $ Target: $400
 0% 

how can I make all players invisible when they spawn?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
prolge
New Member
Join Date: Jun 2023
Old 06-23-2023 , 22:54   how can I make all players invisible when they spawn?
Reply With Quote #1

how can I make all players invisible when they spawn?
I want to insert invisibility script in this IF

#include <sourcemod>
#include <sdktools>
public OnPluginStart()
{
HookEvent("player_spawn", Event_playerS);
}
public Event_playerS(Event hEvent, const char[] sEvName, bool bDontBroadcast)
{
int iUserID = hEvent.GetInt("userid");
int iClient = GetClientOfUserId(iUserID);
if(iClient)
{
GivePlayerItem(iClient, "weapon_hegrenade");
SetEntityHealth(iClient, 1);
[code here]
}
}
prolge is offline
 



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:22.


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