AMXX - Deathmatch.
#1
Arcoiris 
AMXX - Deathmatch.
Versión 1.0b lanzada el 15 de julio de 2020.



Descripción
  • Simple Deathmatch con el objetivo de divertir a los usuarios con sus recursos.

Contiene
  • Top 5 - (MEJORES JUGADORES)
  • Estadísticas.
  • Rangos [CS:GO]
  • Admin Prefixes.
  • Tienda de Hats.
  • Hora Happy.
  • Cambio de Cámara.
  • Armas al hacer Respawn. - (PRIMARIAS & SECUNDARIAS)
  • Menú de Items. - (SE ABRE EN LA N)
  • Protección + Glow. - (CONFIGURABLE)
  • Donación de frags.

Requiere

Imágenes

[Imagen: Screenshot-1.png] [Imagen: Screenshot-2.png] [Imagen: Screenshot-3.png]
[Imagen: Screenshot-4.png] [Imagen: Screenshot-5.png] [Imagen: Screenshot-6.png]
[Imagen: Screenshot-7.png] [Imagen: Screenshot-9.png] [Imagen: Screenshot-12.png]
[Imagen: Screenshot-13.png] [Imagen: Screenshot-14.png]

Créditos

Changelog

Cita:VERSIÓN 1.0b

- Lanzamiento del plugin.

Código

Código PHP:
#include <amxmodx>
#include <amxconst>
#include <amxmisc>
#include <adv_vault>
#include <cstrike>
#include <engine>
#include <fun>
#include <hamsandwich>
#include <stripweapons>
#include <steamdata>

#define TASK_SUMAR 12234
#define SUMAR_ID ( taskid - TASK_SUMAR )
#define MAX_HATS sizeof( g_sHats )
#define HAT_NONE -1

#if AMXX_VERSION_NUM < 190

 #define MAX_PLAYERS 32
 #define MAX_MOTD_LENGTH 1536

 #define client_disconnected client_disconnect
 #define client_print_color client_print
 #define print_team_default print_chat

#endif

new const g_szPluginName[ ] = "Deathmatch";
new const 
g_szPluginVersion[ ] = "1.0b";
new const 
g_szPluginAuthor[ ] = "Andre's <3.";

new const 
g_szChatPrefix[ ] = "^4[ AMXX-ES ]^1";
new const 
g_szConsolePrefix[ ] = "[ AMXX ]";
new const 
g_szContactUrl[ ] = "www.amxmodx-es.com";

new const 
g_szItemMenuSound[ ] = "Ui/buttonclickrelease.wav";
new const 
g_szPlayerKilledSound[ ] = "buttons/bell1.wav";
new const 
g_szSoundUpdate[ ] = "events/task_complete.wav";
new const 
g_DefaultAvatar[ ] = "https://i.ibb.co/HB7q1P9/profile.png";

enum _:eWeapons_Struct
{
 
WPN_NAME30 ],
 
WPN_WEAPONENT47 ],
 
WPN_CSW,
 
WPN_BULLETS
}

enum _:eRangos_Struct
{
 
NOMBRE30 ],
 
FRAGS
}

enum _:eHats_Struc
{
 
HAT_NOMBRE32 ],
 
HAT_MODELO40 ],
 
HAT_COST
}

enum
{
 
CAMPO_FRAGS,
 
CAMPO_DEATHS,
 
CAMPO_HS,
 
CAMPO_KNIFES,
 
CAMPO_DIAS,
 
CAMPO_HORAS,
 
CAMPO_MINUTOS,
 
CAMPO_SEGUNDOS,
 
CAMPO_DAMAGE,
 
CAMPO_HITS,
 
CAMPO_RANGO,
 
CAMPO_MAX
}

new const 
Weapons_Primary[ ][ eWeapons_Struct ] =
{
 { 
"M4A1""weapon_m4a1"CSW_M4A1200 },
 { 
"AK-47""weapon_ak47"CSW_AK47200 },
 { 
"AWP""weapon_awp"CSW_AWP200 },
 { 
"Famas""weapon_famas"CSW_FAMAS200 },
 { 
"Galil""weapon_galil"CSW_GALIL200 },
 { 
"MAC-10""weapon_mac10"CSW_MAC10200 },
 { 
"TMP""weapon_tmp"CSW_TMP200 },
 { 
"UMP""weapon_ump45"CSW_UMP45200 },
 { 
"MP5 Navy""weapon_mp5navy"CSW_MP5NAVY200 },
 { 
"ES P90""weapon_p90"CSW_P90200 },
 { 
"SG-552""weapon_sg552"CSW_SG552200 },
 { 
"SCOUT""weapon_scout"CSW_SCOUT200 },
 { 
"AUG""weapon_aug"CSW_AUG200 },
 { 
"M249""weapon_m249"CSW_M249200 },
 { 
"M3""weapon_m3"CSW_M3200 },
 { 
"XM1014""weapon_xm1014"CSW_XM1014200 },
 { 
"G3SG1""weapon_g3sg1"CSW_G3SG1200 }
}

new const 
Weapons_Secondary[ ][ eWeapons_Struct ] =
{
 { 
"Deagle""weapon_deagle"CSW_DEAGLE200 },
 { 
"USP""weapon_usp"CSW_USP200 },
 { 
"Glock""weapon_glock18"CSW_GLOCK18200 },
 { 
"P228""weapon_p228"CSW_P228200 },
 { 
"FiveseveN""weapon_fiveseven"CSW_FIVESEVEN200 },
 { 
"Dual Elite Berettas""weapon_elite"CSW_ELITE200 }
}

new const 
RangosCSGO[ ][ eRangos_Struct ] =
{
 { 
"Sin Rango"50 },
 { 
"Silver I"200 },
 { 
"Silver II"300 },
 { 
"Silver III"400 },
 { 
"Silver IV"500 },
 { 
"Silver Elite"900 },
 { 
"Silver Elite Master"1100 },
 { 
"Gold Nova I"1700 },
 { 
"Gold Nova II"2100 },
 { 
"Gold Nova III"2600 },
 { 
"Gold Nova Master"3100 },
 { 
"Master Guardian I"3700 },
 { 
"Master Guardian II"4000 },
 { 
"Master Guardian Elite"4800 },
 { 
"Distinguished Master Guardian"6000 },
 { 
"Legendary Eagle"9000 },
 { 
"Legendary Eagle Master"13000 },
 { 
"Supreme Master First Class"17000 },
 { 
"The Global Elite"1000000 }
}

new const 
g_sHats[ ][ eHats_Struc ] =
{
 { 
"Carita""models/AMXX-Hats/carita.mdl"10 },
 { 
"Super Sonic""models/AMXX-Hats/SuperSonic.mdl"50 },
 { 
"Batman""models/AMXX-Hats/Batman.mdl"200 },
 { 
"Black Dragon""models/AMXX-Hats/black_dragon.mdl"300 },
 { 
"Cara Anchoa""models/AMXX-Hats/CaraAnchoa.mdl"400 },
 { 
"Angel""models/AMXX-Hats/Angel.mdl"500 },
 { 
"Cheetos""models/AMXX-Hats/Cheetos.mdl"900 },
 { 
"Cocodrilo""models/AMXX-Hats/cocodrilo.mdl"1100 },
 { 
"Cow""models/AMXX-Hats/cow.mdl"1700 },
 { 
"Dar""models/AMXX-Hats/dar.mdl"2100 },
 { 
"Dragon""models/AMXX-Hats/Dragon.mdl"2600 },
 { 
"Elf""models/AMXX-Hats/elf.mdl"3100 },
 { 
"Gallo""models/AMXX-Hats/Gallo.mdl"3700 },
 { 
"Gato con Botas""models/AMXX-Hats/gato_con_botas.mdl"4000 },
 { 
"Gato""models/AMXX-Hats/gato.mdl"4800 },
 { 
"Lobo""models/AMXX-Hats/Lobo.mdl"6000 },
 { 
"Rana Rene""models/AMXX-Hats/RanaRene.mdl"13000 },
 { 
"Panther""models/AMXX-Hats/panther.mdl"17000 },
 { 
"Panda""models/AMXX-Hats/panda.mdl"18000 },
 { 
"Tigre""models/AMXX-Hats/tigre.mdl"20000 }
}

new const 
BlockCommands[ ][ ] =
{
 
"chooseteam""jointeam""buy",
 
"buyammo1""buyammo2""buyequip",
 
"cl_autobuy""cl_rebuy""cl_setautobuy",
 
"cl_setrebuy""drop""radio1""radio2""radio3"
}

new const 
ClientCommand_Top[ ][ ] =
{
 
"say /top5""say top5""say top",
 
"say_team /top5""say_team top5""say_team top"
}

new const 
ClientCommand_Ranking[ ][ ] =
{
 
"say /rankstats""say rankstats""say stats",
 
"say_team /rankstats""say_team rankstats""say_team stats"
}

new const 
ClientCommand_Rank[ ][ ] =
{
 
"say /rank""say rank""say mystats",
 
"say_team /rank""say_team rank""say_team mystats"
}

new const 
ClientCommand_HourHappy[ ][ ] = 
{
 
"say /horahappy""say /vh""say /hh",
 
"say_team /horahappy""say_team /vh""say_team /hh"
}

new const 
ClientCommand_Guns[ ][ ] = 
{
 
"say /guns""say guns""say .guns",
 
"say_team /guns""say_team guns""say_team .guns"
}

new const 
ClientCommand_Cam[ ][ ] =
{
 
"say /cam""say /camera""say .cam",
 
"say_team /cam""say_team /camera""say_team .cam"
}

new const 
ClientCommand_Hat[ ][ ] =
{
 
"say /hats""say /hat""say .hats",
 
"say_team /hats""say_team /hat""say_team .hats",
}

new const 
g_Hours[ ] = { 202122230001020304050607 }

new 
g_CamposCAMPO_MAX ];

new 
g_vHats;
new 
g_iVault;
new 
g_iSortsT;
new 
g_CampoAvatar;
new 
g_vPurchasedHats;
new 
g_CampoOldConexion;

new 
SyncHUD;
new 
g_StatusIcon;
new 
g_ScreenFade;
new 
g_ScreenShake;
new 
cvar_player_protection;

new 
iEntMAX_PLAYERS ];
new 
g_iDiasMAX_PLAYERS ];
new 
g_RangoMAX_PLAYERS ];
new 
g_FragsMAX_PLAYERS ];
new 
g_iHorasMAX_PLAYERS ];
new 
g_KnifesMAX_PLAYERS ];
new 
g_MuertesMAX_PLAYERS ];
new 
g_iMinutosMAX_PLAYERS ];
new 
g_iSegundosMAX_PLAYERS ];
new 
g_HeadShotsMAX_PLAYERS ];

