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

flag mod team score plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xxkingxx
Junior Member
Join Date: Jan 2017
Old 01-07-2017 , 05:37   flag mod team score plugin
Reply With Quote #1

Hi guys , pls ctf csdm flag mod team score plugin necessary
xxkingxx is offline
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 01-07-2017 , 05:39   Re: flag mod team score plugin
Reply With Quote #2

u wan't this?? click me
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
xxkingxx
Junior Member
Join Date: Jan 2017
Old 01-07-2017 , 05:42   Re: flag mod team score plugin
Reply With Quote #3

Quote:
Originally Posted by shehzad1234 View Post
u wan't this?? click me
mod : Click
xxkingxx is offline
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 01-07-2017 , 05:44   Re: flag mod team score plugin
Reply With Quote #4

please full explain what u wan't
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
xxkingxx
Junior Member
Join Date: Jan 2017
Old 01-07-2017 , 05:52   Re: flag mod team score plugin
Reply With Quote #5

Quote:
Originally Posted by shehzad1234 View Post
please full explain what u wan't
Sample İmages : Clickkkkhttp://i.hizliresim.com/77QDWY.png
xxkingxx is offline
AdamK
Member
Join Date: Jul 2016
Location: Washington, D.C.
Old 01-08-2017 , 14:12   Re: flag mod team score plugin
Reply With Quote #6

@xxkingxx:


Try this, No idea if it works,

PHP Code:
#include <amxmodx>
#include <jctf>
#include <dhudmessage>

#define PLUGIN "Score"
#define VERSION "0.1"
#define AUTHOR "Unknown"

new scorett
new scorect

new SND_BLUE_WIN[] = "ctf/blue_wins.wav"
new SND_RED_WIN[] = "ctf/red_wins.wav"
new SND_TEAMS_TIED[] = "ctf/teams_tied.wav"

enum
{
    
TEAM_NONE 0,
    
TEAM_RED,
    
TEAM_BLUE,
    
TEAM_SPEC
}

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("TextMsg","game_c","a","2&#Game_C")
    
set_task(1.0,"score_round",_,_,_,"b")
    
set_task(0.9"check"___"b")
    
scorett 0
    scorect 
0
}
public 
PlaySound(sound[])
{
    
client_cmd(0"spk ^"%s^""sound)
}
public 
plugin_precache()
{
    
precache_sound(SND_BLUE_WIN)
    
precache_sound(SND_RED_WIN)
    
precache_sound(SND_TEAMS_TIED)
}
public 
game_c()
{
    
set_task(3.0"reset_score")
}
public 
reset_score()
{
    
scorett 0
    scorect 
0
}
public 
jctf_flag(evidtm)
{
    if(
ev == FLAG_CAPTURED)
    {
        switch(
tm)
        {
            case 
TEAM_REDscorect++
            case 
TEAM_BLUEscorett++
        }
    }
    return
}
public 
score_round()
{
    
set_dhudmessage(255255255, -1.00.000.01.0+0.01)
    
show_dhudmessage(0"Blue Team || Red Team^n%i             %i"scorectscorett)
}
public 
check()
{
    new 
string[10]
    
get_cvar_string("amx_timeleft"string10)
    
    if(
equal(string"00:00"))
    {
        
remove_task(_)
        if(
scorect == scorett)
            
PlaySound(SND_TEAMS_TIED)
        else if(
scorect>scorett)
            
PlaySound(SND_BLUE_WIN)
        else if(
scorect<scorett)
            
PlaySound(SND_RED_WIN)
    }

__________________
| Adam |

Last edited by AdamK; 01-08-2017 at 14:15.
AdamK is offline
Old 01-08-2017, 14:15
OciXCrom
This message has been deleted by OciXCrom.
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 09:50.


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