View Single Post
Author Message
Xvil
BANNED
Join Date: Feb 2012
Old 03-10-2012 , 12:07   [HOWTO] Spawn Sprites
Reply With Quote #1

You Can Use this Script To Display Sprites

Get Player Origin:
PHP Code:
   new Float:start]
  
// get user Origin
  
entity_get_vectoridEV_VEC_originstart ); 
Display Sprite:
PHP Code:
  message_begin(MSG_PVSSVC_TEMPENTITYorigin)
  
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


Screenshot:
Spoiler


Attached Thumbnails
Click image for larger version

Name:	HalfLife93.jpg
Views:	1645
Size:	45.0 KB
ID:	100462  
Attached Files
File Type: sma Get Plugin or Get Source (UseSprites.sma - 770 views - 999 Bytes)
File Type: zip flame.zip (49.4 KB, 140 views)

Last edited by Xvil; 03-12-2012 at 02:59.
Xvil is offline