Thread: [HELP] Score
View Single Post
Author Message
extream87
Senior Member
Join Date: Aug 2011
Old 04-26-2012 , 18:57   [HELP] Score
Reply With Quote #1

Code:
#include <amxmodx> #include <amxmisc> #include <dhudmessage> #define PLUGIN    "Team Score" #define VERSION    "1.0" #define AUTHOR    "BaRSiK" new ct_score, terrorist_score; public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR);     register_event("TeamScore", "team_score", "a");     set_task(1.0,"score_round",_,_,_,"b") } public team_score() {     new team[32];     read_data(1,team,31);     if (equal(team,"CT"))     {         ct_score = read_data(2);     }     else if (equal(team,"TERRORIST"))     {         terrorist_score = read_data(2);     } }       public score_round() {     set_dhudmessage(0, 70, 200, -1.0, 0.0, 0, 0.5, 2.0, 0.08, 2.0, true);     show_dhudmessage(0,"Cops:%d|                       ", ct_score);           set_dhudmessage(200, 0, 0, -1.0, 0.0, 0, 0.5, 2.0, 0.08, 2.0, true);     show_dhudmessage(0,"                       |%d:Terrorists", terrorist_score); }
It is possible to maintain the results of rounds after sv_restart 1?

For example:
Code:
if( ++g_iRounds >= 15
save score
extream87 is offline