raydan
12-20-2008, 04:16
Here is the sample plugin to using "IncrementFragCount" to change player score. As we know, we can use "m_iFrags" or "m_iDeaths" to change score and death in game scoreboard, but you can't see updated data in server info.
In this example, you can add/set/reset scroe/death value in scorebaord and server info
PS: setting too high score/death value, scoreboard can't show correct value, but server info still display the real one.
RegConsoleCmd("add_score", add_5_score); // add 5 score
RegConsoleCmd("add_death", add_5_death); // add 5 death
RegConsoleCmd("reset_score", reset_score); //reset score to 0
RegConsoleCmd("reset_death", reset_death); //reset death to 0
RegConsoleCmd("set_score", set_score_to_4321); // set score to 4321
RegConsoleCmd("set_death", set_death_to_4321); // set death to 4321
http://img397.**************/img397/3369/omg12345scoreag2.jpg
In this example, you can add/set/reset scroe/death value in scorebaord and server info
PS: setting too high score/death value, scoreboard can't show correct value, but server info still display the real one.
RegConsoleCmd("add_score", add_5_score); // add 5 score
RegConsoleCmd("add_death", add_5_death); // add 5 death
RegConsoleCmd("reset_score", reset_score); //reset score to 0
RegConsoleCmd("reset_death", reset_death); //reset death to 0
RegConsoleCmd("set_score", set_score_to_4321); // set score to 4321
RegConsoleCmd("set_death", set_death_to_4321); // set death to 4321
http://img397.**************/img397/3369/omg12345scoreag2.jpg