AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   spawn with no hud (https://forums.alliedmods.net/showthread.php?t=50317)

kp_uparrow 01-23-2007 20:14

spawn with no hud
 
2 Attachment(s)
when a player did not join a team (joins spectator) through the changeteam menu (cs, no amxx) and the player gets spawn()ed, the player has no hud exept the money + time

anything amxx/something can do to force the player's hud show up?

ask me if you dont understand

see the big picture in the rar

Emp` 01-23-2007 20:34

Re: spawn with no hud
 
you could check a players team sometime (when they spawn, switch weapon, etc.) and then if their team is UNASSIGNED, set their team to something else

Hawk552 01-23-2007 21:27

Re: spawn with no hud
 
You can also send a ResetHUD message to them, I think. If that doesn't work, force them to run fullupdate.

kp_uparrow 01-24-2007 01:41

Re: spawn with no hud
 
how would u force them a ResetHUD or fullupdate

note: the person with no HUD join spectator already

Simon Logic 01-24-2007 06:35

Re: spawn with no hud
 
kp_uparrow, what engine (plugin?) does spawn a player?

osk522 01-24-2007 09:45

Re: spawn with no hud
 
Try to include fun and write give_item(id,"item_suit")
Not shure it'll work tough...

[ --<-@ ] Black Rose 01-24-2007 10:09

Re: spawn with no hud
 
Quote:

Originally Posted by Simon Logic (Post 430978)
what engine (plugin?) does spawn a player?

fun
spawn(id)

Quote:

Originally Posted by Hawk552 (Post 430845)
You can also send a ResetHUD message to them, I think. If that doesn't work, force them to run fullupdate.

Neither works.

ResetHUD also shows round timer as 0:00 and money as 0

kp_uparrow 01-24-2007 11:53

Re: spawn with no hud
 
giving an item does not work

so its stuck? :(

Orangutanz 01-24-2007 13:08

Re: spawn with no hud
 
Quote:

Originally Posted by kp_uparrow
when a player did not join a team (joins spectator) through the changeteam menu (cs, no amxx) and the player gets spawn()ed, the player has no hud exept the money + time

anything amxx/something can do to force the player's hud show up?

ask me if you dont understand

see the big picture in the rar

I don't get this...

Radar is shown.
Timer is shown.
Money is shown.
Buyzone is shown.
Flashlight won't be shown if its not active I don't think.
Knife won't display anything since its not an ammo item.

Unless you are on about the Weapon Selection, can't you press keys 1 - x ?

[edit]
I SEE

Health & Armor are missing, let me find the code.

Try this:
Code:
message_begin(MSG_ONE, get_user_msgid("HideWeapon"), {0,0,0}, id) write_byte(0) message_end()

0 // Show HUD
(1<<0) // No Ammo, No Crosshair
(1<<1) // No FlashLight
(1<<2) // No HUD
(1<<3) // No Health, No Armor, No Radar
(1<<4) // No Timer
(1<<5) // No Money

VEN 01-24-2007 14:11

Re: spawn with no hud
 
FYI: i've commited a noticeable message list update recently: http://wiki.amxmodx.org/index.php/Ha...nts#HideWeapon


All times are GMT -4. The time now is 22:26.

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