AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   No Spawn (https://forums.alliedmods.net/showthread.php?t=61728)

fxfighter 10-08-2007 03:09

No Spawn
 
How can i prevent a player frome spawning on a new rund .
whitout killing them so fast that they dont know what happen?

Wilson [29th ID] 10-08-2007 03:21

Re: No Spawn
 
Are you referring to preventing players from spawning after the round starts?

Otherwise...if you want to "slow down" a user kill...just print some text on the client's screen, and then set_task() for a few seconds to kill him. Maybe even stop his movement before you kill him.

Hopefully that's what you're looking for. Kind of a weird question, so bare with me.

fxfighter 10-08-2007 04:28

Re: No Spawn
 
k thx but is thare enyway you can prevent some players frome spawning at all.
i dont want some players to spawn at round starts.

Alka 10-08-2007 08:30

Re: No Spawn
 
You can do it with HamSandwich.... :S

Code:

/*Description:  Respawn function for players/bots only! Do not use this on non player/bot entities!*/
Ham_CS_RoundRespawn //Params: function(this).

I think you can block it by return HAM_SUPERCEDE ? dunno shure :D

Wilson [29th ID] 10-09-2007 03:31

Re: No Spawn
 
I believe you can simply change the pev_deadflag from DEAD_RESPAWNING to DEAD_NONE - I don't remember the constants off the top of my head, but I remember it dictating whether or not the client was ready to respawn.

EDIT: Found the const. It's change DEAD_RESPAWNABLE to DEAD_DEAD

fxfighter 10-09-2007 12:56

Re: No Spawn
 
k thx gonna try that

kim_perm 11-13-2007 16:20

Re: No Spawn
 
I try to do some like this in CS.
Using set_pev(id, pev_deadflag, DEAD_DEAD) in spawn function (on ResetHUD event). It's work.
But have two problem:
1. Player model. It's stay visible and partial in ground.
2. On next round start, player have not any weapon (and knife too).

Where is my mistake? Or all right?

PS: Sorry for my english. :oops:
PPS: I'm find answer on my question #1. Just block "ClCorpse" message.


All times are GMT -4. The time now is 16:13.

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