new 
g_fCameraMAX_PLAYERS ];
new 
g_iHatSelectedMAX_PLAYERS ];
new 
g_iWeaponSelectMAX_PLAYERS ];
new 
g_iItemSelectedMAX_PLAYERS ];
new 
g_iPurchasedHatsMAX_PLAYERS ];

new 
g_sFields][ MAX_HATS ];
new 
g_PlayerNameMAX_PLAYERS ][ 32 ];
new 
g_PlayerAvatarMAX_PLAYERS ][ 200 ];
new 
g_PlayerDateMAX_PLAYERS ][ CAMPO_MAX ];
new 
g_PlayerOldConexionMAX_PLAYERS ][ 30 ];

new 
bool:g_HappyTime;
new 
bool:g_HatMAX_PLAYERS ][ MAX_HATS ];
new 
bool:g_bEquipHatsMAX_PLAYERS ][ MAX_HATS ];

const 
ID_TASK 320323;

public 
plugin_init( )
{
 
register_pluging_szPluginNameg_szPluginVersiong_szPluginAuthor );

 
register_event"Damage""@Event_Damage""b" );
 
register_forwardFM_SetModel"@Forward_SetModel" );
 
register_event"HLTV" "@fRoundStart" "a""1=0""2=0" );
 
RegisterHamHam_Spawn"player""@ClientPlayer_Spawn"true );
 
RegisterHamHam_Killed"player""@ClientPlayer_Killed"true );

 
SyncHUD CreateHudSyncObj( );
 
g_StatusIcon get_user_msgid"StatusIcon" );
 
g_ScreenShake get_user_msgid"ScreenShake" );
 
g_ScreenFade get_user_msgid"ScreenFade" );

 for( new 
0sizeofClientCommand_Guns ); i++ )
 
register_clcmdClientCommand_Guns], "@ClientCommand_Weapons" );

 for( new 
0sizeofClientCommand_Top ); i++ )
 
register_clcmdClientCommand_Top], "@ClientCommand_TopRanks" );

 for( new 
0sizeofClientCommand_Ranking ); i++ )
 
register_clcmdClientCommand_Ranking], "@ClientCommand_Rankstats" );

 for( new 
0sizeofClientCommand_Rank ); i++ )
 
register_clcmdClientCommand_Rank], "@ClientCommand_ShowRank" );

 for( new 
0sizeofClientCommand_Ranking ); i++ )
 
register_clcmdClientCommand_HourHappy], "@ClientCommand_ShowHappy" );

 for( new 
0sizeofClientCommand_Cam ); i++ )
 
register_clcmdClientCommand_Cam], "@ClientCommand_Camera" );

 for( new 
0sizeofClientCommand_Hat ); i++ )
 
register_clcmdClientCommand_Hat], "@ClientCommand_ShowHats" );

 for( new 
0sizeofBlockCommands ); i++ )
 
register_clcmdBlockCommands], "@BlockCommand_Client" );

 
register_concmd"DonateFrags""@cmdFrags"ADMIN_CVAR"<Nombre> <Cantidad>" );
 
register_clcmd"nightvision""@ClientCommand_ShowMenuItems" );
 
register_clcmd"say""@HookSay" );
 
register_clcmd"say_team""@HookSayTeam" );

 
cvar_player_protection register_cvar"amxx_protection_player""3.0" );

 
register_messageg_StatusIcon"@Message_StatusIcon" );

 
g_iVault adv_vault_open"AMXX-Deathmatch"false );
 new 
szBuffer16 ];
 for( new 
0MAX_HATSi++ )
 {
 
formatexszBuffercharsmaxszBuffer ), "Hats-#%d"i+)
 
g_sFields][ ] = adv_vault_register_fieldg_iVaultszBuffer );

 
formatexszBuffercharsmaxszBuffer ), "EquipHats-#%d"i+)
 
g_sFields][ ] = adv_vault_register_fieldg_iVaultszBuffer );
 }
 
g_CamposCAMPO_FRAGS ] = adv_vault_register_fieldg_iVault"FRAGS" );
 
g_CamposCAMPO_HS ] = adv_vault_register_fieldg_iVault"HEADSHOT" );
 
g_CamposCAMPO_KNIFES ] = adv_vault_register_fieldg_iVault"KNIFES" );
 
g_CamposCAMPO_DEATHS ] = adv_vault_register_fieldg_iVault"MUERTES" );
 
g_CamposCAMPO_DIAS ] = adv_vault_register_fieldg_iVault"DIAS" );
 
g_CamposCAMPO_HORAS ] = adv_vault_register_fieldg_iVault"HORAS" );
 
g_CamposCAMPO_MINUTOS ] = adv_vault_register_fieldg_iVault"MINUTOS" );
 
g_CamposCAMPO_SEGUNDOS ] = adv_vault_register_fieldg_iVault"SEGUNDOS" );
 
g_CamposCAMPO_DAMAGE ] = adv_vault_register_fieldg_iVault"DAMAGE" );
 
g_CamposCAMPO_HITS ] = adv_vault_register_fieldg_iVault"HITS" );
 
g_CamposCAMPO_RANGO ] = adv_vault_register_fieldg_iVault"RANGO" );
 
g_vHats adv_vault_register_fieldg_iVault"SELECTED-HATS" );
 
g_vPurchasedHats adv_vault_register_fieldg_iVault"PURCHASE-HATS"DATATYPE_ARRAYMAX_HATS );
 
g_CampoAvatar adv_vault_register_fieldg_iVault"AVATAR"DATATYPE_STRINGcharsmaxg_PlayerAvatar[ ] ) );
 
g_CampoOldConexion adv_vault_register_fieldg_iVault"OLD"DATATYPE_STRINGcharsmaxg_PlayerOldConexion[ ] ) );
 
adv_vault_initg_iVault );

 
g_iSortsT adv_vault_sort_createg_iVaultORDER_DESC02000g_CamposCAMPO_FRAGS ], g_CamposCAMPO_HS ], g_CamposCAMPO_DEATHS ] );
}

public 
plugin_cfg( )
{
 if ( 
is_plugin_loaded"Pause Plugins" ) != -)
 
server_cmd "amx_pausecfg add ^"%s^""g_szPluginName );

 
set_cvar_string"mp_freezetime""0" );
 
set_cvar_string"mp_autoteambalance""0" );
 
set_cvar_string"mp_round_infinite""1" );
 
set_cvar_string"mp_freeforall""1" );
 
set_cvar_string"mp_auto_join_team""1" );
 
set_cvar_string"mp_forcerespawn""1" );
 
set_cvar_string"mp_roundrespawn_time""3" );
 
set_task0.1"@HappyHour" );
}

public 
plugin_precache( )
{
 for( new 
iNum 0iNum MAX_HATSiNum++ )
 
precache_modelg_sHatsiNum ][ HAT_MODELO ] );
}

public 
client_putinserveriId )
{
 
g_RangoiId ] = 0;
 
g_fCameraiId ] = false;
 
g_iWeaponSelectiId ] = 0;
 
g_iHatSelectediId ] = HAT_NONE;
 
g_iItemSelectediId ] = HAT_NONE;
 
g_iPurchasedHatsiId ] = 0;
 
g_PlayerAvatariId ] = "^0";
 
g_PlayerOldConexioniId ] = "^0";
 
g_iDiasiId ] = 0;
 
g_iHorasiId ] = 0;
 
g_iMinutosiId ] = 0;
 
g_iSegundosiId ] = 0;

 for( new 
0MAX_HATSi++ ) 
 {
 
g_HatiId ][ ] = false;
 
g_bEquipHatsiId ][ ] = false;
 }

 
set_task1.0"@HUD_HAPPY"iId+TASK_SUMAR__"b" );
 
set_task10.0"@ConnectMessage"iId__"a");
 
set_task1.0"@SumarSegundos"iId+TASK_SUMAR__"b" );
 
set_task0.5"@ClientCommand_Weapons"iId );
 
get_user_nameiIdg_PlayerNameiId ], charsmaxg_PlayerName[ ] ) );
 if( !
is_player_steamiId ) ) set_task1.0"@Steamload"iId );
 else 
formatexg_PlayerAvatariId ], charsmaxg_PlayerAvatar[ ] ), g_DefaultAvatar );
 @
fCargariId );
}

public @
ConnectMessage( const iId )
{
 if( 
is_user_connectediId ) ) 
 {
 
client_cmdiId"spk events/tutor_msg.wav" );
 
client_print_coloriIdprint_team_default"%s^3 %s^1 Ha sido creado por ^4%s"g_szChatPrefixg_szPluginNameg_szPluginAuthor );
 
console_printiId"%s %s Ha sido creado por %s"g_szConsolePrefixg_szPluginNameg_szPluginAuthor );
 }
}

public 
client_disconnectediId )
{
 
get_time"%d/%m/%Y - %H:%M:%S"g_PlayerOldConexioniId ], charsmaxg_PlayerOldConexion[ ] ) );
 @
fGuardariId );
}

public @
cmdFrags( const iId, const iLevel, const iCid 
{
 if( !
cmd_accessiIdiLeveliCid) ) 
 return 
PLUGIN_HANDLED;
                
 
new iName32 ]; 
 
read_argv1iNamecharsmaxiName ) );
 new 
iPlayer cmd_targetiIdiNameCMDTARGET_ALLOW_SELF );
 if( !
iPlayer )
 return 
PLUGIN_HANDLED;
        
 
new iNum10 ]; 
 
read_argv2iNumcharsmaxiNum ) );
 
g_FragsiPlayer ] += str_to_numiNum );
 new 
iNameUser32 ], iNameAdmin32 ];
 
get_user_nameiIdiNameAdmincharsmaxiNameAdmin ) );
 
get_user_nameiPlayeriNameUsercharsmaxiNameUser ) );
        
 client_print_color
00"%s ^3||^1ADMIN^3||^1:^4 %s^1 Le dio^3 %s^1 Frags a^4 %s^1."g_szChatPrefixiNameAdminiNumiNameUser );
 @
ClientRangoUPiPlayerstr_to_numiNum ) );
 return 
PLUGIN_HANDLED;
}

public @
ClientCommand_Camera( const iId )
{
 if( !
is_user_connectediId ) ) return PLUGIN_HANDLED;

 
g_fCameraiId ] =! g_fCameraiId ];

 
g_fCameraiId ] ? set_viewiIdCAMERA_3RDPERSON ) : set_viewiIdCAMERA_NONE );
 return 
PLUGIN_HANDLED;
}

public @
HookSay( const iId )
{
 static 
iSaid192 ];
 new 
szMessage191 ];
 
read_argsiSaidcharsmaxiSaid ) );
 
remove_quotesiSaid );
 
replace_alliSaidcharsmaxiSaid ), "%"" " );

 if ( !
ValidMessageiSaid) ) return PLUGIN_CONTINUE;

 new 
