Hey how is it possible to skip the model selection in CS:S for all players?
and
For the automatic respawn
I used the event player_team and waited 3 seconds to respawn him automatic with m_iPlayerState 0 and m_lifeState 512 but it seems that you respawn sometimes while being in the model selection and when you choose the model you die instantly..
automatic respawn w/ skipping model selection
I tried to hide 'class' VGUIMenu on player_team, but it seems like I can't do anything with the VGUIMenu of this name - not to show it, nor to hide it.
So here's another way
Note that this prevents players from being respawned by the game when they select the skin. So make sure you do respawn them.
Alternatively, you can respawn player 3 seconds later after 'joinclass' command been executed instead of doing it in player_team event.
So here's another way
Syntax: Select all
from commands.client import ClientCommand
@ClientCommand('joinclass')
def cmd_on_joinclass(command, index):
return False
Note that this prevents players from being respawned by the game when they select the skin. So make sure you do respawn them.
Alternatively, you can respawn player 3 seconds later after 'joinclass' command been executed instead of doing it in player_team event.
/id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam
Hail, Companion. [...] Hands to yourself, sneak thief.
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam
Hail, Companion. [...] Hands to yourself, sneak thief.
Working snippet using VGUIMenu hiding
Syntax: Select all
from commands.client import ClientCommand
from messages import VGUIMenu
from players.entity import Player
hidden_class_selection_ct = VGUIMenu('class_ct', show=False)
hidden_class_selection_t = VGUIMenu('class_ter', show=False)
@ClientCommand('jointeam')
def cmd_jointeam(command, index):
player = Player(index)
hidden_class_selection_ct.send(index)
hidden_class_selection_t.send(index)
player.client_command("joinclass 1;")
return True
/id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam
Hail, Companion. [...] Hands to yourself, sneak thief.
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam
Hail, Companion. [...] Hands to yourself, sneak thief.
Return to “Plugin Development Support”
Who is online
Users browsing this forum: No registered users and 28 guests