Raised This Month: $ Target: $400
 0% 

Updating scoreboard help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
dutchmeat
Senior Member
Join Date: Sep 2006
Old 01-16-2007 , 09:00   Re: Updating scoreboard help
Reply With Quote #4

An example of how I do it in ESF:

Code:
public UpdateScore(id){ new playerClass = entity_get_int(id, EV_INT_playerclass) new team[32] get_user_team(id,team,31) message_begin(MSG_ALL,g_iMsgScoreInfo) write_byte(id) write_short(get_user_frags(id)) write_short(get_user_deaths(id)) write_short(0) write_short(playerClass) //This shortmessage is about the color of the player's line(on the scoreboard), good = blue, evil = red if( containi( team, "Good" ) != -1 ) { write_short(1) }else if( containi( team, "Evil" ) != -1 ) { write_short(2) } message_end() }
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat 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 22:24.


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