
Originally Posted by
Kaz
Thanks serthy,
i know the basics of the hud and MoveOverTime won't help me with what i want for this case since the move have to be based on if the client joins as spectator or as a player not time based
Afaik, in CoD4 you can hook the functions IzNoGoD mentioned. And then check the team player.pres["team"] == "spectator" // or "axies"/"allies" (if even neccesary) and change the HUD accordingly.
PHP Code:
FUNC onJoinedTeam()
IF player team is spectator
move hud to mid
ELSE
move hud to corner
ENDIF
END
However all this stuff should already be (in parts) in the stock gamefiles, if you know the basics of a HUD, you should also be able to figure it out where and how to move them as you like, as this is one of the simpliest things you can do in scripting.