Raised This Month: $ Target: $400
 0% 

Showing a sprite above player?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


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 22:27.


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