iName32 ];
 static 
iColor11 ], iAlive17 ], iTipo17 ];
 new 
iFlags get_user_flagsiId );
 
get_user_nameiIdiNamecharsmaxiName ) );
 
get_user_teamiIdiColorcharsmaxiColor ) );

 if ( 
iFlags ADMIN_LEVEL_B formatexiTipocharsmaxiTipo ), "DUEÑO" );
 else if ( 
iFlags ADMIN_LEVEL_C formatexiTipocharsmaxiTipo ), "VIP" );
 else if ( 
iFlags ADMIN_LEVEL_D formatexiTipocharsmaxiTipo ), "ADMIN" );

 if( 
cs_get_user_teamiId ) == CS_TEAM_SPECTATOR )
 {
 if( 
is_user_adminiId ) )
 
formatexszMessagecharsmaxszMessage ), "^4(^1SPEC^4) ^3||^1%s^3||^1%s^3||^3 %s^1 : %s"RangosCSGOg_RangoiId ] ][ NOMBRE ], iTipoiNameiSaid );
 else
 
formatexszMessagecharsmaxszMessage ), "^3(^1SPEC^3)^4 ||^1%s^4||^3 %s^1 : %s"RangosCSGOg_RangoiId ] ][ NOMBRE ], iNameiSaid );
 }
 else {
 if( 
is_user_adminiId ) )
 
formatexszMessagecharsmaxszMessage ), "%s ^3||^1%s^3||^1%s^3||^3 %s^1 : %s"iAlive "^1" "^3(^1MUERTO^3)"RangosCSGOg_RangoiId ] ][ NOMBRE ], iTipoiNameiSaid );
 else
 
formatexszMessagecharsmaxszMessage ), "%s ^4||^1%s^4||^3 %s^1 : %s"iAlive "^1" "^3(^1MUERTO^3)"RangosCSGOg_RangoiId ] ][ NOMBRE ], iNameiSaid );
 }

 static 
iiTeam11 ];
 for( 
1<= get_maxplayers( ); i++ )
 {
 if( !
is_user_connected) ) continue;

 if ( 
is_user_admin) || iAliveiId ] && iAlive] || !iAliveiId ] && !iAlive] )
 {
 
get_user_nameiIdiNamecharsmaxiName ) );
 
get_user_teamiiTeamcharsmaxiTeam ) );
 @
ChangeTeamInfoiiColor );
 @
WriteMessageiszMessage );
 @
ChangeTeamInfoiiTeam );
 }
 }

 return 
PLUGIN_HANDLED_MAIN;
}

public @
HookSayTeam( const iId )
{
 static 
iSaid192 ];
 new 
szMessage191 ]
 
read_argsiSaidcharsmaxiSaid ) );
 
remove_quotesiSaid );
 
replace_alliSaidcharsmaxiSaid ), "%"" " );

 if ( !
ValidMessageiSaid) ) return PLUGIN_CONTINUE;

 new 
iName32 ];
 
get_user_nameiIdiNamecharsmaxiName ) );
 new 
iFlags get_user_flagsiId );

 static 
iPlayerTeamiPlayerTeamName19 ], iTipo17 ];
 
iPlayerTeam get_user_teamiId );

 if ( 
iFlags ADMIN_LEVEL_B formatexiTipocharsmaxiTipo ), "DUEÑO" );
 else if ( 
iFlags ADMIN_LEVEL_C formatexiTipocharsmaxiTipo ), "VIP" );
 else if ( 
iFlags ADMIN_LEVEL_D formatexiTipocharsmaxiTipo ), "ADMIN" );

 switch ( 
iPlayerTeam )
 {
 case 
1copyiPlayerTeamName 6"TT" );
 case 
2copyiPlayerTeamName 8"CT" );
 default: 
copyiPlayerTeamName 11"SPEC" );
 }

 static 
iColor11 ], iAlive17 ];

 if( 
is_user_adminiId ) )
 
formatexszMessagecharsmaxszMessage ), "%s (^1%s^3) ^3||^1%s^3||^1%s^3||^3 %s^1 : %s"iAlive "^1" "^3(^1MUERTO^3)"iPlayerTeamNameRangosCSGOg_RangoiId ] ][ NOMBRE ], iTipoiNameiSaid );
 else
 
formatexszMessagecharsmaxszMessage ), "%s (^1%s^3) ^4||^1%s^4||^3 %s^1 : %s"iAlive "^1" "^3(^1MUERTO^3)"iPlayerTeamNameRangosCSGOg_RangoiId ] ][ NOMBRE ], iNameiSaid );

 static 
iiTeam11 ];
 for( 
1<= get_maxplayers( ); i++ )
 {
 if( !
is_user_connected) ) continue;

 if( 
get_user_team) == iPlayerTeam )
 {
 if ( 
is_user_admin) || iAliveiId ] && iAlive] || !iAliveiId ] && !iAlive] )
 {
 
get_user_nameiIdiNamecharsmaxiName ) );
 
get_user_teamiiTeamcharsmaxiTeam ) );
 @
ChangeTeamInfoiiColor );
 @
WriteMessageiszMessage );
 @
ChangeTeamInfoiiTeam );
 }
 }
 }

 return 
PLUGIN_HANDLED_MAIN;
}

@
ClientRangoUP( const iId, const iFrags )
{
 
g_FragsiId ] += iFrags;

 static 
iRankiRank g_FragsiId ];
 while( 
g_FragsiId ] >= RangosCSGOg_RangoiId ] ][ FRAGS ] && g_RangoiId ] < charsmaxRangosCSGO ) )
 ++
g_RangoiId ];

 if( 
iRank g_RangoiId ] )
 {
 
client_print_coloriIdprint_team_default"%s Felicidades ^3subiste^1 al rango: ^4%s^1."g_szChatPrefixRangosCSGOg_RangoiId ] ][ NOMBRE ] );
 
message_beginMSG_ONEg_ScreenShake, { 0,0,}, iId );
 
write_short1<<13 );
 
write_short1<<13 );
 
write_short1<<13 );
 
message_end( );
 
message_beginMSG_ONEg_ScreenFade, { 0,0,}, iId );
 
write_short1<<10 );
 
write_short1<<10 );
 
write_short0x0000 );
 
write_byterandom_num10255 ) );
 
write_byterandom_num10255 ) );
 
write_byterandom_num10255 ) );
 
write_byte75 );
 
message_end( );
 
client_cmdiId"spk ^"%s^""g_szSoundUpdate );
 }
}

public @
Event_Damage( const iId )
{
 new 
iAttacker get_user_attackeriId );
 new 
iDamage read_data);

 if( !
is_user_aliveiAttacker ) || !( <= iAttacker <= get_maxplayers( ) ) || iAttacker == iId || iDamage <= )
 return

 
g_PlayerDateiAttacker ][ CAMPO_DAMAGE ] += iDamage
 g_PlayerDate
iAttacker ][ CAMPO_HITS ] += 1
 
@fGuardariId );
}

public @
fRoundStart( )
{
 for( new 
iId 1iId <= get_maxplayers( ); ++iId )
 {
 if( 
is_user_connectediId ) )
 @
fGuardariId );
 }
 
 
adv_vault_sort_updateg_iVaultg_iSortsT );
}

public @
Steamload( const iId )
{
 
get_steamdataiIdg_PlayerAvatariId ], charsmaxg_PlayerAvatar[ ] ), STD_AVATAR_FULL );
 @
fCargariId );
}

public @
SumarSegundostaskid )
{
 static 
iId;
 
iId SUMAR_ID;
    
 
if( g_iSegundosiId ] >= 60 )
 {
 
g_iSegundosiId ] = 0
 g_iMinutos
iId ]++
 }
 else 
g_iSegundosiId ]++
 
 if( 
g_iMinutosiId ] >= 60 )
 {
 
g_iMinutosiId ] = 0;
 
g_iHorasiId ]++
 }

 if( 
g_iHorasiId ] >= 24 )
 {
 
g_iHorasiId ] = 0;
 
g_iDiasiId ]++
 }
}

public @
HUD_HAPPYtaskid )

 new 
iId SUMAR_ID;

 
set_dhudmessagerandom_num10255 ), random_num10255 ), random_num10255 ), 0.00.1516.01.0 );

 if( 
g_RangoiId ] == charsmaxRangosCSGO ) ) 
 {
 
ShowSyncHudMsgSUMAR_IDSyncHUD
 
"=======================^n\
 Frags: %d^n\
 Rango: %s^n\
 Hora Happy: %sACTIVADA\
 ======================="

 
g_FragsiId ], RangosCSGOg_RangoiId ] ][ NOMBRE ],
 
g_HappyTime == true "" "DES" );
 }
 else {
 
ShowSyncHudMsgSUMAR_IDSyncHUD
 
"=======================^n\
 Frags: %d^n\
 Rango: %s^n\
 Sig. Rango: %s^n\
 Hora Happy: %sACTIVADA^n\
 ======================="
,
 
g_FragsiId ], RangosCSGOg_RangoiId ] ][ NOMBRE ],
 
RangosCSGOg_RangoiId ]+][ NOMBRE ], g_HappyTime == true "" "DES" );
 }
}

public @
ClientPlayer_Killed( const iAttacker, const iVictim, const iSg )
{
 if( !
is_user_connectediVictim ) || !is_user_connectediAttacker ) || !iAttacker || iAttacker == iVictim )
 return 
HAM_IGNORED;

 @
ClientRangoUPiAttacker);

 
g_FragsiAttacker ]++
 
g_MuertesiVictim ]++

 if( 
get_user_weaponiAttacker ) == CSW_KNIFE )
 {
 
g_KnifesiAttacker ]++
 @
ClientRangoUPiAttacker);
 }

 if( 
get_pdata_intiVictim75) == HIT_HEAD 
 {
 
g_HeadShotsiAttacker ]++
 @
ClientRangoUPiAttacker);
 }

 if( 
is_user_adminiAttacker ) )
 {
 if( 
g_HappyTime )
 {
 
g_FragsiAttacker ] += 2
 
@ClientRangoUPiAttacker);
 }
 else 
 {
 
g_FragsiAttacker ] += 2
 
@ClientRangoUPiAttacker);
 }
 }
 else
 {
 if( 
g_HappyTime )
 {
 
g_FragsiAttacker ] += 2
 
@ClientRangoUPiAttacker);
 }
 else
 {
 
g_FragsiAttacker ]++
 }
 }

 
set_task0.5"@Ham_SpawnPlayer"iVictim );
 
client_cmdiAttacker"spk ^"%s^""g_szPlayerKilledSound );

 return 
HAM_IGNORED;
}

public @
Forward_SetModel( const iEntity, const szModel[ ] )
{
 static 
szClassName32 ];
 
