Raised This Month: $ Target: $400
 0% 

log_kill and frags problems


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
dutchmeat
Senior Member
Join Date: Sep 2006
Old 12-05-2006 , 07:16   Re: log_kill and frags problems
Reply With Quote #8

The problem you're having is because the scoreboard doesn't update after set_frags...
here's an example i used for ESF:

Code:
new g_iMsgScoreInfo = get_user_msgid( "ScoreInfo" )
public AddScore(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)
if( containi( team, "Good" ) != -1 ) { 
write_short(1) //color of the player line
}else if( containi( team, "Evil" ) != -1 ) {
write_short(2)
}
message_end()
}
Note that this example is based on ESF, the message could be different on CT
__________________
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.

Last edited by dutchmeat; 12-05-2006 at 17:34.
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 06:52.


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