Raised This Month: $ Target: $400
 0% 

[HELP] Spawn C4 on specific coordinates


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 04:33.


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