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

Detect player origins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 01-19-2022 , 17:01   Detect player origins
Reply With Quote #1

How can detect if a player is in this origin?
For exp : Float:{0.0,0.0,0.0}
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 01-19-2022 , 17:17   Re: Detect player origins
Reply With Quote #2

https://sm.alliedmods.net/new-api/cl...lientAbsOrigin
__________________
Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
>>You need Models for DODS/CSS/CSGO , than click here!!!<<
andi67 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 01-19-2022 , 17:42   Re: Detect player origins
Reply With Quote #3

PHP Code:
    float vPos[3];
    
GetClientAbsOrigin(clientvPos); 
__________________
Marttt is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 01-19-2022 , 18:05   Re: Detect player origins
Reply With Quote #4

I know that..but how

new float vPos[3]
vPos[0] = 0.0
vPos[1] = 0.0
vPos[2] = 0.0
GetClientAbsOrigin(client, vPos);

If (vPos)
{
// Do something
}
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 01-19-2022 , 18:54   Re: Detect player origins
Reply With Quote #5

You could try this:
PHP Code:
float flClientPos[3], flWorldPos[3];
flWorldPos[0] = 0.0;
flWorldPos[1] = 0.0;
flWorldPos[2] = 0.0;
GetClientAbsOrigin(clientflClientPos);

if (
GetVectorDistance(flClientPosflWorldPos) == 0.0)
{
    
// Do something

__________________
Psyk0tik 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 02:00.


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