Raised This Month: $32 Target: $400
 8% 

Solved start/stop certain sprite


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 03-06-2019 , 12:21   start/stop certain sprite
Reply With Quote #1

how can i start a sprite and stop it?
like
PHP Code:
public abc {
    
start sprite
    set_task
(2.0 blabla)
}
public 
blabla {
    
stop sprite

__________________
a simple act of caring creates an endless ripple.

Last edited by Nutu_; 03-06-2019 at 15:10.
Nutu_ is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 03-06-2019 , 12:30   Re: start/stop certain sprite
Reply With Quote #2

what sprite?

if you are using a custom entity, change its framerate
__________________
<VeCo> is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 03-06-2019 , 13:07   Re: start/stop certain sprite
Reply With Quote #3

it is like an aura that is around the player while he's pressing a letter, its not an entity i guess
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 03-06-2019 , 14:17   Re: start/stop certain sprite
Reply With Quote #4

ce ai vrea sa faci ? fi mai explicit

Code:
stock attach_sprite( user_id )
{
	if ( !is_user_connected( user_id ) )
	{
		return;
	}

	message_begin( MSG_ALL, SVC_TEMPENTITY );
	write_byte( TE_PLAYERATTACHMENT );
	write_byte( user_id );
	write_coord( 60 );
	write_short( sprite_name );
	write_short( 9000 );
	message_end();
}

stock remove_sprite( user_id )
{
	if ( !is_user_connected( user_id ) )
	{
		return;
	}

	message_begin( MSG_ALL, SVC_TEMPENTITY );
	write_byte( TE_KILLPLAYERATTACHMENTS );
	write_byte( user_id );
	message_end();
}

Last edited by raizo11; 03-06-2019 at 14:19.
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
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 00:55.


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