Spawning?
What's the most effencient way of telling if someone has spawned? I've tried to make a filter for resethud and do that but I always got a overflow?
I'm looking to give people weapons on spawn on a deathmatch based game (Adrenaline gamer) Thanks! |
There's only 2 that I know of:
pfn_spawn And register_event("ResetHUD","func","be") which you already know about. |
Code:
|
Nope, go on.
|
just do
register_event("ResetHUD", "on_ResetHud", "b") It's all you need, Also you WILL ALWAYS get an overflow or a disconnect if you give them too many weapons at once. Or it will crash the server, so don't give them like 10 guns at once. At least space it out with a set task and do it like ever .1 seconds. |
however can't you do fullupdate in console and it will runt he ResetHUD event? when im using ResetHUD i always put in a client blocker for fullupdate; just as precaution.
|
Quote:
|
well ResetHUD is a very powerful tool, as logn as you do..
Code:
or, you can hook the death of a user, set a var to symobilse that he/she is dead, and run set_task loops until is_user_alive is true. |
That's crazy, that would involve 2 set_tasks for 1 second at least.
|
yea, so id go with the resetHUD lol.
|
| All times are GMT -4. The time now is 14:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.