Raised This Month: $ Target: $400
 0% 

How to show sprites with transparent with TE_PLAYERATTCHMENT


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 11-23-2011 , 08:48   How to show sprites with transparent with TE_PLAYERATTCHMENT
Reply With Quote #1

- I have this code
PHP Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
#include <xs>

#define PLUGIN "Test"
#define VERSION "1.0"
#define AUTHOR "author"

new g_spr_id

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /test""test")
}

public 
plugin_precache()
{
    
g_spr_id precache_model("sprites/biohazard/zb_confuse.spr")
}

public 
test(id)
{
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY_id)
    
write_byte(TE_PLAYERATTACHMENT)
    
write_byte(id)
    
write_coord(45)
    
write_short(g_spr_id)
    
write_short(10 10)
    
message_end()

- But the show spr is not transparent. I want it to transparent, but i don't know how to do that, someone tell me how to do it of how to make sprites transparent

[IMG]http://img85.**************/img85/6287/29514184.png[/IMG]
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
 



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 08:33.


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