Raised This Month: $ Target: $400
 0% 

Making people respawn one place after they die..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TiToTal
Member
Join Date: Feb 2006
Old 03-08-2006 , 17:14   Making people respawn one place after they die..
Reply With Quote #1

I believe it is simples, I just want to, when someone DIES, this person spawn in one place... when this person enters in the server, he spawns normally, but everytime he dies he spawns somewhere { 0,0,0 }

Can you tell me how I can do this? thanks...
TiToTal is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 03-08-2006 , 17:15  
Reply With Quote #2

what

Define "one place"??
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
TiToTal
Member
Join Date: Feb 2006
Old 03-08-2006 , 18:09  
Reply With Quote #3

Quote:
Originally Posted by Kensai
what

Define "one place"??
one point... { 0 , 0 , 0 }
TiToTal is offline
Des12
Senior Member
Join Date: Jan 2005
Old 03-08-2006 , 18:25  
Reply With Quote #4

Code:
new teleorigin[3] = { 0, 0, 0}; // ... register_event("ResetHUD","Event_ResetHUD","be"); // ... public Event_ResetHUD(id) {     if(!is_user_alive(id))     {         return PLUGIN_HANDLED;     }     set_user_origin(id, teleorigin);                     return PLUGIN_HANDLED; }
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 is offline
TiToTal
Member
Join Date: Feb 2006
Old 03-08-2006 , 19:53  
Reply With Quote #5

Quote:
Originally Posted by Des12
Code:
new teleorigin[3] = { 0, 0, 0}; // ... register_event("ResetHUD","Event_ResetHUD","be"); // ... public Event_ResetHUD(id) {     if(!is_user_alive(id))     {         return PLUGIN_HANDLED;     }     set_user_origin(id, teleorigin);                     return PLUGIN_HANDLED; }
but does this code act only when the person dies? I mean, when the person connects to the server, is not alive... =/
TiToTal is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-08-2006 , 19:58  
Reply With Quote #6

No, and people can execut fullupdate to get to resethud, thus hacking your plugin.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
TiToTal
Member
Join Date: Feb 2006
Old 03-08-2006 , 20:00  
Reply With Quote #7

Quote:
Originally Posted by Twilight Suzuka
No, and people can execut fullupdate to get to resethud, thus hacking your plugin.
what does resethud do?
TiToTal is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 03-08-2006 , 20:05  
Reply With Quote #8

resethud is a HL engine event that whenever someone spawns, or any other occation of hving their hud reset, it is executed. fullupdate resets your hud. (if you'll notice, fullupdate in console will cause your money to flashgreen.

PS. should hook deathmessage if I'm reading your request right.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
TiToTal
Member
Join Date: Feb 2006
Old 03-08-2006 , 22:31  
Reply With Quote #9

Quote:
Originally Posted by GHW_Chronic
resethud is a HL engine event that whenever someone spawns, or any other occation of hving their hud reset, it is executed. fullupdate resets your hud. (if you'll notice, fullupdate in console will cause your money to flashgreen.

PS. should hook deathmessage if I'm reading your request right.
yeah... I guess so... I will try it tomorrow... now I just want to go to the bed
TiToTal is offline
Des12
Senior Member
Join Date: Jan 2005
Old 03-09-2006 , 16:50  
Reply With Quote #10

But if you hook DeathMsg, the person will be dead for at least a few seconds, therefore making him not spawn. How about TsMsg or something I saw...
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 is offline
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 20:19.


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