Raised This Month: $ Target: $400
 0% 

[SNIPPET] DoD:Source Force Player Suicide in SpawnArea


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 10-07-2008 , 00:49   Re: [SNIPPET] DoD:Source Force Player Suicide in SpawnArea
Reply With Quote #1

Quote:
Originally Posted by CrimsonGT View Post
Can you block the class select menu with that same method? I see your only hiding it when you kill them and change their team, but I am trying to figure out how to do it so when they first join, after they select a team, they dont get the class select screen.
I'm pretty sure that if you manage to block the class selection
(you could hook the cmd "jointeam" and block the class selection if
player's team is "Unassigned" = 0 on calling it)
the player would not spawn unless you'd add a
FakeClientCommand(client, "cls_*")
while cls_* should be the class that you want to give him
(i.e. cls_random)

(I couldn't get to set a players class yet, it just displays on the scoreboard when I
change it through "m_iPlayerClass", but once a player respawns,
it's changed to the class the player selected before.)

To be honest, I didn't do any research on that then as I didn't need to use it yet.

I hope that post makes any sense to you, just got out of the bed and have to go to work now
FeuerSturm is offline
Reply



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 18:12.


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