Raised This Month: $12 Target: $400
 3% 

Correctly teleport player in L4D2 (12vs12)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ilham92-cc-sakura
Senior Member
Join Date: Oct 2008
Location: /var/www/index.html
Old 06-09-2021 , 02:00   Correctly teleport player in L4D2 (12vs12)
Reply With Quote #1

This correct way to teleport player back to last location?
PHP Code:
...
float PlayerOrigin[3];
GetClientAbsOrigin(iPlayerOrigin); // get current player location

TS_TankPass(clienti); //forward from l4d_tank_pass.sp, some time swaping player tank cause tank outside of map

TeleportEntity(iPlayerOriginNULL_VECTORNULL_VECTOR); // teleport to last recorded location
... 
I was trying to teleport player back to last location, every time Swap Tank Player cause new Player Tank outside map.

about GetClientAbsOrigin() function, the 2nd parameter similar to C/C++ pointer or C# out parameter modifier, where declared variable have values?
__________________
ilham92-cc-sakura is offline
Reply


Thread Tools
Display Modes

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 22:26.


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