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

[CS:GO] Player location


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
irqize
New Member
Join Date: Jun 2014
Old 06-10-2014 , 16:17   [CS:GO] Player location
Reply With Quote #1

How i can get player position on the map, I tried GetClientAbsOrigin , but replies strange hash with squares and letters, despite it's float.

Last edited by irqize; 06-10-2014 at 16:17.
irqize is offline
xf117
Senior Member
Join Date: Mar 2010
Location: Russia
Old 06-10-2014 , 18:01   Re: [CS:GO] Player location
Reply With Quote #2

It is a vector. Which is an array with a type of float and a size of 3.
PHP Code:
decl Float:vecPosition[3];
GetClientAbsOrigin(clientvecPosition); 
Basically it is a just a coordinate in 3 dimensional space.
xf117 is offline
Send a message via ICQ to xf117
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 06-14-2014 , 03:04   Re: [CS:GO] Player location
Reply With Quote #3

Quote:
Originally Posted by irqize View Post
How i can get player position on the map, I tried GetClientAbsOrigin , but replies strange hash with squares and letters, despite it's float.
what ???
Quote:
Originally Posted by xf117 View Post
It is a vector. Which is an array with a type of float and a size of 3.
PHP Code:
decl Float:vecPosition[3];
GetClientAbsOrigin(clientvecPosition);

//Here output to look
PrintToChatAll("Player %N index %i origin %0.2f  %0.2f %0.2f"clientclientvecPosition[0], vecPosition[1], vecPosition[2]); 
Basically it is a just a coordinate in 3 dimensional space.
Bacardi is offline
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 07:10.


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