AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Attracting a player to their side in a given area (https://forums.alliedmods.net/showthread.php?t=337885)

OW3R 05-23-2022 11:49

Attracting a player to their side in a given area
 
solved

Bugsy 05-23-2022 16:59

Re: Attracting a player to their side in a given area
 
If you solve your issue, leave your question visible and post your solution. Others may have the same problem and could use your solution.

Craxor 05-24-2022 11:28

Re: Attracting a player to their side in a given area
 
im also curious how solved because i have the same problem :D . So please post everything .

OW3R 05-25-2022 09:06

Re: Attracting a player to their side in a given area
 
I just added this code:

if(is_user_connected(iVictim) && is_user_alive(iVictim) && !zp_core_is_zombie(iVictim))
{
new Float:Origin[3]
pev(player, pev_origin, Origin)
Origin[0] += 40
set_pev(iVictim, pev_origin, Origin)
}

Craxor 05-27-2022 03:35

Re: Attracting a player to their side in a given area
 
Quote:

Originally Posted by OW3R (Post 2780133)
I just added this code:

if(is_user_connected(iVictim) && is_user_alive(iVictim) && !zp_core_is_zombie(iVictim))
{
new Float:Origin[3]
pev(player, pev_origin, Origin)
Origin[0] += 40
set_pev(iVictim, pev_origin, Origin)
}

that code could stuck the teleported one in the wall if the user youre taking an origin is to close to an wall or something like that, you need tremendous code to perfect it .


All times are GMT -4. The time now is 18:23.

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