detecting when a player spawns
how do i check for if a player has spawned yet?
theres client_spawn but that doesnt seem to work. |
Code:
Use that. |
be aware that event can be called other ways. It is a good idea to have a check in place to make sure the player actually died first or the round ended.
|
There is a better way: (VEN invented it if I remember correct)
Code:
Mind that it is global. |
Quote:
|
And you should always make a delayed function. Here's a brief example:
Code:
|
v3x: yes that is a good idea since there are lots of things where if they are done DURING resethud cause problems.
|
I learned my lesson on that a while ago :o
|
#include <CSX>
and 'client_spawn' will work xD |
Note that ResetHUD happens twice most of the time(atleast with the specialists mod)
|
| All times are GMT -4. The time now is 05:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.