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

set origin player after death without corpse


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
666
Senior Member
Join Date: Mar 2015
Old 06-01-2022 , 15:22   set origin player after death without corpse
Reply With Quote #1

I'm using this to teleport the player to an origin after dying but the body is teleported and the weapon too. How do I teleport him without a body or a weapon?
PHP Code:
teleport_player(PlayerFloat:origin[3])
{
    if ( 
is_user_alive(Player) || is_user_hltv(Player) )
        return;
    
    
set_entvar(Playervar_deadflagDEAD_DEAD);
    
set_entvar(Playervar_originorigin);


with this the body can disappear, but the weapon is teleported. so i don't want to use it
PHP Code:
set_entvar(Playervar_effectsEF_NODRAW); 
__________________
666 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-02-2022 , 05:52   Re: set origin player after death without corpse
Reply With Quote #2

If you want to teleport player corpse hook clcorpse message and modifie the corpse origin to the desired one.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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:42.


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