peviEntitypev_classnameszClassNamecharsmaxszClassName ) );

 if( 
equalszClassName"weaponbox" ) ) {

 
set_peviEntitypev_nextthinkget_gametime( ) + 0.01 );
 return 
FMRES_SUPERCEDE;
 }

 return 
FMRES_IGNORED;
}

public @
ClientCommand_Weapons( const iId )
{
 if( !
is_user_connectediId ) || !is_user_aliveiId ) ) return PLUGIN_HANDLED;

 new 
szBuffer70 ];
 
formatexszBuffercharsmaxszBuffer ), "\d%s^n\r[\wAMXX\d-\wES\r]\y Armas Primarias.\d"g_szContactUrl );
 new 
iMenu menu_createszBuffer"@Handled_WeaponsPrimary" );

 for( new 
0sizeofWeapons_Primary ); i++ )
 {
 
formatexszBuffercharsmaxszBuffer ), "%s"Weapons_Primary][ WPN_NAME ] );
 
menu_additemiMenuszBuffer );
 }

 
menu_setpropiMenuMPROP_NEXTNAME"\wSiguiente." );
 
menu_setpropiMenuMPROP_BACKNAME"\wAtrás." );
 
menu_setpropiMenuMPROP_EXITNAME"\wSalir." );
 
menu_displayiIdiMenu );

 return 
PLUGIN_HANDLED;
}

public @
Handled_WeaponsPrimary( const iId, const iMenu, const iItem )
{
 if( 
iItem == MENU_EXIT )
 {
 
menu_destroyiMenu )
 return 
PLUGIN_HANDLED
 
}

 
g_iWeaponSelectiId ] = iItem;
 
StripWeaponsiIdPrimary );
 
give_itemiId"weapon_knife" );
 
give_itemiIdWeapons_Primaryg_iWeaponSelectiId ] ][ WPN_WEAPONENT ] );
 
cs_set_user_bpammoiIdWeapons_Primaryg_iWeaponSelectiId ] ][ WPN_CSW ], Weapons_Primaryg_iWeaponSelectiId ] ][ WPN_BULLETS ] );
 
client_print_coloriIdprint_team_default"%s Has elegido como ^3primaria^1 la ^4%s^1."g_szChatPrefixWeapons_Primaryg_iWeaponSelectiId ] ][ WPN_NAME ] );
 
client_cmdiId"spk ^"%s^""g_szItemMenuSound );
 @
ClientCommand_WeaponsSecondaryiId );

 return 
PLUGIN_HANDLED
}

public @
ClientCommand_WeaponsSecondary( const iId )
{
 if( !
is_user_connectediId ) || !is_user_aliveiId ) ) return PLUGIN_HANDLED;
 
 new 
szBuffer70 ];
 
formatexszBuffercharsmaxszBuffer ), "\d%s^n\r[\wAMXX\d-\wES\r]\y Armas Secundarias.\d"g_szContactUrl );
 new 
iMenu menu_createszBuffer"@Handled_WeaponsSecondary" );

 for( new 
0sizeofWeapons_Secondary ); i++ )
 {
 
formatexszBuffercharsmaxszBuffer ), "%s"Weapons_Secondary][ WPN_NAME ] );
 
menu_additemiMenuszBuffer );
 }

 
menu_setpropiMenuMPROP_NEXTNAME"\wSiguiente." );
 
menu_setpropiMenuMPROP_BACKNAME"\wAtrás." );
 
menu_setpropiMenuMPROP_EXITNAME"\wSalir." );
 
menu_displayiIdiMenu );

 return 
PLUGIN_HANDLED;
}

public @
Handled_WeaponsSecondary( const iId, const iMenu, const iItem )
{
 if( 
iItem == MENU_EXIT )
 {
 
menu_destroyiMenu )
 return 
PLUGIN_HANDLED
 
}

 
g_iWeaponSelectiId ] = iItem;
 
StripWeaponsiIdSecondary );
 
give_itemiId"weapon_hegrenade" );
 
give_itemiIdWeapons_Secondaryg_iWeaponSelectiId ] ][ WPN_WEAPONENT ] );
 
cs_set_user_bpammoiIdWeapons_Secondaryg_iWeaponSelectiId ] ][ WPN_CSW ], Weapons_Secondaryg_iWeaponSelectiId ] ][ WPN_BULLETS ] );
 
client_print_coloriIdprint_team_default"%s Has elegido como ^3secundaria^1 la ^4%s^1."g_szChatPrefixWeapons_Secondaryg_iWeaponSelectiId ] ][ WPN_NAME ] );
 
client_cmdiId"spk ^"%s^""g_szItemMenuSound );

 return 
PLUGIN_HANDLED
}

public @
ClientCommand_ShowHats( const iId )
{
 if( !
is_user_connectediId ) || !is_user_aliveiId ) ) return PLUGIN_HANDLED;

 new 
szBuffer130 ];
 
formatexszBuffercharsmaxszBuffer ), "\d%s^n\r[\wAMXX\d-\wES\r]\y Menú de Sombreros.^n\wAdquiridas: \y%d/%d^n\wPUNTOS: \y%d\d"g_szContactUrlg_iPurchasedHatsiId ], MAX_HATSg_FragsiId ] );
 new 
iMenu menu_createszBuffer"@Handled_ShowHats" );

 for( new 
iNum 0iNum MAX_HATSiNum++ )
 {
 if( 
g_bEquipHatsiId ][ iNum ] )
 
formatexszBuffercharsmaxszBuffer ), "\d%s \r[EQUIPADA]"g_sHatsiNum ][ HAT_NOMBRE ] );
 else if( 
g_HatiId ][ iNum ] )
 
formatexszBuffercharsmaxszBuffer ), "\d%s \r[ADQUIRIDA]"g_sHatsiNum ][ HAT_NOMBRE ] );
 else if( !
g_HatiId ][ iNum ] )
 
formatexszBuffercharsmaxszBuffer ), "\w%s \r[COMPRAR]"g_sHatsiNum ][ HAT_NOMBRE ] );
 else
 
formatexszBuffercharsmaxszBuffer ), "%s%s %s[PUNTOS: %d]"g_FragsiId ] < g_sHatsiNum ][ HAT_COST ] ? "\d" "\w"g_sHatsiNum ][ HAT_NOMBRE ] );
 
 
menu_additemiMenuszBuffer );
 }

 
menu_setpropiMenuMPROP_NEXTNAME"\wSiguiente." );
 
menu_setpropiMenuMPROP_BACKNAME"\wAtrás." );
 
menu_setpropiMenuMPROP_EXITNAME"\wSalir." );
 
menu_displayiIdiMenu );
 return 
PLUGIN_HANDLED;
}

public @
Handled_ShowHats( const iId, const iMenu, const iItem )
{
 if( 
iItem == MENU_EXIT )
 {
 
menu_destroyiMenu );
 return 
PLUGIN_HANDLED;
 }

 
client_cmdiId"spk ^"%s^""g_szItemMenuSound );
 
g_iItemSelectediId ] = iItem;
 
g_iHatSelectediId ] = iItem;
 @
ShowMenu_PreviewHatsiId );
 
menu_destroyiMenu );
 return 
PLUGIN_HANDLED;
}

public @
ShowMenu_PreviewHats( const iId )
{
 new 
szBuffer200 ];

 if( 
g_bEquipHatsiId ][ g_iItemSelectediId ] ] )
 
formatexszBuffercharsmaxszBuffer ), "\d%s^n\yVISTA PREVIA DE:\w %s^n\yESTADO: \r[EQUIPADA]"g_szContactUrlg_sHatsg_iItemSelectediId ] ][ HAT_NOMBRE ] );
 else if( 
g_HatiId ][ g_iItemSelectediId ] ] )
 
formatexszBuffercharsmaxszBuffer ), "\d%s^n\yVISTA PREVIA DE:\w %s^n\yESTADO: \r[ADQUIRIDA]"g_szContactUrlg_sHatsg_iItemSelectediId ] ][ HAT_NOMBRE ] );
 else
 
formatexszBuffercharsmaxszBuffer ), "\d%s^n\yVISTA PREVIA DE:\w %s^n\yPRECIO: \w%d\r$^n\yPUNTOS: \w%d"g_szContactUrlg_sHatsg_iItemSelectediId ] ][ HAT_NOMBRE ], g_sHatsg_iItemSelectediId ] ][ HAT_COST ], g_FragsiId ] );

 new 
iMenu menu_createszBuffer"@Handled_ViewHats" );

 if( 
g_bEquipHatsiId ][ g_iItemSelectediId ] ] )
 
formatexszBuffercharsmaxszBuffer ), "Desequipar" );
 else if( 
g_HatiId ][ g_iItemSelectediId ] ] )
 
formatexszBuffercharsmaxszBuffer ), "Equipar" );
 else
 
formatexszBuffercharsmaxszBuffer ), "Comprar" );
 
menu_additemiMenuszBuffer );

 
menu_setpropiMenuMPROP_EXITNAME"\wAtrás." );
 
menu_displayiIdiMenu );
}

public @
Handled_ViewHats( const iId, const iMenu, const iItem )
{
 if( 
iItem == MENU_EXIT )
 {
 @
ClientCommand_ShowHatsiId );
 return 
PLUGIN_HANDLED;
 }

 
g_iItemSelectediId ] = iItem;
 
g_iHatSelectediId ] = iItem;

 switch( 
iItem 
 {
 case 
0:
 {
 if( 
g_bEquipHatsiId ][ g_iItemSelectediId ] ] ) 
 {
 
g_bEquipHatsiId ][ g_iItemSelectediId ] ] = false;
 
g_iHatSelectediId ] = HAT_NONE;
 
client_print_coloriIdprint_team_default"%s Desequipaste el hat: ^3%s^1."g_szChatPrefixg_sHatsg_iItemSelectediId ] ][ HAT_NOMBRE ] );
 return 
PLUGIN_HANDLED;
            }
 else if( 
g_HatiId ][ g_iHatSelectediId ] ] ) 
 {
 for( new 
0MAX_HATSi++ )
 
g_bEquipHatsiId ][ ] = false;
 
 
g_iHatSelectediId ] = g_iItemSelectediId ];
 
g_bEquipHatsiId ][ g_iItemSelectediId ] ] = true;
 
client_print_coloriIdprint_team_default"%s Equipaste el Sombrero: ^3%s^1."g_szChatPrefixg_sHatsg_iItemSelectediId ] ][ HAT_NOMBRE ] );
 return 
PLUGIN_HANDLED;
            }
 else 
 {
 
 if( 
g_FragsiId ] < g_sHatsg_iItemSelectediId ] ][ HAT_COST ] ) 
 {
 @
ShowMenu_PreviewHatsiId );
 
