Ulysses

General => Developers Corner => Topic started by: killklli on February 20, 2009, 05:44:09 PM

Title: Hud Changer
Post by: killklli on February 20, 2009, 05:44:09 PM
Im Trying To Set It Up With dark Rp So When Someone Becomes A Cop It Makes The Hud Change This Is The Consle Command But I Dont Know How To Make IT So When someone Becomes A Cop It Changes Their Hud To It. R_screenoverlay effects/METROID_overlay.vmt
Title: Re: Hud Changer
Post by: killklli on February 20, 2009, 05:55:49 PM
Does Anyone Have Any Idea Even You Megiddo?
Title: Re: Hud Changer
Post by: JamminR on February 20, 2009, 06:46:05 PM
If it's not apparent, we're pretty busy with other things in life, especially Megiddo.
Are DarkRP jobs the exact same as 'Teams'?
If so, you could use the OnPlayerChangedTeam (http://wiki.garrysmod.com/wiki/?title=Gamemode.OnPlayerChangedTeam) hook on the server to run your command on the client.

If they aren't teams, then you'd have to find out what DarkRP uses on your own.
If it's some player variable that changes, then run a timer to look for it..if a match, run client command to change.