Raised This Month: $ Target: $400
 0% 

Scoreboard Sprite-Icons for each Player in NS


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
schnitzelmaker
Senior Member
Join Date: Apr 2006
Location: HERE
Old 11-01-2006 , 10:07   Re: Scoreboard Sprite-Icons for each Player in NS
Reply With Quote #2

Here some exaample how to use icons:
http://forums.alliedmods.net/showthread.php?p=53839
http://www.nsmod.org/forums/index.php?showtopic=5390

You need the message "ScoreInfo" for that and set msg_arg 6 to 512 and msg_arg 8 to iconname.
I dont post all code,only the recommmend
Code:
new ICON[33][36];     // icon they should display public plugin_init() {   //...   register_message(get_user_msgid("ScoreInfo"),"hook_scoreinfo"); } public plugin_precache() {   copy(ICON[id],35,"youriconname999")   new short_icon[33];   copy(short_icon,strlen(icon)-3,ICON[id]);//copy the icon without the numbers at end   new szPath[256];   format(szPath,255,"gfx/vgui/640_%s.tga",short_icon);   precache_generic(szPath) } public hook_scoreinfo() {   new id=get_msg_arg_int(1);   set_msg_arg_int(6,ARG_SHORT,512)//need to set to 512 to enable custom icon   set_msg_arg_string(8,ICON[id])//ICON[id] hold the the icon, }
__________________

Last edited by schnitzelmaker; 11-01-2006 at 10:10.
schnitzelmaker is offline
 



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 04:54.


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