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

[HOWTO] Spawn Sprites


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 15:02.


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