Raised This Month: $ Target: $400
 0% 

How to show sprites with transparent with TE_PLAYERATTCHMENT


Post New Thread Reply   
 
Thread Tools Display Modes
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
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 11-23-2011 , 09:17   Re: How to show sprites with transparent with TE_PLAYERATTCHMENT
Reply With Quote #2

google->half life programs-> sprite explorer

then load sprite, set it to additive->save sprite-> got transparent one
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 11-23-2011 , 10:24   Re: How to show sprites with transparent with TE_PLAYERATTCHMENT
Reply With Quote #3

This TE_PLAYERATTACHMENT is abit tricky to use for transparent sprites. Thats why i dont use CSO sprites on my Banshee, Stamper classes. You need to use a sprites with an alpha chanel with white colour is for transparent colour.

I still don't know how to create this kind of sprites because i've try many time in photoshop but it still become a non-transparent sprites.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Reply



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