AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Spawn Detection (https://forums.alliedmods.net/showthread.php?t=20110)

mysticssjgoku4 11-01-2005 18:19

Spawn Detection
 
How can I make something trigger or set after a user spawns in The Specialists?

Thanks.

XxAvalanchexX 11-01-2005 18:55

Code:
new wasdead[33]; public client_PreThink(id) {    new deadflag = entity_get_int(id,EV_INT_deadflag);    if(!deadflag && wasdead[id])       user_spawn(id);    wasdead[id] = deadflag; }

Hawk552 11-01-2005 19:15

You can also hook DeathMsg / ResetHUD like this:

Code:
#include <amxmodx> public plugin_init() {     register_plugin("whatever","whatever","whoever");         register_event("ResetHUD","MyFunc","be"); } public MyFunc(id) {     // stuff }

mysticssjgoku4 11-01-2005 22:26

Thank you, ResetHud worked perfectly.


All times are GMT -4. The time now is 23:47.

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