Raised This Month: $ Target: $400
 0% 

about teleport


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jacob
Senior Member
Join Date: Oct 2010
Old 11-26-2010 , 22:27   about teleport
Reply With Quote #1

I use the code below to teleport a player.if the one is teleported,his hp will become 100,how to make his hp unchanged.
PHP Code:
ExecuteHamB(Ham_CS_RoundRespawnid
Jacob is offline
r4ndomz
Senior Member
Join Date: Jul 2009
Location: The Hood
Old 11-26-2010 , 22:42   Re: about teleport
Reply With Quote #2

Quote:
Originally Posted by Jacob View Post
I use the code below to teleport a player.if the one is teleported,his hp will become 100,how to make his hp unchanged.
PHP Code:
ExecuteHamB(Ham_CS_RoundRespawnid

Did you try spawn(id) from fun?
__________________
HideNSeek bug fixed here:http://forums.alliedmods.net/showpos...&postcount=951

PM me if you want a nice HideNSeek shop
NEED PLUGIN TESTERS PM ME
r4ndomz is offline
Send a message via Skype™ to r4ndomz
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-26-2010 , 22:44   Re: about teleport
Reply With Quote #3

Quote:
Originally Posted by r4ndomz View Post
Did you try spawn(id) from fun?
That function is not to be used. Ham_CS_RoundRespawn is the best method for spawn.

Quote:
Originally Posted by Jacob View Post
I use the code below to teleport a player.if the one is teleported,his hp will become 100,how to make his hp unchanged.
PHP Code:
ExecuteHamB(Ham_CS_RoundRespawnid
Get the player's health before you spawn them, then set their health back to the old health.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
r4ndomz
Senior Member
Join Date: Jul 2009
Location: The Hood
Old 11-26-2010 , 22:46   Re: about teleport
Reply With Quote #4

Quote:
Originally Posted by Exolent[jNr] View Post
That function is not to be used.
Why isnt spawn to be used?
__________________
HideNSeek bug fixed here:http://forums.alliedmods.net/showpos...&postcount=951

PM me if you want a nice HideNSeek shop
NEED PLUGIN TESTERS PM ME
r4ndomz is offline
Send a message via Skype™ to r4ndomz
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 11-26-2010 , 22:49   Re: about teleport
Reply With Quote #5

Quote:
Originally Posted by r4ndomz View Post
Why isnt spawn to be used?
Because Ham is the best method. He just said that.
__________________
Hi.
Kreation is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-26-2010 , 22:48   Re: about teleport
Reply With Quote #6

Quote:
Originally Posted by r4ndomz View Post
Why isnt spawn to be used?
Quote:
Originally Posted by Exolent[jNr] View Post
Ham_CS_RoundRespawn is the best method for spawn.
spawn() doesn't properly spawn the player.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Jacob
Senior Member
Join Date: Oct 2010
Old 11-26-2010 , 23:12   Re: about teleport
Reply With Quote #7

Quote:
Originally Posted by Exolent[jNr] View Post
That function is not to be used. Ham_CS_RoundRespawn is the best method for spawn.



Get the player's health before you spawn them, then set their health back to the old health.
thank you,
Jacob 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 11:22.


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