Raised This Month: $ Target: $400
 0% 

float problem with write_coord()


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dark_Siders
Member
Join Date: Aug 2013
Location: Dreaming World
Old 07-27-2014 , 04:26   Re: float problem with write_coord()
Reply With Quote #1

Quote:
Originally Posted by bat View Post
Post code
PHP Code:
#include <amxmodx>

#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(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /gunshot""GunShotFunc"0)
}

public 
GunShotFunc(id)
{
    
fOrigin[0] = 312.061096
    fOrigin
[1] = -335.421661
    fOrigin
[2] = -594.627014
    
    message_begin
(MSG_ALLSVC_TEMPENTITY)
    
write_byte(TE_GUNSHOT)
    
write_coord(fOrigin[0])
    
write_coord(fOrigin[1])
    
write_coord(fOrigin[2])
    
message_end()

This is a simple code for testing gunshot effect.
__________________
***********
I want to die peacefully in my sleep like my grandfather, not screaming in terror like his passengers.

***********

Last edited by Dark_Siders; 07-27-2014 at 04:27.
Dark_Siders is offline
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