Raised This Month: $ Target: $400
 0% 

ResetHUD problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 08-25-2005 , 08:17   ResetHUD problem
Reply With Quote #1

ResetHUD is called when I'm on CT, but not when I'm on T. Eh? Anybody know why?
Code:
register_event("ResetHUD","Event_ResetHUD","b");
( Yes, I am using ;'s now )

EDIT: AMXX 1.1
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 08-25-2005 , 12:15  
Reply With Quote #2

Quote:
Originally Posted by v3x
( Yes, I am using ;'s now )
Me too. (Started about 4 plugs ago)
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 08-25-2005 , 12:42  
Reply With Quote #3

Geee, this doesn't get any better now does it? I even tried Ava's method:
Code:
public client_PreThink(id) {     new iDeadFlag = entity_get_int(id,EV_INT_deadflag);         if(g_iOldDeadFlag[id] && !iDeadFlag)         SpawnStuff(id);     g_iOldDeadFlag[id] = iDeadFlag }
Modified by me slightly, STILL didn't work for T's but worked for CT's!

I need a solution!
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 08-25-2005 , 14:04  
Reply With Quote #4

how do you know its only working for the t side...check your flags and what not...and if your using get_players anywhere in the code that may the prob...
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 08-25-2005 , 23:05  
Reply With Quote #5

Quote:
Originally Posted by Zenith77
how do you know its only working for the t side...check your flags and what not...and if your using get_players anywhere in the code that may the prob...
Because, in the function hooked to my ResetHUD event I have this in it:
Code:
#if defined DEBUG     client_print(id,3,"You have spawned") #endif
It prints it for CT, but not T. Also, the attributes menu shows up for CT and not T. That is how I know. I seriously need a solution here.

P.S: I also tried pfn_spawn(); same scenario.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 08-25-2005 , 23:11  
Reply With Quote #6

I believe ResetHUD must be called when an info_player_start spawns, not when an info_player_deathmatch is spawned.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-25-2005 , 23:28  
Reply With Quote #7

Quote:
Originally Posted by GHW_Chronic
I believe ResetHUD must be called when an info_player_start spawns, not when an info_player_deathmatch is spawned.
Hmm, no.

v3x you just broke the world, try starting an entirely new plugin, disabling your current one, and hooking ResetHUD.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 08-25-2005 , 23:32  
Reply With Quote #8

Quote:
v3x you just broke the world, try starting an entirely new plugin, disabling your current one, and hooking ResetHUD.
LOL

Try that and if it dont work, disable all other non-needed plugins and trying that (throwing ideas in the open)
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 08-25-2005 , 23:51  
Reply With Quote #9

Ok, so it worked with this:
Code:
#include <amxmodx> public plugin_init() {     register_plugin("Test","0.1","v3x")     register_event("ResetHUD","Event_ResetHUD","b") } public Event_ResetHUD(id) {     client_print(id,3,"You have spawned") }
How do you suppose I "broke" it? What could cause this? ;\
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-25-2005 , 23:55  
Reply With Quote #10

It's probably line 238 where you set EV_INT_iStepLeft to 1 instead of 0.

Actually I'm just guessing because I don't know what your code is.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply


Thread Tools
Display Modes

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 14:20.


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