client_print_coloriIdprint_team_default"%s Te faltan ^3%d^1 para comprar el hat: ^4%s^1."g_szChatPrefixg_sHatsg_iItemSelectediId ] ][ HAT_COST ] - g_FragsiId ], g_sHatsg_iItemSelectediId ] ][ HAT_NOMBRE ] );
 return 
PLUGIN_HANDLED;
                }

 
iEntiId ] = create_entity"info_target" );
 
entity_set_intiEntiId ], EV_INT_movetypeMOVETYPE_FOLLOW );
 
entity_set_edictiEntiId ], EV_ENT_aimentiId );
 
entity_set_intiEntiId ], EV_INT_rendermodekRenderNormal );
 
entity_set_modeliEntiId ], g_sHatsg_iItemSelectediId ] ][ HAT_MODELO ] );
 
g_FragsiId ] -= g_sHatsg_iItemSelectediId ] ][ HAT_COST ];
 
g_sHatsiId ][ g_iItemSelectediId ] ] = true;
 @
ShowMenu_PreviewHatsiId );
 
client_print_coloriIdprint_team_default"%s Compraste el hat: ^3%s^1."g_szChatPrefixg_sHatsg_iItemSelectediId ] ][ HAT_NOMBRE ] );
 
g_iPurchasedHatsiId ]++;
 }
  
 
}
 }

 
client_cmdiId"spk ^"%s^""g_szItemMenuSound );
 
menu_destroyiMenu );
 return 
PLUGIN_HANDLED;
}

public @
ClientCommand_ShowMenuItemsiId )
{
 new 
szBuffer100 ];
 
formatexszBuffercharsmaxszBuffer ), "\d%s^n\r[\wAMXX\d-\wES\r]\y Menú de Item`s."g_szContactUrl );
 new 
iMenu menu_createszBuffer"@Handled_ShowMenu" );

 
menu_additemiMenu"Ver \yTop." );
 
menu_additemiMenu"Ver \yRanking." );
 
menu_additemiMenu"Elegir \yArmas." );
 
menu_additemiMenu"Comprar \yHats." );
 
menu_additemiMenu"Cambiar de \yCamara." );
 
menu_additemiMenu"Hora \yHappy." );
 
menu_additemiMenu"Guardar \yDatos." );
 
menu_additemiMenu"Cargar \yDatos." );
 if( 
is_user_adminiId ) )
 
menu_additemiMenu"Panel \r[ADMIN]" );
 else
 
menu_additemiMenu"\dPanel \r[ADMIN]" );

 
menu_setpropiMenuMPROP_PERPAGE);
 
menu_setpropiMenuMPROP_EXITMEXIT_FORCE );
 
menu_setpropiMenuMPROP_EXITNAME"\wSalir." );
 
menu_displayiIdiMenu);
}

public @
Handled_ShowMenuiIdiMenuiItem )
{
 if( 
iItem == MENU_EXIT )
 {
 
menu_destroyiMenu );
 return 
PLUGIN_HANDLED;
 }

 switch( 
iItem )
 {
 case 
0: @ClientCommand_TopRanksiId );
 case 
1: @ClientCommand_RankstatsiId );
 case 
2: @ClientCommand_WeaponsiId );
 case 
3: @ClientCommand_ShowHatsiId );
 case 
4: @ClientCommand_CameraiId );
 case 
5: @ClientCommand_ShowHappyiId );
 case 
6:
 {
 @
fGuardariId );
 
client_print_coloriIdprint_team_default"%s Datos guardados ^3correctamente^1."g_szChatPrefix );
 }
 case 
7:
 {
 @
fCargariId );
 
client_print_coloriIdprint_team_default"%s Datos cargados ^3correctamente^1."g_szChatPrefix );
 }
 case 
8client_cmdiId"amxmodmenu" );
 }

 
client_cmdiId"spk ^"%s^""g_szItemMenuSound );
 return 
PLUGIN_HANDLED;
}

public @
ClientPlayer_Spawn( const iId )
{
 if( 
is_user_aliveiId ) )
 {
 if( 
g_iHatSelectediId ] == HAT_NONE )
 return 
PLUGIN_HANDLED;

 if( 
is_valid_entiEntiId ] ) )
 {
 
remove_entityiEntiId ] );
 
iEntiId ] = 0;
 }

 
iEntiId ] = create_entity"info_target" );

 if( !
is_valid_entiEntiId ] ) ) return PLUGIN_HANDLED;

 
entity_set_intiEntiId ], EV_INT_movetypeMOVETYPE_FOLLOW );
 
entity_set_edictiEntiId ], EV_ENT_aimentiId );
 
entity_set_intiEntiId ], EV_INT_rendermodekRenderNormal );
 
entity_set_modeliEntiId ], g_sHatsg_iHatSelectediId ] ][ HAT_MODELO ] );
 }

 
set_task0.5"@ClientCommand_Weapons"iId );

 return 
PLUGIN_HANDLED;
}

public @
ClientCommand_TopRanks( const iId )
{
 new 
iMotdMAX_MOTD_LENGTH ], iLeniKeyindexiName32 ], iAvatarFull199 ], iKillsiHsiDeaths;
 
get_user_nameiIdiNamecharsmaxiName ) );
 new 
iToploop minadv_vault_sort_numresultg_iVaultg_iSortsT ), );

 
iKills adv_vault_get_fieldg_iVaultg_CamposCAMPO_FRAGS ] );
 
iDeaths adv_vault_get_fieldg_iVaultg_CamposCAMPO_DEATHS ] );
 
iHs adv_vault_get_fieldg_iVaultg_CamposCAMPO_HS ] );

 
iLen += formatexiMotdiLen ], sizeof iMotd-iLen
 
"<meta charset=utf-8><style>\
 th{background:#0048FF;color:#d4d4d4;padding:6px}td{color:white;text-align:center}tr:nth-child(even){background:#272727}</style>\
 <body style=^"
background:#202020;font-family:Arial^">\
 
<h1 style=^"color:#d4d4d4;text-align:center^">%TOP 5</h1>\
 <
table width=100%% style=^"border-collapse:collapse;border:1px solid #0068ff^">\
 <
tr align=center>\
 <
th width=1%%>#\
 
<th width=1%%>FOTO\
 <
th width=5%%>NOMBRE\
 <
th width=5%%>FRAGS\
 <
th width=5%%>HEADSHOT\
 <
th width=5%%>MUERTES", g_szConsolePrefix );

 for( new position = 1; position <= iToploop; position++ )
 {
 iKeyindex = adv_vault_sort_position( g_iVault, g_iSortsT, position );

 if( !adv_vault_get_prepare( g_iVault, iKeyindex ) )
 continue;
        
 adv_vault_get_field( g_iVault, g_CampoAvatar, iAvatarFull, 199 );
 adv_vault_get_keyname( g_iVault, iKeyindex, iName, 31 );

 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<tr align=center>" );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<td>%d", position );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<td><img src=%s style=^"width:30px;border:1px solid #0048FF^">", iAvatarFull );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<td>%s", iName );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<td>%d", iKills );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<td>%d", iHs );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<td>%d", iDeaths );
 }

 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
</table><h6 style=^"color:#d4d4d4;text-align:center^">HECHO POR: <span style=color:#0048ff>%s</body>", g_szPluginAuthor );
 
show_motdiIdiMotdfmt"%s - Top 5 Deathmatch."g_szConsolePrefix ) );
}

public @
ClientCommand_Rankstats( const iId )
{
 new 
iMotdMAX_MOTD_LENGTH ], iLeniName32 ], iAvatarFull199 ], szOldConexion30 ], qDiasqHorasqMinutosiDmgiHitsiKillsiHsiKniDeaths;
 new 
iRankposition adv_vault_sort_keyg_iVaultg_iSortsT0g_PlayerNameiId ] );
 
get_user_nameiIdiNamecharsmaxiName ) );

 
qDias adv_vault_get_fieldg_iVaultg_CamposCAMPO_DIAS ] );
 
qHoras adv_vault_get_fieldg_iVaultg_CamposCAMPO_HORAS ] );
 
qMinutos adv_vault_get_fieldg_iVaultg_CamposCAMPO_MINUTOS ] );
 
iDmg adv_vault_get_fieldg_iVaultg_CamposCAMPO_DAMAGE ] );
 
iHits adv_vault_get_fieldg_iVaultg_CamposCAMPO_HITS ] );
 
iKills adv_vault_get_fieldg_iVaultg_CamposCAMPO_FRAGS ] );
 
iDeaths adv_vault_get_fieldg_iVaultg_CamposCAMPO_DEATHS ] );
 
iHs adv_vault_get_fieldg_iVaultg_CamposCAMPO_HS ] );
 
iKn adv_vault_get_fieldg_iVaultg_CamposCAMPO_KNIFES ] );
 
adv_vault_get_fieldg_iVaultg_CampoAvatariAvatarFull199 );
 
adv_vault_get_fieldg_iVaultg_CampoOldConexionszOldConexion29 );

 
iLen += formatexiMotdiLen ], sizeof iMotd-iLen"<meta charset=utf-8><style>#bg{height:366px;border:1px solid #0048FF}\
 h1{font-size:15px;background:#0048FF}h2{text-align:center;font-size:20px}span{color:#0048FF}\
 th{background:#0048FF;font-size:12px}td{border:1px solid #0048FF;font-size:11px}table{text-align:center;border:1px solid #0048FF}img{width:130px;border-radius:50%%;margin-top:5px}#br,#bl{width:38%%;text-align:center}\
 #bl{float:left;margin-left:20px}#br{float:right;margin-right:20px}</style><body style=^"
background:#202020;font-family:arial;color:#d4d4d4^">\
 
<div id=bg><h2>[<span>AMXX</span>] - RANKSTATS</h1>\
 <
h2>Tu ranking es <span>%d</spande <span>%d</span></h3>\
 <
div id=bl><h1>PERFIL</h1><img src=%s><h2>Nick: <span>%s</div>", iRankposition, adv_vault_sort_numresult( g_iVault, g_iSortsT ), iAvatarFull, iName );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<div id=br>\
 <
h1>ESTADÍSTICAS</h1><br>\
 <
table width=100%%>\
 <
tr align=center>\
 <
th width=30%%>FRAGS\
 <
th>HEADSHOTS\
 <
th>MUERTES" );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<tr align=center>" );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<td>%d", iKills );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<td>%d", iHs );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<td>%d", iDeaths );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<tr align=center>" );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<th width=30%%>DIAS\
 <
th width=40%%>HORAS\
 <
th>MINUTOS" );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<tr align=center>" );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<td>%d", qDias );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<td>%d", qHoras );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<td>%d", qMinutos );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<tr align=center>" );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<th>DAMAGE\
 <
th>KNIFES\
 <
th>HITS" );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<tr align=center>" );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<td>%d", iDmg );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<td>%d", iKn );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<td>%d", iHits );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
</table><table width=100%%>" );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<tr align=center>\
 <
