RESUELTO testing
#1
teeestttttttttt Idea Exclamation Angel


   
Mira esa firma de testeo papaaa :V

Angry Angry
#2
Code:
asdasd
asdasdasd
asdasd
#3
PHP Code:
#include <amxmodx>
#include <fun>
#include <fakemeta>
#include <hamsandwich>

enum _:___MenusData MENU_WANNAPLAY 0MENU_PLAYMODMENU_CHOOSEROUNDMENU_CHOOSETIME };
enum (+=17) { TASK_WANNAPLAY 21147TASK_CDTASK_INFOHUD };
enum PLAYMOD_TIME 1PLAYMOD_ROUND };
enum _:__choosetimedata NAME[32], iTIME };
enum _:__fwds FWD_GAMEEND };

new 
gMenu___MenusData ], gForward[__fwds], gVotedYesgVotedMapgPlayModgTimegSecondsgRoundCountergSyncgTimeCheck,
bVotedYes[3], bSeconds[3], bPlayMod[3], bTime[3];
new 
globalPMglobalTimeglobal_GameStarted;
new 
cvar_votetime_wp;

new const 
RoundData[][__choosetimedata] =
{
    { 
"10 Rondas"10 },
    { 
"20 Rondas"20 },
    { 
"50 Rondas"50 }
};

new const 
TimeData[][__choosetimedata] = 
{
    { 
"10 Minutos"10 },
    { 
"20 Minutos"20 },
    { 
"30 Minutos"30 },
    { 
"40 Minutos"40 }
};

public 
plugin_natives()
{
    
register_native("ovo_gamestarted""native_gamestarted"1);
    
register_native("ovo_gamemod""native_gamemod"1);
    
register_native("ovo_gametime""native_gametime"1);
}

public 
native_gamestarted() return global_GameStarted;
public 
native_gamemod() return globalPM;
public 
native_gametime() return globalTime;

public 
plugin_init()
{
    
register_plugin"1 VS 1 MOD""0.1b""kikizon - LSStudios.online");

    if( 
get_maxplayers() > )
    {
        
set_fail_state("[1 V 1] El servidor debe tener solo 2 slots para funcionar.");
        return;
    }

    
register_event"HLTV" "ev_RoundStart" "a" "1=0" "2=0" );
    
register_event"TextMsg" "ev_GameRestart" "a" "2=#Game_will_restart_in" );
    
    
RegisterHam(Ham_Spawn"player""PlayerSpawnPost"true);    

    
cvar_votetime_wp register_cvar("1vs1_votetime_wp""60" );

    
gForwardFWD_GAMEEND ] = CreateMultiForward("ovo_gameend"ET_IGNORE);

    
gSync CreateHudSyncObj();

    new 
str[5];
    
get_localinfo("PlayMod"str4);
    
globalPM str_to_num(str);

    
get_localinfo("PlayTime"str4);
    
globalTime str_to_num(str);

    if( 
globalPM && globalTime 0)
    {
        if( 
globalPM == PLAYMOD_TIME )
        {
            
set_cvar_num("mp_timelimit", (globalTime+3));            
        }
        else 
        {
            
set_cvar_num("mp_timelimit", ((3*globalTime)+2));
            
set_cvar_num("mp_roundtime"3);
            
gRoundCounter globalTime;
        }

        
set_task(1.0"ShowHud"TASK_INFOHUD, .flags="b");
    }
    else 
    {
        
set_cvar_num("mp_timelimit"30);
        
set_cvar_num("mp_roundtime"6);        
    }

    
CreateMenus();

#4
@ ScenarioArt asdadadadadsdadsa
#5
fdadadadasdadasd
#6
asdsadsada
Mira esa firma de testeo papaaa :V

Angry Angry
#7
Show ContentSpoiler:
Mira esa firma de testeo papaaa :V

Angry Angry




Users browsing this thread: 1 Guest(s)