Raised This Month: $51 Target: $400
 12% 

Message 'Brass'


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Welgericht
Member
Join Date: Jul 2010
Old 01-14-2012 , 13:01   Message 'Brass'
Reply With Quote #1

I have some problems with message 'Brass', plug-in compiles but it doesn't work. Here is the code:
PHP Code:
#include < amxmodx >

#include < fakemeta >

#define PLUGIN  "Test"
#define VERSION "Test"
#define AUTHOR  "Test"

new model

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_clcmd("say /test""clcmd_test")
}

public 
plugin_precache()
{
    
model precache_model("models/shell.mdl")
}

public 
clcmd_test(id)
{
    new 
origin[3], fAngle[3]

    
pev(idpev_originorigin)
    
pev(idpev_view_ofsfAngle)

    
message_begin(MSG_ONEget_user_msgid("Brass"), {0,0,0}, id );
    
write_byte(TE_MODEL// MessageID
    
write_coord(origin[0]) // Start X
    
write_coord(origin[1]) // Start Y
    
write_coord(origin[2]) // Start Z
    
write_coord(fAngle[0]) // Velocity X
    
write_coord(fAngle[1]) // Velocity Y
    
write_coord(fAngle[2]) // Velocity Z
    
write_angle(30.0// Angle Rotation
    
write_short(model// Model Index
    
write_byte(1// Bounce sound type
    
write_byte(25// Life (2.5 sec.)
    
message_end()

Where is my mistake?
Welgericht 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 17:12.


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