Raised This Month: $ Target: $400
 0% 

Spawn Detection


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 11-01-2005 , 18:19   Spawn Detection
Reply With Quote #1

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

Thanks.
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-01-2005 , 18:55  
Reply With Quote #2

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; }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-01-2005 , 19:15  
Reply With Quote #3

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 }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 11-01-2005 , 22:26  
Reply With Quote #4

Thank you, ResetHud worked perfectly.
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
Reply



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 23:47.


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