th>ÚLTIMA CONEXIÓN" );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<tr align=center>" );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
<td>%s", szOldConexion );
 iLen += formatex( iMotd[ iLen ], sizeof iMotd-iLen, "
</table></div></body>" );
 show_motd( iId, iMotd, fmt( "
AMXX-RANK ^"%s^"", iName ) );
}

public @ClientCommand_ShowRank( const iId )
{
 new iRankposition = adv_vault_sort_key( g_iVault, g_iSortsT, 0, g_PlayerName[ iId ] );
 new iKills = adv_vault_get_field( g_iVault, g_Campos[ CAMPO_FRAGS ] );

 if( !iRankposition ) client_print_color( iId, print_team_default, "
%s No estas ^3rankeando^1 en el ^4Top^1.", g_szChatPrefix );
 else client_print_color( iId, print_team_default, "
%s Tu rank es ^3%d^1 de ^4%d^1 con ^3%d^1 Matanza(^4s^1)", g_szChatPrefix, iRankposition, adv_vault_sort_numresult( g_iVault, g_iSortsT ), iKills );

 client_cmd( iId, "
spk ^"%s^"", g_szItemMenuSound );

 return PLUGIN_HANDLED
}

public @Ham_SpawnPlayer( const iId )
{
 if( !is_user_connected( iId ) ) return PLUGIN_HANDLED;

 ExecuteHamB( Ham_CS_RoundRespawn, iId );

 @ClientCommand_Weapons( iId );
 set_user_godmode( iId, 1 );
 give_item( iId, Weapons_Primary[ g_iItemSelected[ iId ] ][ WPN_WEAPONENT ] );
 give_item( iId, Weapons_Secondary[ g_iItemSelected[ iId ] ][ WPN_WEAPONENT ] );
 cs_set_user_bpammo( iId, Weapons_Primary[ g_iItemSelected[ iId ] ][ WPN_CSW ], Weapons_Secondary[ g_iItemSelected[ iId ] ][ WPN_BULLETS ] );
 cs_set_user_bpammo( iId, Weapons_Secondary[ g_iItemSelected[ iId ] ][ WPN_CSW ], Weapons_Secondary[ g_iItemSelected[ iId ] ][ WPN_BULLETS ] );

 if( cs_get_user_team( iId ) == CS_TEAM_CT )
 set_user_rendering( iId, kRenderFxGlowShell, 0, 0, 255, kRenderNormal, 25 );
 if( cs_get_user_team( iId ) == CS_TEAM_T )
 set_user_rendering( iId, kRenderFxGlowShell, 255, 0, 0, kRenderNormal, 25 );

 set_task( get_pcvar_float( cvar_player_protection ), "
@RemoveProtection", iId );
 @fCargar( iId );

 return PLUGIN_HANDLED;
}

public @RemoveProtection( const iId )
{
 if( !is_user_connected( iId ) ) return PLUGIN_HANDLED;

 set_user_rendering( iId );
 set_user_godmode( iId );

 return PLUGIN_HANDLED;
}

public @Message_StatusIcon( const iMsg_id, const iMsg_dest, const iId )
{
 static szIcon[ 8 ];
 get_msg_arg_string( 2, szIcon, charsmax( szIcon ) );
 
 if( equal( szIcon, "
buyzone" ) && get_msg_arg_int( 1 ) )
    {
 set_pdata_int( iId, 235, get_pdata_int( iId, 235 ) & ~(1<<0) );
 return PLUGIN_HANDLED;
 }
 
 return PLUGIN_CONTINUE;
}

public @BlockCommand_Client( const iId ) return PLUGIN_HANDLED;

public @ClientCommand_ShowHappy( const iId )
{
 client_print_color( iId, print_team_default, "
%s La ^3Hora Happy^1 está: ^3%sACTIVADA^1.", g_szChatPrefix, g_HappyTime == true ? "" : "DES" );
 client_print_color( iId, print_team_default, "
%s La ^3Hora Happy^1 sirve para que tu ^4Frags^1 sean ^3dobles^1.", g_szChatPrefix );
 console_print( iId, "
%s La Hora Happy está: %sACTIVADA.", g_szConsolePrefix, g_HappyTime == true ? "" : "DES" );
 console_print( iId, "
%s La Hora Happy sirve para que tu Frags sean dobles.", g_szConsolePrefix );
}

public @HappyHour( )
{
 new iTime_data[ 12 ], iCurrent_date[ 4 ]
 get_time( "
%H", iTime_data, 12 )
 get_time( "
%A", iCurrent_date, charsmax( iCurrent_date ) )

 new iTime = str_to_num( iTime_data )
 
 for( new i = 0; i <= sizeof( g_Hours )- 1; i++ )
 { 
 if( iTime != g_Hours[ i ] ) continue;
 
 g_HappyTime = true
 
 break;
 }

 if( equal( iCurrent_date, "
Fri" ) )
 {
 g_HappyTime = true
 }
}

@fGuardar( const iId )
{
 if( !is_user_connected( iId ) ) 
 return PLUGIN_HANDLED;
 
 adv_vault_set_start( g_iVault );

 for( new i = 0; i < MAX_HATS; i++ )
 {
 adv_vault_get_field( g_iVault, g_sFields[ 0 ][ i ], g_Hat[ iId ][ i ] );
 adv_vault_get_field( g_iVault, g_sFields[ 1 ][ i ], g_bEquipHats[ iId ][ i ] );
 }

 adv_vault_set_field( g_iVault, g_Campos[ CAMPO_FRAGS ], g_Frags[ iId ] ); 
 adv_vault_set_field( g_iVault, g_Campos[ CAMPO_DEATHS ], g_Muertes[ iId ] );
 adv_vault_set_field( g_iVault, g_Campos[ CAMPO_HS ], g_HeadShots[ iId ] );
 adv_vault_set_field( g_iVault, g_Campos[ CAMPO_KNIFES ], g_Knifes[ iId ] );
 adv_vault_set_field( g_iVault, g_Campos[ CAMPO_DIAS ], g_iDias[ iId ] );
 adv_vault_set_field( g_iVault, g_Campos[ CAMPO_HORAS ], g_iHoras[ iId ] );
 adv_vault_set_field( g_iVault, g_Campos[ CAMPO_MINUTOS ], g_iMinutos[ iId ] );
 adv_vault_set_field( g_iVault, g_Campos[ CAMPO_SEGUNDOS ], g_iSegundos[ iId ] );
 adv_vault_set_field( g_iVault, g_Campos[ CAMPO_RANGO ], g_Rango[ iId ] );
 adv_vault_set_field( g_iVault, g_Campos[ CAMPO_DAMAGE ], g_PlayerDate[ iId ][ CAMPO_DAMAGE ] );
 adv_vault_set_field( g_iVault, g_Campos[ CAMPO_HITS ], g_PlayerDate[ iId ][ CAMPO_HITS ] );
 adv_vault_set_field( g_iVault, g_vPurchasedHats, g_iPurchasedHats[ iId ] );
 adv_vault_set_field( g_iVault, g_vHats, g_iHatSelected[ iId ] );
 adv_vault_set_field( g_iVault, g_CampoAvatar, g_PlayerAvatar[ iId ] );
 adv_vault_set_field( g_iVault, g_CampoOldConexion, g_PlayerOldConexion[ iId ] );
 adv_vault_set_end( g_iVault, 0, g_PlayerName[ iId ] );
 adv_vault_sort_update( g_iVault, g_iSortsT );
 
 return PLUGIN_HANDLED;
}

@fCargar( const iId )

 if( !adv_vault_get_prepare( g_iVault, _, g_PlayerName[ iId ] ) )
 return;

 for( new i = 0; i < MAX_HATS; i++ )
 {
 g_Hat[ iId ][ i ] = bool:adv_vault_get_field( g_iVault, g_sFields[ 0 ][ i ] );
 g_bEquipHats[ iId ][ i ] = bool:adv_vault_get_field( g_iVault, g_sFields[ 1 ][ i ] );
 }

 g_Frags[ iId ] = adv_vault_get_field( g_iVault, g_Campos[ CAMPO_FRAGS ] );
 g_Muertes[ iId ] = adv_vault_get_field( g_iVault, g_Campos[ CAMPO_DEATHS ] );
 g_HeadShots[ iId ] = adv_vault_get_field( g_iVault, g_Campos[ CAMPO_HS ] );
 g_Knifes[ iId ] = adv_vault_get_field( g_iVault, g_Campos[ CAMPO_KNIFES ] );
 g_Rango[ iId ] = adv_vault_get_field( g_iVault, g_Campos[ CAMPO_RANGO ] );
 g_iDias[ iId ] = adv_vault_get_field( g_iVault, g_Campos[ CAMPO_DIAS ] );
 g_iHoras[ iId ] = adv_vault_get_field( g_iVault, g_Campos[ CAMPO_HORAS ] );
 g_iMinutos[ iId ] = adv_vault_get_field( g_iVault, g_Campos[ CAMPO_MINUTOS ] );
 g_iSegundos[ iId ] = adv_vault_get_field( g_iVault, g_Campos[ CAMPO_SEGUNDOS ] );
 g_iPurchasedHats[ iId ] = adv_vault_get_field( g_iVault, g_vPurchasedHats );
 g_iHatSelected[ iId ] = adv_vault_get_field( g_iVault, g_vHats );
 g_PlayerDate[ iId ][ CAMPO_DAMAGE ] = adv_vault_get_field( g_iVault, g_Campos[ CAMPO_DAMAGE ] );
 g_PlayerDate[ iId ][ CAMPO_HITS ] = adv_vault_get_field( g_iVault, g_Campos[ CAMPO_HITS ] );
 adv_vault_get_field( g_iVault, g_CampoOldConexion, g_PlayerOldConexion[ iId ], charsmax( g_PlayerOldConexion[ ] ) );
 adv_vault_get_field( g_iVault, g_CampoAvatar, g_PlayerAvatar[ iId ], charsmax( g_PlayerAvatar[ ] ) );
}

public @ChangeTeamInfo( iPlayer, iTeam[ ] )
{
 message_begin( MSG_ONE, get_user_msgid( "
TeamInfo" ), _, iPlayer );
 write_byte( iPlayer );
 write_string( iTeam );
 message_end( );
}

public @WriteMessage( iPlayer, iTeam[ ] )
{
 message_begin( MSG_ONE, get_user_msgid( "
SayText" ), { 0,0,0 }, iPlayer );
 write_byte( iPlayer );
 write_string( iTeam );
 message_end( );
}

stock ValidMessage( iText[ ], iMaxcount )
{
 static iLen, i, iCount
 iLen = strlen( iText );
 iCount = 0
    
 if( !iLen )
 return false;
    
 for( i = 0; i < iLen; i++ ) {
 if( iText[ i ] != ' ' ) {
 iCount++
 if ( iCount >= iMaxcount )
 return true;
 }
 }
    
 return false;
}

stock bool:is_player_steam( const iId )
{
 new iAuthid[ 25 ];
 get_user_authid( iId, iAuthid, 24 );

 if( containi( iAuthid, "
STEAM_" ) == -1 )
 return true;
 return false;


Recursos: Aquí.


Archivos adjuntos
.sma   Descargar AMXX / AMXX-Deathmatch.sma (Tamaño: 45.97 KB / Descargas: 85)
.inc   stripweapons.inc (Tamaño: 4 KB / Descargas: 51)
Corazón I dream of someday being able to have your near. Corazón
[Imagen: 76561199006140497.png]
Responder
#2
Buen aporte Nothingdohere
Responder
#3
Muy bonito tu aporte Sonrisa
"Cada golpe es una lección, y cada lección te hace mejor."

[Imagen: b_350_20_000000_8a7300_ffffff_eeff00.png]
[Imagen: 76561198371193937.png]
Responder
#4
(15/07/2020, 05:13 PM)Ricardo01 escribió: Buen aporte  Nothingdohere

(15/07/2020, 07:13 PM)rojedafeik escribió: Muy bonito tu aporte Sonrisa


Gracias Corazón
Corazón I dream of someday being able to have your near. Corazón
[Imagen: 76561199006140497.png]
Responder
#5
(15/07/2020, 03:32 PM)andres_1041 escribió: Cambio de Cámara.

Pusiste 2 veces esto.

pd: como se nota que me "copiaste" la forma de "codear" eh.. np Crab
Responder
#6
(15/07/2020, 08:56 PM)Chema escribió: Pusiste 2 veces esto.

pd: como se nota que me "copiaste" la forma de "codear" eh.. np Crab

Corregido! Mario

PD: Me gusto mucho lo de los @, lo siento Pepe
Corazón I dream of someday being able to have your near. Corazón
[Imagen: 76561199006140497.png]
Responder
#7
(15/07/2020, 09:05 PM)andres_1041 escribió: Corregido! Mario

PD: Me gusto mucho lo de los @, lo siento  Pepe

No lo decía por los @.

Código PHP:
new const g_szPluginName[ ] = "Deathmatch";
new const 
g_szPluginVersion[ ] = "1.0b";
new const 
g_szPluginAuthor[ ] = "Andre's <3.";

new const 
g_szChatPrefix[ ] = "^4[ AMXX-ES ]^1";
new const 
g_szConsolePrefix[ ] = "[ AMXX ]";
new const 
g_szContactUrl[ ] = "www.amxmodx-es.com";

new const 
g_szItemMenuSound[ ] = "Ui/buttonclickrelease.wav"
Responder
#8
(15/07/2020, 09:16 PM)Chema escribió: No lo decía por los @.

Código PHP:
new const g_szPluginName[ ] = "Deathmatch";
new const 
g_szPluginVersion[ ] = "1.0b";
new const 
g_szPluginAuthor[ ] = "Andre's <3.";

new const 
g_szChatPrefix[ ] = "^4[ AMXX-ES ]^1";
new const 
g_szConsolePrefix[ ] = "[ AMXX ]";
new const 
g_szContactUrl[ ] = "www.amxmodx-es.com";

new const 
g_szItemMenuSound[ ] = "Ui/buttonclickrelease.wav"

Ah eso, tengo la plantilla así, no la he cambiado Pepe
Corazón I dream of someday being able to have your near. Corazón
[Imagen: 76561199006140497.png]
Responder
#9
Buen aporte.
Responder
#10
(15/07/2020, 09:23 PM)KardigaN escribió: Buen aporte.

Gracias Corazón
Corazón I dream of someday being able to have your near. Corazón
[Imagen: 76561199006140497.png]
Responder
#11
buen aporte crack
[Imagen: zcsztw-4.png] [Imagen: 6u5fj2-4.png]
[Imagen: linkedin_thumb_image.png][Imagen: 76561198283253977.png][Imagen: linkedin_thumb_image.png]
Responder
#12
(17/07/2020, 01:07 AM)Hypnotize escribió: buen aporte crack

Gracias Corazón
Corazón I dream of someday being able to have your near. Corazón
[Imagen: 76561199006140497.png]
Responder
#13
MUY BUEN APORTE.... pero deberías subir el amx ya con sus librerias para poder compilarlo! Insecure
[Imagen: b_560_95_1.png]
Responder
#14
(17/07/2020, 01:10 AM)FoxServersHost escribió: MUY BUEN APORTE.... pero deberías subir el amx ya con sus librerias para poder compilarlo!  Insecure

Gracias Corazón

Tienes razón, hay una librería que no publique ya la subo! Mario
Corazón I dream of someday being able to have your near. Corazón
[Imagen: 76561199006140497.png]
Responder
#15
nada más subir las librerías en caso de no estar, amxx no porque subir archivos compilados no esta permitido.
[Imagen: zcsztw-4.png] [Imagen: 6u5fj2-4.png]
[Imagen: linkedin_thumb_image.png][Imagen: 76561198283253977.png][Imagen: linkedin_thumb_image.png]
Responder
#16
(17/07/2020, 01:13 AM)Hypnotize escribió: nada más subir las librerías en caso de no estar, amxx no porque subir archivos compilados no esta permitido.

Si, ya subí la librería <stripweapons>
Corazón I dream of someday being able to have your near. Corazón
[Imagen: 76561199006140497.png]
Responder
#17
Buen aporte, mucha mierda como te dije pero esta bien, vas progresando xD,
Lo que si note y no creo que este muy bien, es que hiciste una recolección de
varios plugins ya hechos para conformar esto...

Me explico lo que te digo con este ejemplo:

En camara:
Si te pones a ver en el plugin [AMXX] Special Pets
creado por chema y mi persona, es el mismo codigo lo cual haces solo el cambio de nombre a algunas cosas, cabe
destacar que esta parte del codigo no la hice yo, la hizo chema estoy dando un ejemplo pacman

Código PHP:
public ClientCommand_ChangeCamera( const iId ) {
 
    if( !is_user_connectediId ) )
        return PLUGIN_CONTINUE;
 
    g_bCameraiId ] =! g_bCameraiId ];
    g_bCameraiId ] ? set_view iIdCAMERA_3RDPERSON ) : set_view iIdCAMERA_NONE );
    return PLUGIN_HANDLED;


La hora happy es esto pacman: https://amxmodx-es.com/Thread-Crear-happy-hour-x2
El top: https://amxmodx-es.com/Thread-AMXX-CsTop5-Stats
y etc...

aquí no le veo la ciencia definirle las bammo o como se llama aquí, ya que todas están en 200, esta de más ponerlas aquí
Código PHP:
new const Weapons_Primary[ ][ eWeapons_Struct ] =
{
 { 
"M4A1""weapon_m4a1"CSW_M4A1200 },
 { 
"AK-47""weapon_ak47"CSW_AK47200 },
 { 
"AWP""weapon_awp"CSW_AWP200 },
 { 
"Famas""weapon_famas"CSW_FAMAS200 },
 { 
"Galil""weapon_galil"CSW_GALIL200 },
 { 
"MAC-10""weapon_mac10"CSW_MAC10200 },
 { 
"TMP""weapon_tmp"CSW_TMP200 },
 { 
"UMP""weapon_ump45"CSW_UMP45200 },
 { 
"MP5 Navy""weapon_mp5navy"CSW_MP5NAVY200 },
 { 
"ES P90""weapon_p90"CSW_P90200 },
 { 
"SG-552""weapon_sg552"CSW_SG552200 },
 { 
"SCOUT""weapon_scout"CSW_SCOUT200 },
 { 
"AUG""weapon_aug"CSW_AUG200 },
 { 
"M249""weapon_m249"CSW_M249200 },
 { 
"M3""weapon_m3"CSW_M3200 },
 { 
"XM1014""weapon_xm1014"CSW_XM1014200 },
 { 
"G3SG1""weapon_g3sg1"CSW_G3SG1200 }
}

new const 
Weapons_Secondary[ ][ eWeapons_Struct ] =
{
 { 
"Deagle""weapon_deagle"CSW_DEAGLE200 },
 { 
"USP""weapon_usp"CSW_USP200 },
 { 
"Glock""weapon_glock18"CSW_GLOCK18200 },
 { 
"P228""weapon_p228"CSW_P228200 },
 { 
"FiveseveN""weapon_fiveseven"CSW_FIVESEVEN200 },
 { 
"Dual Elite Berettas""weapon_elite"CSW_ELITE200 }


(OJO) El código lo leí por encima
Responder
#18
(17/07/2020, 02:50 AM)Alejandro escribió: Buen aporte, mucha mierda como te dije pero esta bien, vas progresando xD,
Lo que si note y no creo que este muy bien, es que hiciste una recolección de
varios plugins ya hechos para conformar esto...

Me explico lo que te digo con este ejemplo:

En camara:
Si te pones a ver en el plugin [AMXX] Special Pets
creado por chema y mi persona, es el mismo codigo lo cual haces solo el cambio de nombre a algunas cosas, cabe
destacar que esta parte del codigo no la hice yo, la hizo chema estoy dando un ejemplo pacman

Código PHP:
public ClientCommand_ChangeCamera( const iId ) {
 
    if( !is_user_connectediId ) )
        return PLUGIN_CONTINUE;
 
    g_bCameraiId ] =! g_bCameraiId ];
    g_bCameraiId ] ? set_view iIdCAMERA_3RDPERSON ) : set_view iIdCAMERA_NONE );
    return PLUGIN_HANDLED;


La hora happy es esto pacman: https://amxmodx-es.com/Thread-Crear-happy-hour-x2
El top: https://amxmodx-es.com/Thread-AMXX-CsTop5-Stats
y etc...

aquí no le veo la ciencia definirle las bammo o como se llama aquí, ya que todas están en 200, esta de más ponerlas aquí
Código PHP:
new const Weapons_Primary[ ][ eWeapons_Struct ] =
{
 { 
"M4A1""weapon_m4a1"CSW_M4A1200 },
 { 
"AK-47""weapon_ak47"CSW_AK47200 },
 { 
"AWP""weapon_awp"CSW_AWP200 },
 { 
"Famas""weapon_famas"CSW_FAMAS200 },
 { 
"Galil""weapon_galil"CSW_GALIL200 },
 { 
"MAC-10""weapon_mac10"CSW_MAC10200 },
 { 
"TMP""weapon_tmp"CSW_TMP200 },
 { 
"UMP""weapon_ump45"CSW_UMP45200 },
 { 
"MP5 Navy""weapon_mp5navy"CSW_MP5NAVY200 },
 { 
"ES P90""weapon_p90"CSW_P90200 },
 { 
"SG-552""weapon_sg552"CSW_SG552200 },
 { 
"SCOUT""weapon_scout"CSW_SCOUT200 },
 { 
"AUG""weapon_aug"CSW_AUG200 },
 { 
"M249""weapon_m249"CSW_M249200 },
 { 
"M3""weapon_m3"CSW_M3200 },
 { 
"XM1014""weapon_xm1014"CSW_XM1014200 },
 { 
"G3SG1""weapon_g3sg1"CSW_G3SG1200 }
}

new const 
Weapons_Secondary[ ][ eWeapons_Struct ] =
{
 { 
"Deagle""weapon_deagle"CSW_DEAGLE200 },
 { 
"USP""weapon_usp"CSW_USP200 },
 { 
"Glock""weapon_glock18"CSW_GLOCK18200 },
 { 
"P228""weapon_p228"CSW_P228200 },
 { 
"FiveseveN""weapon_fiveseven"CSW_FIVESEVEN200 },
 { 
"Dual Elite Berettas""weapon_elite"CSW_ELITE200 }


(OJO) El código lo leí por encima

[Imagen: maxresdefault.jpg]

(15/07/2020, 08:56 PM)Chema escribió: Pusiste 2 veces esto.

pd: como se nota que me "copiaste" la forma de "codear" eh.. np Crab

Vos le "copiaste" a w0w Crab



EDIT: Buen aporte xd

Responder
#19
No hace falta declarar public las funciones si usas el @
Es como si hicieras public public Funcion
Responder
#20
(17/07/2020, 05:15 AM)metita escribió: No hace falta declarar public las funciones si usas el @
Es como si hicieras public public Funcion

Lo tomaré en cuenta, cuando investigue sobre los @ ya lo había aportado. Roflmao

(17/07/2020, 04:07 AM)Skylar escribió: EDIT: Buen aporte xd

Gracias Corazón
Corazón I dream of someday being able to have your near. Corazón
[Imagen: 76561199006140497.png]
Responder
#21
Hola como estan... tengo problemas con este plugin. me tira este error en el log.

L 08/31/2020 - 23:51:02: [AMXX] Run time error 4: index out of bounds
L 08/31/2020 - 23:51:02: [AMXX] [0] AMXX-Deathmatch.sma:EnfadadoHam_SpawnPlayer (line 1150)
L 08/31/2020 - 23:51:08: [AMXX] Displaying debug trace (plugin "AMXX-Deathmatch.amxx", version "1.0b")

Alguna idea? graciasss
Responder
#22
Que tiene que ver? Deja que ponga las balas en el enum y listo, estas definiendo por item las balas, si quiero que la awp solo tenga 10 y las demás 200? Esta perfecto así como lo hizo.
Además, prefiero que recolecte códigos de otros que funcionan y los ponga todo en un mismo plugin, que haga cualquier cosa y lo publique. Así que no entiendo tus reproches.

Además... esto es lo mismo que hice yo acá.
Código PHP:
https://amxmodx-es.com/Thread-New-System-CAM-Men%C3%BA
    
g_bCameraiId ] =! g_bCameraiId ];
    
g_bCameraiId ] ? set_view iIdCAMERA_3RDPERSON ) : set_view iIdCAMERA_NONE ); 

PD: Desde cuando la forma de codear tiene "copyright" ja.

En fin, la hipotenusa
Responder
#23
(17/07/2020, 02:50 AM)Alejandro escribió: Buen aporte, mucha mierda como te dije pero esta bien, vas progresando xD,
Lo que si note y no creo que este muy bien, es que hiciste una recolección de
varios plugins ya hechos para conformar esto...

Me explico lo que te digo con este ejemplo:

En camara:
Si te pones a ver en el plugin [AMXX] Special Pets
creado por chema y mi persona, es el mismo codigo lo cual haces solo el cambio de nombre a algunas cosas, cabe
destacar que esta parte del codigo no la hice yo, la hizo chema estoy dando un ejemplo pacman

Código PHP:
public ClientCommand_ChangeCamera( const iId ) {
 
    if( !is_user_connectediId ) )
        return PLUGIN_CONTINUE;
 
    g_bCameraiId ] =! g_bCameraiId ];
    g_bCameraiId ] ? set_view iIdCAMERA_3RDPERSON ) : set_view iIdCAMERA_NONE );
    return PLUGIN_HANDLED;


La hora happy es esto pacman: https://amxmodx-es.com/Thread-Crear-happy-hour-x2
El top: https://amxmodx-es.com/Thread-AMXX-CsTop5-Stats
y etc...

aquí no le veo la ciencia definirle las bammo o como se llama aquí, ya que todas están en 200, esta de más ponerlas aquí
Código PHP:
new const Weapons_Primary[ ][ eWeapons_Struct ] =
{
 { 
"M4A1""weapon_m4a1"CSW_M4A1200 },
 { 
"AK-47""weapon_ak47"CSW_AK47200 },
 { 
"AWP""weapon_awp"CSW_AWP200 },
 { 
"Famas""weapon_famas"CSW_FAMAS200 },
 { 
"Galil""weapon_galil"CSW_GALIL200 },
 { 
"MAC-10""weapon_mac10"CSW_MAC10200 },
 { 
"TMP""weapon_tmp"CSW_TMP200 },
 { 
"UMP""weapon_ump45"CSW_UMP45200 },
 { 
"MP5 Navy""weapon_mp5navy"CSW_MP5NAVY200 },
 { 
"ES P90""weapon_p90"CSW_P90200 },
 { 
"SG-552""weapon_sg552"CSW_SG552200 },
 { 
"SCOUT""weapon_scout"CSW_SCOUT200 },
 { 
"AUG""weapon_aug"CSW_AUG200 },
 { 
"M249""weapon_m249"CSW_M249200 },
 { 
"M3""weapon_m3"CSW_M3200 },
 { 
"XM1014""weapon_xm1014"CSW_XM1014200 },
 { 
"G3SG1""weapon_g3sg1"CSW_G3SG1200 }
}

new const 
Weapons_Secondary[ ][ eWeapons_Struct ] =
{
 { 
"Deagle""weapon_deagle"CSW_DEAGLE200 },
 { 
"USP""weapon_usp"CSW_USP200 },
 { 
"Glock""weapon_glock18"CSW_GLOCK18200 },
 { 
"P228""weapon_p228"CSW_P228200 },
 { 
"FiveseveN""weapon_fiveseven"CSW_FIVESEVEN200 },
 { 
"Dual Elite Berettas""weapon_elite"CSW_ELITE200 }


(OJO) El código lo leí por encima
[Imagen: maxresdefault.jpg]
[Imagen: zcsztw-4.png] [Imagen: 6u5fj2-4.png]
[Imagen: linkedin_thumb_image.png][Imagen: 76561198283253977.png][Imagen: linkedin_thumb_image.png]
Responder
#24
valla aporte, Me gusta... Lastima que no le dieron otra actualización...
[Imagen: jrXxqRT.png]
*Maper Del Cstrike* - *Estudiante De Sistema*
(03/09/2018, 08:32 PM)Skylar escribió: Obviamente, no va a hablar con super pro para que le mueva el thread
(04/01/2019, 05:12 PM)Pan Bimbo (? escribió: QUE HICISTE QUE??????? YO QUERIA LA PLACA DE VIDEO PORQUE LA TIRASTE CTM
(15/01/2019, 04:08 AM)FreDDy escribió:
(15/01/2019, 03:45 AM)Hernandez escribió: Qué más dan las palabras si a donde vayas están en tetas protestando sin sentido

No todas salen en tetas y no todas protestan sin sentido. Estás generalizando algo que sólo unas pocas lo hacen a diferencia de las muchas que realmente tienen un motivo para protestar.
(17/01/2019, 12:34 PM)totopizza escribió: el orden de los factores no altera el producto xD
(23/01/2019, 01:10 AM)GoldenCosta escribió:
Cita:E visto que este ZP , ESTA AQUI EN EL FORO PERO NO ES EL ORIGINAL POR QUE? , LE FALTAN MILES DE COSAS ESTA BUGEADO , LE FALTAN CÓDIGOS NI SE IMAGINAN , BUENO EL MOD ESTE SE VENDE POR 70 DOLARES , ACEPTO PAYPAL Y EN PESOS CHILENOS $42.584
ya esta publicado.... y 70 us en arg son 2625,35 pesos... estas loco con esa guita neel mantiene el foro por 2 años
(23/01/2019, 01:17 AM)Skylar escribió:
(22/01/2019, 10:30 PM)el_juan_fail escribió:
(22/01/2019, 10:03 AM)Neeeeeeeeeel.- escribió: Por favor subir las cosas al foro y no links a blogs externos. Solamente en caso de que haya recursos que no se pudiesen subir por un tema de tamaño, poenr un link de descarga directo (tipo mega) de los recursos y subir los plugins y demás archivos livianos al foro.

deberia ponerle en un link mediante el mediafire o mega o link externo lo que sea pero no es bueno dejar cosa agregada sin descargar solo por el blog no se puede se puede bajar el recurso o que haya sido creado disculpa neeeeel. estaba leyendose las reglas u.uMario

Dijiste lo mismo que dijo Neeel!
(27/02/2019, 08:00 PM)Sugisaki escribió:
(27/02/2019, 05:37 PM)Pan Bimbo (? escribió:
(27/02/2019, 12:06 AM)luxor xD escribió: Hola, si precacheo algo en un plugin, no es necesario precachearlo en otro plugin?

Si yo cargo una caja en un camion, mi amigo puede cargar la MISMA caja en el camion?, y no porque ya esta cargada.
[R]ak escribió: Mis conocimientos aumentaron un 500% con este post
(14/03/2019, 10:26 PM)KrR10VnZl escribió: en Venezuela aprendes a ser desde bombas molotov hasta velas, es algo así como supervivencia al desnudo jaja
(18/04/2019, 11:04 PM)Jose88 escribió:
(18/04/2019, 09:55 PM)Hypnotize escribió: arriba marica

papa me va perdonar pero aquí no sale ningún download. solo sale esto

Código PHP:
PDNiños Ratas eviten sacar el autor jaja.
REMOVIDO POR TUTOR Y SLOWHACK
(21/04/2019, 09:38 AM)SHENK! =D escribió: ASDASD

Si nos organizamos cojemos todos.
(11/08/2019, 05:11 PM)Cr3470r escribió: Todo Software es crackeable ... No importa cuantas validaciones hagan, la ventaja siempre la tenemos nosotros ...
(28/07/2015, 09:34 PM)Nazi.- escribió: :ohgodwhy buen aporte

PD: situación sentimental: Sin internetOh god why

Sigue así Proud

(28/02/2020, 12:23 AM)Skylar escribió:
(27/02/2020, 11:28 PM)4evergaming escribió: Ya me puse como autor y lo subi a mi empresa


Abrazos

FIX
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)