Raised This Month: $ Target: $400
 0% 

float problem with write_coord()


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bat
Veteran Member
Join Date: Jul 2012
Old 07-27-2014 , 04:56   Re: float problem with write_coord()
Reply With Quote #1

Yeah Mr.Hornet correсtly written.

Code:
#include <amxmodx>
#include <fakemeta>

#define TE_GUNSHOT 2

new PLUGIN[] = "Gun Shot Effect"
new AUTHOR[] = "LeriCo"
new VERSION[] = "1.0"

new Float:fOrigin[3]

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("say /gunshot", "GunShotFunc", 0)
}

public GunShotFunc(id)
{
    fOrigin[0] = 312.061096
    fOrigin[1] = -335.421661
    fOrigin[2] = -594.627014
    
    engfunc(EngFunc_MessageBegin, MSG_ALL, SVC_TEMPENTITY, fOrigin, 0)
    write_byte(TE_GUNSHOT)
    engfunc(EngFunc_WriteCoord, fOrigin[0])
    engfunc(EngFunc_WriteCoord, fOrigin[1])
    engfunc(EngFunc_WriteCoord, fOrigin[2])
    message_end()
}
__________________
bat is offline
Send a message via Skype™ to bat
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 13:14.


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