View Single Post
GoldNux
Senior Member
Join Date: Mar 2018
Old 05-14-2018 , 14:37   Re: [HELP] Spawn C4 on specific coordinates
Reply With Quote #3

Quote:
Originally Posted by HamletEagle View Post
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])
}
__________________
Try my version of de_dust2, I think it's great and you should check it out!
https://gamebanana.com/mods/83731

Last edited by GoldNux; 05-14-2018 at 14:46.
GoldNux is offline