Raised This Month: $54 Target: $400
 13% 

Solved Attracting a player to their side in a given area


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OW3R
Junior Member
Join Date: Sep 2021
Old 05-23-2022 , 12:49   Attracting a player to their side in a given area
Reply With Quote #1

solved

Last edited by Bugsy; 05-24-2022 at 17:53. Reason: Restore to previous version.
OW3R is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-23-2022 , 17:59   Re: Attracting a player to their side in a given area
Reply With Quote #2

If you solve your issue, leave your question visible and post your solution. Others may have the same problem and could use your solution.
__________________
Bugsy is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 05-24-2022 , 12:28   Re: Attracting a player to their side in a given area
Reply With Quote #3

im also curious how solved because i have the same problem . So please post everything .
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
OW3R
Junior Member
Join Date: Sep 2021
Old 05-25-2022 , 10:06   Re: Attracting a player to their side in a given area
Reply With Quote #4

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)
}
OW3R is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 05-27-2022 , 04:35   Re: Attracting a player to their side in a given area
Reply With Quote #5

Quote:
Originally Posted by OW3R View Post
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 .
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
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 02:16.


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