Raised This Month: $51 Target: $400
 12% 

[HELP] Score


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 21:02.


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