Raised This Month: $ Target: $400
 0% 

Get user "place"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
piepie
Member
Join Date: May 2013
Location: Pieland *.*
Old 06-01-2013 , 08:41   Get user "place"
Reply With Quote #1

How to can i get that number ?





Source: himg.in
__________________

piepie is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 06-01-2013 , 09:45   Re: Get user "place"
Reply With Quote #2

It's called origin.

The origin have 3Dementions:
X, Y and Z

PHP Code:
new origin[3];
get_user_origin(client,origin); 
__________________
simanovich is offline
piepie
Member
Join Date: May 2013
Location: Pieland *.*
Old 06-01-2013 , 11:54   Re: Get user "place"
Reply With Quote #3

Quote:
Originally Posted by simanovich View Post
It's called origin.

The origin have 3Dementions:
X, Y and Z

PHP Code:
new origin[3];
get_user_origin(client,origin); 
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say .orogin""checkorigin");
}

public 
checkorigin(id) {
    new 
origin[3];
    
get_user_origin(id,origin);  
    
client_print(idprint_chat"Your number is %s."origin);    

Result:
PHP Code:
Your number is /. 
__________________


Last edited by piepie; 06-01-2013 at 12:00.
piepie is offline
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 06-01-2013 , 12:26   Re: Get user "place"
Reply With Quote #4

Read: https://forums.alliedmods.net/showthread.php?t=91474

PHP Code:
client_print(idprint_chat"Your number is [%d,%d,%d]."origin[0], [origin[1], origin[2]) 
EpicMonkey is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 06-01-2013 , 13:34   Re: Get user "place"
Reply With Quote #5

Code:
client_print(id, print_chat, "Your number is [%d,%d,%d].", origin[0], [origin[1], origin[2])
Code:
client_print(id, print_chat, "Your origin is [%d,%d,%d].", origin[0], origin[1], origin[2])
TheDS1337 is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-01-2013 , 18:38   Re: Get user "place"
Reply With Quote #6

I think you guys need to look at the screenshot.

If I'm right, it's the user ID.

Code:
public plugin_init( ) register_clcmd( "say .id", "CLCMDPrintIdToChat" ) public CLCMDPrintIdToChat( id ) client_print( id, print_chat, "Your ID is %d", id )
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
piepie
Member
Join Date: May 2013
Location: Pieland *.*
Old 06-01-2013 , 20:08   Re: Get user "place"
Reply With Quote #7

Quote:
Originally Posted by Backstabnoob View Post
I think you guys need to look at the screenshot.

If I'm right, it's the user ID.

Code:
public plugin_init( ) register_clcmd( "say .id", "CLCMDPrintIdToChat" ) public CLCMDPrintIdToChat( id ) client_print( id, print_chat, "Your ID is %d", id )
I thought that was the id too but they fooled me.
__________________

piepie is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 06-02-2013 , 02:58   Re: Get user "place"
Reply With Quote #8

Quote:
Originally Posted by Backstabnoob View Post
I think you guys need to look at the screenshot.

If I'm right, it's the user ID.

Code:
public plugin_init( ) register_clcmd( "say .id", "CLCMDPrintIdToChat" ) public CLCMDPrintIdToChat( id ) client_print( id, print_chat, "Your ID is %d", id )
The picture didn't load...
__________________
simanovich is offline
Kz1.0
Senior Member
Join Date: Jan 2013
Location: Vietnam
Old 06-02-2013 , 04:23   Re: Get user "place"
Reply With Quote #9

Quote:
Originally Posted by simanovich View Post
The picture didn't load...
Me too, and if he means players' id, why he asked "place" ???
Kz1.0 is offline
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 06-02-2013 , 06:01   Re: Get user "place"
Reply With Quote #10

my god ... well ... ummmmm ............. my excuse is ............. simanovich confused me
EpicMonkey 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 05:00.


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