AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Player spawning right after menu select (https://forums.alliedmods.net/showthread.php?t=309552)

edon1337 07-30-2018 05:48

Player spawning right after menu select
 
So you know when you enter a server and right after selecting a team & class you spawn, how do I block it and why does it happen? I want player to be able to choose team & class but not spawn.

Kalipso22 07-30-2018 06:13

Re: Player spawning right after menu select
 
I don't quite understand what you mean, but if you start round you are not spawn anymore, they are spawn dead. If you prefer, you can use the BlockJointeam plugin. The players are assigned the team you want without making any choice. If the round starts, they will go dead.

Ghosted 07-30-2018 06:23

Re: Player spawning right after menu select
 
If you are using ReGameDLL check the following cvar mp_roundrespawn_time

edon1337 07-30-2018 06:28

Re: Player spawning right after menu select
 
Quote:

Originally Posted by Ghosted (Post 2607016)
If you are using ReGameDLL check the following cvar mp_roundrespawn_time

Well, unfortunately I'm not..

Quote:

Originally Posted by Kalipso22 (Post 2607013)
I don't quite understand what you mean, but if you start round you are not spawn anymore, they are spawn dead.

I think you're wrong, try creating a listen server and you'll see that you'll spawn as soon as you choose the player class.

Ghosted 07-30-2018 06:39

Re: Player spawning right after menu select
 
Hook Putinserver and set players privatedata m_iNumRespawns (365) to 1 (that means player is already respawned and is unable to spawn)
Code:

set_pdata_int(id, 365, 1);
Don't know if there will be issues

edon1337 07-30-2018 06:44

Re: Player spawning right after menu select
 
Quote:

Originally Posted by Ghosted (Post 2607018)
Hook Putinserver and set players privatedata m_iNumRespawns (365) to 1 (that means player is already respawned and is unable to spawn)
Code:

set_pdata_int(id, 365, 1);
Don't know if there will be issues

As for now it works, I'll let you know if there's any issues, thanks!


All times are GMT -4. The time now is 12:51.

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