Raised This Month: $94 Target: $400
 23% 

How to get coords with ease.


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:          Approver:   twistedeuphoria (82)
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-24-2005 , 20:16   How to get coords with ease.
Reply With Quote #1

I made this because I'm tired of people asking me how to get coords in-game... Its a very simple user_origin getter for people who want to get coords, but are too ignorant how to do status in console or the amxx teleport menu.

Code:
#include <amxmodx> #include <amxmisc> new whatsmyorigin[32][3] public plugin_init() {     register_plugin("Origin-Getter","V.1","-Snort-Leader")     register_clcmd("say /userorigin","whereami")     register_clcmd("say /originatcrosshair","aimcoords")     register_clcmd("say /lastbullet","lastbullet")     }     public whereami(id) {     get_user_origin(id,whatsmyorigin[id])     client_print(id,print_chat,"* You are at X %i, Y %i, Z %i!^n",whatsmyorigin[id][0],whatsmyorigin[id][1],whatsmyorigin[id][2])     return PLUGIN_HANDLED } public aimcoords(id) {     get_user_origin(id,whatsmyorigin[id],3)     client_print(id,print_chat,"* You are aiming at X %i, Y %i, Z %i!^n",whatsmyorigin[id][0],whatsmyorigin[id][1],whatsmyorigin[id][2])     return PLUGIN_HANDLED } public lastbullet(id) {     get_user_origin(id,whatsmyorigin[id],4)     client_print(id,print_chat,"* Your last bullet hit at X %i, Y %i, Z %i!^n",whatsmyorigin[id][0],whatsmyorigin[id][1],whatsmyorigin[id][2])     return PLUGIN_HANDLED }

Commands:
say /userorigin
say /originatcrosshair
say /lastbullet ** Might not work unless you are playing CS **
Attached Files
File Type: sma Get Plugin or Get Source (userorigin.sma - 1540 views - 1.0 KB)
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-24-2005 , 20:29  
Reply With Quote #2

Nice, I was looking for something like this .

But I will be changing the commands around .
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-24-2005 , 20:35  
Reply With Quote #3

ehh i just made this, so i couldnt think of decent command names
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 02-25-2005 , 13:00  
Reply With Quote #4

....doesnt steam have a built in coord finder?
+ hasnt this plugin been made b4?
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-26-2005 , 00:52  
Reply With Quote #5

yes steam does, but if you read my first post...

It was probably made before but incorporated into something bigger?

Can i get this approved, even though its small?
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
bloodypizza
BANNED
Join Date: Nov 2005
Location: Slöinge,FALKENBG,SWE
Old 09-08-2006 , 21:22   Re: How to get coords with ease.
Reply With Quote #6

Code:
#include <amxmodx>
#include <amxmisc>
new orgazmo[32][3]
new name[33]
public plugin_init() {
	register_plugin("Origin-Getter 2","V.1","Oskar")
	register_concmd("amx_position", "cmdWhere", ADMIN_SLAY, "<name or #userid>")
	register_concmd("amx_xyz", "cmdWhere", ADMIN_SLAY, "<name or #userid>")
	register_concmd("amx_coord", "cmdWhere", ADMIN_SLAY, "<name or #userid>")
}

public cmdWhere(id, level, cid)
{
	if (!cmd_access(id, level, cid, 2))
		return PLUGIN_HANDLED
	
	new arg[32]
	
	read_argv(1, arg, 31)
	
	new player = cmd_target(id, arg, 2)
	get_user_name(player,name,32)
	get_user_origin(player,orgazmo[player])

	if (is_user_alive(player))
		console_print(id,"^"%s^" XYZ",name,orgazmo[player][0],orgazmo[player][1],orgazmo[player][2])

	if (!is_user_alive(player))
		console_print(id,"*DEAD* ^"%s^" XYZ",name,orgazmo[player][0],orgazmo[player][1],orgazmo[player][2])

	console_print(id,"%i %i %i^n",orgazmo[player][0],orgazmo[player][1],orgazmo[player][2])
	return PLUGIN_HANDLED
}
Attached Files
File Type: sma Get Plugin or Get Source (amx_position.sma - 1025 views - 1,020 Bytes)
bloodypizza is offline
Send a message via MSN to bloodypizza
Zenith77
Veteran Member
Join Date: Aug 2005
Old 09-08-2006 , 23:12   Re: How to get coords with ease.
Reply With Quote #7

Why in the world whould you post that. Ban FTW.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Defillbert
AMX Mod X Donor
Join Date: Aug 2006
Old 09-09-2006 , 14:24   Re: How to get coords with ease.
Reply With Quote #8

/me installs it onto the snort server

Aherm.. What? =Snort= Leader made this plugin lol
Damnit leader get onto xfire D:
Defillbert 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:03.


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