Raised This Month: $ Target: $400
 0% 

Showing a sprite above player?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 12-29-2006 , 01:55   Showing a sprite above player?
Reply With Quote #1

Hi, I was wondering how I could show a sprite above a players head for about 2 seconds. I saw in another plugins code they did the same thing. I need to know how to make the sprite show for only 2 seconds though. Here is the code from the other plugin...

Code:
public showspr(id){     if(!is_user_connected(id) || !is_user_alive(id)) return PLUGIN_HANDLED     new i     new players = get_maxplayers()     message_begin(MSG_ALL,SVC_TEMPENTITY)     write_byte(125)     write_byte(id)     message_end()     for (i = 0 ; i < players ; i++)         {         if(i != id && is_user_connected(i))             {             message_begin(MSG_ONE_UNRELIABLE,SVC_TEMPENTITY,{0,0,0},i)             write_byte(124)             write_byte(id)             write_coord(65)             write_short(spritename)             write_short(9)             message_end()         }     }     set_task(0.8,"showspr",id)     return PLUGIN_CONTINUE }
hlstriker is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 12-29-2006 , 02:04   Re: Showing a sprite above player?
Reply With Quote #2

message_begin(MSG_ALL,SVC_TEMPENTITY)
write_byte(124)
write_byte(id)
write_coord(65)
write_short(spritename)
write_short(20)
message_end()
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>

Last edited by jim_yang; 12-29-2006 at 02:14.
jim_yang is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 12-29-2006 , 02:10   Re: Showing a sprite above player?
Reply With Quote #3

Thanks very much
hlstriker 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 22:27.


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