JCTF: Team Score V2
#1
Bueno ya que sugi creo un plugin para ctf de team score yo decidí sacar la V2 porque no tenia internet xD bueno al grano

JCTF: Team Score V2

Descripcion
Este Plugin lo que hace es contar las banderas robadas tanto sea del equipo Blu o del equipo Red lo que fue agregado es que cuenta cuantos jugadores están vivos tanto sea de ct o tt bueno prueben y lo verán

Codigo
Código PHP:
#include <amxmodx>
#include <jctf>
#include <cstrike>
#include <dhudmessage>

#define PLUGIN "Team Score (JCTF)"
#define VERSION "2.0"
#define AUTHOR "Sugisaki"

new scorett
new scorect

new Conteo
new Tonteo

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(0.7,"score_round",_,_,_,"b")
    
set_task(0.1"check"___"b")
    
set_task(0.1,"conteo_team",19708,_,_,"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(2552552550.340.0306.012.0)
    
show_dhudmessage(0"[%d] Blue Team || Red Team [%d]^n        %i                      %i"ConteoTonteoscorectscorett)
}
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)
    }
}

public 
conteo_team() {
    new 
iCTconteo                                                                                            
        
for(new 0<= get_maxplayers(); i++) {                                                    
        if(
is_user_alive(i) && cs_get_user_team(i) == CS_TEAM_CT)
        {
            
iCTconteo++
        }
    }    
    new 
iTRconteo
        
for(new 0<= get_maxplayers(); i++) 
    {                                                        
        if(
is_user_alive(i) && cs_get_user_team(i) == CS_TEAM_T)
        {
            
iTRconteo++
        }
    }
    
Conteo iCTconteo
    Tonteo 
iTRconteo
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang3082\\ f0\\ fs16 \n\\ par }
*/ 

El plugin original esta aqui
https://amxmodx-es.com/Thread-JCTF-Team-Score

PD: Para publicarlo le pedi permiso a Sugi


Archivos adjuntos
.sma   Descargar AMXX / ScoreTeam.sma (Tamaño: 2.25 KB / Descargas: 165)
* Ing. Informático * Mapper * Venezolano
Responder
#2
Esta bueno Gran sonrisa

PD: Pon el codigo PHP pls :3 -
Hello People!!!
Responder
#3
Pone el código en PHP /?

Buen aporte.
Responder
#4
Listo ya lo arregle es que esta pc es de los años 90 xd

Gracias A ysi
* Ing. Informático * Mapper * Venezolano
Responder
#5
(07/08/2015, 06:19 PM)FreDDy escribió:
(07/08/2015, 06:17 PM)Pan Bimbo (? escribió: Critica Nº1 Nazi.-: Buen Aporte.
Critica Nº2 NkkI: Buen Aporte.
Critica Nº3 FloresMagon: Buen Aporte.
Critica Nº4 totopija: Buen Aporte.

Critica Nº5 FreDDy: QUE MIERDA ES ESTOOOOO BORRA ESTA PUTA ASQUEROSIDAD, GORDO CON SIDA EL LA OREJA, PEDAZO DE GORDO VIRGEN TROLO, PUTO, GAY.
PD: Buen aporte.
Responder
#6
(07/08/2015, 06:32 PM)FreDDy escribió:
(07/08/2015, 06:19 PM)FreDDy escribió:
(07/08/2015, 06:17 PM)Pan Bimbo (? escribió: Critica Nº1 Nazi.-: Buen Aporte.
Critica Nº2 NkkI: Buen Aporte.
Critica Nº3 FloresMagon: Buen Aporte.
Critica Nº4 totopija: Buen Aporte.

Critica Nº5 FreDDy: QUE MIERDA ES ESTOOOOO BORRA ESTA PUTA ASQUEROSIDAD, GORDO CON SIDA EL LA OREJA, PEDAZO DE GORDO VIRGEN TROLO, PUTO, GAY.
PD: Buen aporte.
[Imagen: zcsztw-4.png] [Imagen: 6u5fj2-4.png]
[Imagen: linkedin_thumb_image.png][Imagen: 76561198283253977.png][Imagen: linkedin_thumb_image.png]
Responder
#7
Thats what she said Gracias se me ocurrio otra cosa lo actualizare luego Rainbow
* Ing. Informático * Mapper * Venezolano
Responder
#8
Me gustaría que todos los post que hacen tengan fotos, seria algo interesante de agregar. :3
Responder
#9
[b]Hay que tener el jctf instalado?
Responder
#10
(15/10/2017, 11:33 PM)wlmraziel escribió: [b]Hay que tener el jctf instalado?

SI .-.
Plata o Plomo Usted decide


- Pablo Emilio Escobar Gaviria -
Responder
#11
(07/08/2015, 06:28 PM)Nazi.- escribió: Bueno ya que sugi creo un plugin para ctf de team score yo decidí sacar la V2 porque no tenia internet xD bueno al grano

JCTF: Team Score V2

Descripcion
Este Plugin lo que hace es contar las banderas robadas tanto sea del equipo Blu o del equipo Red lo que fue agregado es que cuenta cuantos jugadores están vivos tanto sea de ct o tt bueno prueben y lo verán

Codigo
Código PHP:
#include <amxmodx>
#include <jctf>
#include <cstrike>
#include <dhudmessage>

#define PLUGIN "Team Score (JCTF)"
#define VERSION "2.0"
#define AUTHOR "Sugisaki"

new scorett
new scorect

new Conteo
new Tonteo

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(0.7,"score_round",_,_,_,"b")
    
set_task(0.1"check"___"b")
    
set_task(0.1,"conteo_team",19708,_,_,"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(2552552550.340.0306.012.0)
    
show_dhudmessage(0"[%d] Blue Team || Red Team [%d]^n        %i                      %i"ConteoTonteoscorectscorett)
}
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)
    }
}

public 
conteo_team() {
    new 
iCTconteo                                                                                            
        
for(new 0<= get_maxplayers(); i++) {                                                    
        if(
is_user_alive(i) && cs_get_user_team(i) == CS_TEAM_CT)
        {
            
iCTconteo++
        }
    }    
    new 
iTRconteo
        
for(new 0<= get_maxplayers(); i++) 
    {                                                        
        if(
is_user_alive(i) && cs_get_user_team(i) == CS_TEAM_T)
        {
            
iTRconteo++
        }
    }
    
Conteo iCTconteo
    Tonteo 
iTRconteo
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang3082\\ f0\\ fs16 \n\\ par }
*/ 

El plugin original esta aqui
https://amxmodx-es.com/Thread-JCTF-Team-Score

PD: Para publicarlo le pedi permiso a Sugi

No me muestra nada en la pantalla y supuestamente esta corriendo de manera correcta.
[Imagen: ban1.jpg]
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)