new Float:start[ 3 ]
// get user Origin
entity_get_vector( id, EV_VEC_origin, start );
Display Sprite:
PHP Code:
message_begin(MSG_PVS, SVC_TEMPENTITY, origin)
write_byte(TE_SPRITETRAIL)
write_coord(start[0]) // x
write_coord(start[1]) // y
write_coord(start[2] ) // z
write_coord(end[0]) // x Example end[0] = start[0] + 100
write_coord(end[1]) // y Example end[1] = start[1]
write_coord(end[2]) // z Example end[2] = start[2]
write_short(g_sprite) // Sprite Index
write_byte(25) // Count
write_byte(25) // Life
write_byte(2) // Scale
write_byte(50) // Velocity Along Vector
write_byte(10) // Rendomness of Velocity
message_end();
Example:
Spoiler
PHP Code:
// includes
#include <amxmodx>
#include <engine>
#include <fakemeta>