Mensajes: 4,383
Temas: 132
Registro en: Apr 2015
Reputación:
23
07/08/2015, 06:28 PM
(Última modificación: 07/08/2015, 06:31 PM por Nazi.- .)
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
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 ( PLUGIN , VERSION , AUTHOR ) 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 ( ev , id , tm ) { if( ev == FLAG_CAPTURED ) { switch( tm ) { case TEAM_RED : scorect ++ case TEAM_BLUE : scorett ++ } } return } public score_round () { set_dhudmessage ( 255 , 255 , 255 , 0.34 , 0.03 , 0 , 6.0 , 12.0 ) show_dhudmessage ( 0 , "[%d] Blue Team || Red Team [%d]^n %i %i" , Conteo , Tonteo , scorect , scorett ) } public check () { new string [ 10 ] get_cvar_string ( "amx_timeleft" , string , 10 ) 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 i = 0 ; i <= get_maxplayers (); i ++) { if( is_user_alive ( i ) && cs_get_user_team ( i ) == CS_TEAM_CT ) { iCTconteo ++ } } new iTRconteo for(new i = 0 ; i <= 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
Descargar AMXX / ScoreTeam.sma (Tamaño: 2.25 KB / Descargas: 165)
* Ing. Informático * Mapper * Venezolano
Mensajes: 268
Temas: 28
Registro en: Dec 2013
Reputación:
3
Esta bueno
PD: Pon el codigo PHP pls :3 -
Hello People!!!
Mensajes: 131
Temas: 8
Registro en: Jun 2015
Pone el código en PHP /?
Buen aporte.
Mensajes: 4,383
Temas: 132
Registro en: Apr 2015
Reputación:
23
Listo ya lo arregle es que esta pc es de los años 90 xd
Gracias
* Ing. Informático * Mapper * Venezolano
Mensajes: 4,451
Temas: 45
Registro en: Jan 2014
Reputación:
24
(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.
Mensajes: 7,178
Temas: 93
Registro en: Aug 2014
Reputación:
63
(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.
Mensajes: 4,383
Temas: 132
Registro en: Apr 2015
Reputación:
23
Gracias se me ocurrio otra cosa lo actualizare luego
* Ing. Informático * Mapper * Venezolano
Me gustaría que todos los post que hacen tengan fotos, seria algo interesante de agregar. :3
Mensajes: 24
Temas: 7
Registro en: Mar 2017
Reputación:
0
[b]Hay que tener el jctf instalado?
Mensajes: 255
Temas: 7
Registro en: Sep 2017
Reputación:
3
(15/10/2017, 11:33 PM) wlmraziel escribió: [b]Hay que tener el jctf instalado?
SI .-.
Plata o Plomo Usted decide
- P ablo E milio E scobar G aviria -
Mensajes: 164
Temas: 64
Registro en: Sep 2018
Reputación:
2
(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
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 ( PLUGIN , VERSION , AUTHOR ) 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 ( ev , id , tm ) { if( ev == FLAG_CAPTURED ) { switch( tm ) { case TEAM_RED : scorect ++ case TEAM_BLUE : scorett ++ } } return } public score_round () { set_dhudmessage ( 255 , 255 , 255 , 0.34 , 0.03 , 0 , 6.0 , 12.0 ) show_dhudmessage ( 0 , "[%d] Blue Team || Red Team [%d]^n %i %i" , Conteo , Tonteo , scorect , scorett ) } public check () { new string [ 10 ] get_cvar_string ( "amx_timeleft" , string , 10 ) 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 i = 0 ; i <= get_maxplayers (); i ++) { if( is_user_alive ( i ) && cs_get_user_team ( i ) == CS_TEAM_CT ) { iCTconteo ++ } } new iTRconteo for(new i = 0 ; i <= 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.