] Respawning all players
I use this one
for ( int i = 0 ; i = gpGlobals-maxClients ; i++ )
{
CBasePlayer *player = (CBasePlayer *)UTIL_PlayerByIndex(i);
if ( player )
{
player-RemoveAllAmmo(); //Removes all ammo
player-RemoveAllDecals();//Removes All decals from the player model
: [hlcoders] Respawning all players
I use this one
for ( int i = 0 ; i = gpGlobals-maxClients ; i++ )
{
CBasePlayer *player = (CBasePlayer *)UTIL_PlayerByIndex(i);
if ( player )
{
player-RemoveAllAmmo(); //Removes all ammo
player-RemoveAllDecals();//Removes All decals from
I use this one
for ( int i = 0 ; i = gpGlobals-maxClients ; i++ )
{
CBasePlayer *player = (CBasePlayer
*)UTIL_PlayerByIndex(i);
if ( player )
{
Hi all.
How would I go about respawning ALL of the players on a server?
I'm thinking I'd need to loop through them, but I don't know.
Thanks.
-Knifa
___
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
Which code are you working with? HL2MP blank, HL2DM, or a Server Plugin?
- Original Message -
From: Knifa [EMAIL PROTECTED]
To: hlcoders@list.valvesoftware.com
Sent: Sunday, February 20, 2005 10:13 AM
Subject: [hlcoders] Respawning all players
Hi all.
How would I go about respawning
HL2DM:
Which code are you working with? HL2MP blank, HL2DM, or a Server Plugin?
- Original Message -
From: Knifa [EMAIL PROTECTED]
To: hlcoders@list.valvesoftware.com
Sent: Sunday, February 20, 2005 10:13 AM
Subject: [hlcoders] Respawning all players
Hi all.
How would I go about
, or a Server Plugin?
- Original Message -
From: Knifa [EMAIL PROTECTED]
To: hlcoders@list.valvesoftware.com
Sent: Sunday, February 20, 2005 10:13 AM
Subject: [hlcoders] Respawning all players
Hi all.
How would I go about respawning ALL of the players on a server?
I'm thinking I'd need to loop through
static_castCBasePlayer*(pEntity)-RemoveAllItems(false); ?
___
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders
8 matches
Mail list logo