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

Problems with 'TE_PLAYERATTACHMENT'


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 07-11-2012 , 02:41   Problems with 'TE_PLAYERATTACHMENT'
Reply With Quote #1

Do not work...
PHP Code:
new sprite;

public 
plugin_precache( )
    
sprite precache_model"sprites/party_spr.spr" // I also tested with precache_generic

public party_spriteidpartyid )
{
    if( !
is_user_connectedid ) || !is_user_connectedpartyid ) )
        return;
    
    
message_beginMSG_ONE_UNRELIABLESVC_TEMPENTITY_id );
    
write_byteTE_PLAYERATTACHMENT );
    
write_bytepartyid );
    
write_coord);
    
write_shortsprite );
    
write_short99999 );
    
message_end( );
        
    
message_beginMSG_ONE_UNRELIABLESVC_TEMPENTITY_partyid );
    
write_byteTE_PLAYERATTACHMENT );
    
write_byteid );
    
write_coord);
    
write_shortsprite );
    
write_short99999 );
    
message_end( );

__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-11-2012 , 04:11   Re: Problems with 'TE_PLAYERATTACHMENT'
Reply With Quote #2

Is party_sprite() called at least ?
__________________
Arkshine is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 07-11-2012 , 23:29   Re: Problems with 'TE_PLAYERATTACHMENT'
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
Is party_sprite() called at least ?
Yes, I checked that.
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
Y060N
BANNED
Join Date: Dec 2011
Location: www.equilibriumcs.com
Old 07-12-2012 , 00:28   Re: Problems with 'TE_PLAYERATTACHMENT'
Reply With Quote #4

Are you sure you are using the correct types of sprite?
Y060N is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 07-12-2012 , 00:42   Re: Problems with 'TE_PLAYERATTACHMENT'
Reply With Quote #5

As i remember "TE_PLAYERATTACHMENT" only support alphatest sprites (High Detail).
__________________
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
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 07-12-2012 , 00:50   Re: Problems with 'TE_PLAYERATTACHMENT'
Reply With Quote #6

This is the sprite.
Attached Files
File Type: zip party_onlyarg.zip (718 Bytes, 109 views)
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 07-12-2012 , 04:21   Re: Problems with 'TE_PLAYERATTACHMENT'
Reply With Quote #7

Tested your spr and works fine:

here i attached the code. Taken from Tuty's team spr.

this is why your spr won't show:
Code:
write_short( 99999 );
you can set it lower than that, use 30000 is okay.
Attached Files
File Type: sma Get Plugin or Get Source (Partyyy.sma - 703 views - 985 Bytes)
__________________
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

Last edited by yokomo; 07-12-2012 at 04:24.
yokomo is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 07-13-2012 , 01:02   Re: Problems with 'TE_PLAYERATTACHMENT'
Reply With Quote #8

Works fine, thanks

Now... how can I delete the sprite?

PD: Tested with
PHP Code:
write_short); 
Do not work.
__________________

Last edited by Neeeeeeeeeel.-; 07-13-2012 at 01:02.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-13-2012 , 01:22   Re: Problems with 'TE_PLAYERATTACHMENT'
Reply With Quote #9

TE_KILLPLAYERATTACHMENTS ... ?
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 07-13-2012 , 01:57   Re: Problems with 'TE_PLAYERATTACHMENT'
Reply With Quote #10

Quote:
Originally Posted by meTaLiCroSS View Post
TE_KILLPLAYERATTACHMENTS ... ?
Thanks
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
Reply


Thread Tools
Display Modes

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