Quote:
Originally Posted by HamletEagle
Go where you want the c4 to be and retrieve your origin.
|
Is there a console command to do this or do I have to write a function for it?
edit: found this.
Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init()
register_clcmd("origin", "Show_Origin")
public Show_Origin(id)
{
new Float:Origin[3], szOrigin[3][20]
pev(id, pev_origin, Origin)
float_to_str(Origin[0], szOrigin[0], 19)
float_to_str(Origin[1], szOrigin[1], 19)
float_to_str(Origin[2], szOrigin[2], 19)
client_print(id, print_console, "%s %s %s", szOrigin[0], szOrigin[1], szOrigin[2])
}
__________________