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

Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hartmann
Senior Member
Join Date: Nov 2014
Old 01-17-2015 , 13:58   Plugin
Reply With Quote #1

Does anyone have this plugin ...
shows the start of this round score ct vs. t
sorry for bad english
Hartmann is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 01-17-2015 , 14:56   Re: Plugin
Reply With Quote #2

What is their name?
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Hartmann
Senior Member
Join Date: Nov 2014
Old 01-17-2015 , 15:06   Re: Plugin
Reply With Quote #3

Quote:
Originally Posted by ^SmileY View Post
What is their name?
I've played Gather and saw this plugin and want to throw on your server...
I have this code, but still standing on the hud.

Code:
#include <amxmodx>

new gTTScore, gCTScore;

public plugin_init() {
register_plugin("JailBreake Score Info", "1.0", "Fr0zen");
register_event("TeamScore", "team_score", "a");
set_task(1.0, "score_round", _, _, _, "b")
}

public team_score() {
new szTeam[32];
read_data(1, szTeam, charsmax(szTeam));

if(equal(szTeam, "TERRORIST"))
gTTScore = read_data(2);

else if(equal(szTeam,"CT"))
gCTScore = read_data(2);
}

public score_round() {
set_hudmessage(255, 255, 255, -1.0, 0.01, 0, 6.0, 1.0)
show_hudmessage(0, "[TEAM1] VS [TEAM2] ^n[%i] -- [%i]", gTTScore, gCTScore)
}
__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann is offline
Hartmann
Senior Member
Join Date: Nov 2014
Old 01-20-2015 , 09:18   Re: Plugin
Reply With Quote #4

Code:
#include <amxmodx>
#include <amxmisc>

new gTTScore, gCTScore;


public plugin_init() {
  
        register_event("ResetHUD", "newRound", "b")
        register_clcmd("say .score","showScore");
        register_event("TeamScore", "team_score", "a");
      }
public newRound(id)
{  
        set_hudmessage(0, 212, 255, 0.52, 0.49, 1, 6.0, 12.0, 0.1, 0.2, -1)
        show_hudmessage(0, "Rezultat:^n________^nTeam A: %i^nTeam B: %i", gTTScore, gCTScore)
                                       
        
        return PLUGIN_HANDLED;
}

public team_score() {
new szTeam[32];
read_data(1, szTeam, charsmax(szTeam));

if(equal(szTeam, "TERRORIST"))
gTTScore = read_data(2);

else if(equal(szTeam,"CT"))
gCTScore = read_data(2);
}

public showScore(id) {
client_print(id, print_chat,"[Team A] %i:%i [Team B]",gTTScore, gCTScore);
}

Attached Files
File Type: sma Get Plugin or Get Source (scorehart.sma - 535 views - 864 Bytes)
__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx


Last edited by Hartmann; 01-20-2015 at 09:25.
Hartmann is offline
Reply



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 12:20.


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