Raised This Month: $32 Target: $400
 8% 

Need help in fixing warnings


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 12-10-2017 , 02:48   Need help in fixing warnings
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <fakemeta>
#include <hamsandwich>
#include <sqlx>
#include <reapi>
#include <csx>
#include <dhudmessage>

#define PLUGIN "PuB WaR v5.0"
#define VERSION "5.0"
#define AUTHOR "||ECS||nUy aka Abhishek Deshkar"//Random OPtion BY //SOUMYADIP// SUPPORT BY SANJAY SING

//Game Description
new amx_warname

// 1 = first captain 2 = second captain.
new CaptainChoosenID
new WhoChoseThePlayer

//Ranking system.
new g_TotalKills[33]
new 
g_TotalDeaths[33]
new 
g_BombPlants[33]
new 
g_BombDefusions[33]
new 
g_TotalLeaves
new gMaxPlayers
new msgToDisplay[456

/////randome knife
new const KR_TAG[] = "[RGC Haveli]";

new 
bool:g_bKnifeRound;
new 
bool:g_bVotingProcess;
new 
g_iMaxPlayers;
new 
g_Votes];
new 
g_pSwapVote;
new 
g_pNoslash;
///////////////


//get the current status of the HALF. By default false because no half started.
new bool:isFirstHalfStarted false
new bool:isSecondHalfStarted false

new gCptT
new gCptCT
new CaptainCount 0
new bool:g_KnifeRound  false

// Is Match Initialized ?
new bool:g_MatchInit false

//Owner of: who started the match
new MatchStarterOwner 0

//Check if captain is choosen
new bool:CaptainSChosen

// Is Match started !
new bool:g_MatchStarted false


//Handle the score. By default to: 0 score.
new ScoreFtrstTeam 0
new ScoreScondteam 0

//Show menu to the first captain == winner
new ShowMenuFirst
new ShowMenuSecond

//Captains Chosen Teams.- 2 == CT & 1 == T
new FirstCaptainTeamName

//new teamA

//Store the name of the Captains.
new FirstCaptainName[52]
new 
SecondCaptainName[52]

//Temp captain Names !
new TempFirstCaptain[32]
new 
TempSecondCaptain[32]

//Store current map.
new szMapname[32]

new 
RoundCounter 0



public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_clcmd("amx_startmatch""PubwarMenu"ADMIN_KICK"Get All The players");

    
gMaxPlayers get_maxplayers()

    
//Change Game Description.
    
amx_warname register_cvar"amx_warname""-= WAR About To Start! =-" ); 
    
register_forwardFM_GetGameDescription"GameDesc" ); 

    
    
//register_event("SendAudio", "Event_RoundWon_T" , "a", "2&%!MRAD_terwin") 
    //register_event("SendAudio", "Event_RoundWon_CT", "a", "2&%!MRAD_ctwin")
    //register_event("DeathMsg", "Event_DeathMsg", "a")

    //block advertise by cs
    
set_msg_block(get_user_msgid("HudTextArgs"), BLOCK_SET);

    
//Register Death.
    
register_event("DeathMsg""Event_DeathMsg_Knife""a""1>0")

    
//For Knife round.
    
register_event("CurWeapon""Event_CurWeapon_NotKnife""be""1=1""2!29")  
    
    
//Round end event.
    
register_logevent("round_end"2"1=Round_End")

    
//Round start event.
    
register_logevent("logevent_round_start"2"1=Round_Start")

    
//Do not allow clients to join the team when they manually tries to join the team.
    
register_clcmd("chooseteam""cmdChooseTeam")
    
register_clcmd("jointeam""GoToTheSpec");

    
//Stop or Restart the Match!
    
register_clcmd("amx_stopmatch""StopMatch"ADMIN_KICK"Stop the Match!");
    
register_clcmd("amx_restartmatch""RestartMatch"ADMIN_KICK"Restart the Match!");

    
// T OR CT WIN.
    
register_event"SendAudio","on_TerroristWin","a","2=%!MRAD_terwin");
    
register_event"SendAudio","on_CTWin","a","2=%!MRAD_ctwin");


    
//show score.
    
register_clcmd("say !score""ShowScoreToUser")

    
//Get Team Players menu.
    
register_clcmd("say /getmenu","GetMatchMenu")

    
get_mapname(szMapnamecharsmax(szMapname))
    
/////knife randome

    
g_pSwapVote register_cvar"kr_swapvote""1" );

    
g_pNoslash register_cvar"kr_noslash""1" );

    
register_clcmd"shield""BlockCmds" );
    
register_clcmd"cl_rebuy""BlockCmds" );

    
register_event"CurWeapon""EventCurWeapon""be""2!29" );
    
    
register_logevent"EventRoundEnd"2"0=World triggered""1=Round_Draw""1=Round_End" );
    
    
register_menucmdregister_menuid"\rSwap teams?" ), 1023"MenuCommand" );
    
    
RegisterHamHam_Weapon_PrimaryAttack"weapon_knife""HamKnifePrimAttack" );
    
    
g_iMaxPlayers get_maxplayers( )

}

public 
PubwarMenu(idlvlcid)
{
    new 
Name[32
    
get_user_name(idNamecharsmax(Name))

    if(!
cmd_access(idlvlcid0))
        return 
PLUGIN_HANDLED;

    new 
menu menu_create("\ySelect Type Of War\r""menu_handel");
    
chatcolor(0,"!g[RGC Haveli] !yAdmin !t%s !yIs Selecting !tMatch Type"Name)

    
menu_additem(menu"\rCaptain Selection Match"""); // case 0
    
menu_additem(menu"\rSame Team Match\w"""0); // case 1

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_setprop(menuMPROP_NOCOLORS1);

    
menu_display(idmenu0);

    return 
PLUGIN_HANDLED;
}

public 
menu_handel(idmenuitemlvlcidlevel)
{
    if(
item == MENU_EXIT)
    {
        
menu_cancel(id);
        return 
PLUGIN_HANDLED;
    }

    new 
command[6], name[64], accesscallback
    menu_item_getinfo
(menuitemaccesscommandsizeof command 1namesizeof name 1callback);

    switch(
item)
    {
        case 
0:
        {
            
chatcolor(0,"[RGC Haveli]!gAdmin !yhas choosen Pub War Type !tCaptain Selection Match")
            
ShowMenu(idlvlcid)
        }
        case 
1
        {
            
set_dhudmessage(00255, -1.0, -1.016.012.00.30.3)
            
show_dhudmessage(0"Put TAG PLEASE!!! ^nR[*G*]C x |Nick|")
            
CmdKnifeRound(idlevelcid)
            
chatcolor(0,"[RGC Haveli]!gAdmin !yChose Pub War Type !tSame Team Match")
        }
    }

    
menu_destroy(menu);

    return 
PLUGIN_HANDLED
}

//Game description forward.
public GameDesc() 

    static 
gamename[32]; 
    
get_pcvar_stringamx_warnamegamename31 ); 
    
forward_returnFMV_STRINGgamename ); 
    return 
FMRES_SUPERCEDE
}  



//Event death.
public Event_DeathMsg_Knife()
{

    new 
attacker_one read_data(1
    new 
victim_one read_data(2

    if(
g_MatchStarted)
    {
        if( 
victim_one != attacker_one && cs_get_user_team(attacker_one) != cs_get_user_team(victim_one)) 
        { 
            
g_TotalKills[attacker_one]++
            
g_TotalDeaths[victim_one]++

        }
    }

    return 
PLUGIN_HANDLED

}


public 
bomb_plantedplanter )
{

   
g_BombPlants[planter]++

}

public 
bomb_defuseddefuser )
{
    
g_BombDefusions[defuser]++
}


public 
GetMatchMenu(id)
{  
    if(
CaptainSChosen)
    {
   

        if(
id != CaptainChoosenID)
        {
          
            if(
WhoChoseThePlayer == 1)
            {
                
LetsSecondChoosePlayers(ShowMenuSecond)
            }

            if(
WhoChoseThePlayer == 2)
            {
                
LetsFirstChoosePlayers(ShowMenuFirst)
            }
            
        }
      
    }

    return 
PLUGIN_HANDLED
}

public 
RestartMatch(id,lvl,cid)
{
    if(!
cmd_access(id,lvl,cid,0))
        return 
PLUGIN_HANDLED
    
    
if(g_MatchInit || g_MatchStarted || g_KnifeRound)
    {
        
//Log AMX, Who stopped the match!.
        
new MatchRestarterName[32
        
get_user_name(idMatchRestarterNamecharsmax(MatchRestarterName)) 

        new 
MatchRestarterAuthID[32
        
get_user_authid(idMatchRestarterAuthID31)

        
log_amx("Admin %s with ID = %i and AuthID %s has restarted the Match !",MatchRestarterName,id,MatchRestarterAuthID)

        
server_cmd("mp_freezetime 6");

        
set_dhudmessage(02550, -1.0, -1.002.06.00.80.8)
        
show_dhudmessage(0,"Admin has restarted the Match ! ^n Captains will be chosen shortly..")

        
set_task(8.0,"RestartMatchTask",id)

        return 
PLUGIN_HANDLED

    

    return 
PLUGIN_HANDLED
}

public 
RestartMatchTask(id)
{

    
LoadPubSettings()
    
ShowMenuSpecial(id)   
}

//Stop the Match.
public StopMatch(id,lvlcid)
{

    if(!
cmd_access(idlvlcid0))
        return 
PLUGIN_HANDLED;


    if(
g_MatchInit || g_MatchStarted || g_KnifeRound)
    {
        
//Log AMX, Who stopped the match!.
        
new MatchStopperName[32
        
get_user_name(idMatchStopperNamecharsmax(MatchStopperName)) 

        new 
MatchStopperAuthID[32
        
get_user_authid(idMatchStopperAuthID31)

        
log_amx("Admin %s with AuthID %s has stopped the Match !",MatchStopperName,MatchStopperAuthID)

        
server_cmd("mp_freezetime 6");

        
set_dhudmessage(02550, -1.0, -1.002.06.00.80.8)
        
show_dhudmessage(0,"Admin has Stopped the Match ! ^n Server will restart now.")

        
set_task(8.0,"RestartServerForStoppingMatch")

        return 
PLUGIN_HANDLED

    

    return 
PLUGIN_HANDLED
}


//Stop match special when owner is not there.
public StopMatchSpecial()
{

    if(
g_MatchInit || g_MatchStarted || g_KnifeRound)
    {
        

        
server_cmd("mp_freezetime 6");

        
set_dhudmessage(02550, -1.0, -1.002.06.00.80.8)
        
show_dhudmessage(0,"Match Lord has Left the Game ! ^n Server will restart now.")

        
set_task(4.0,"RestartServerForStoppingMatch")

    } 
    return 
PLUGIN_HANDLED
}

public 
RestartServerForStoppingMatch()
{
    new 
CurrentMap[33]
    
get_mapname(CurrentMap,32)

    
server_cmd("changelevel %s",CurrentMap)

    return 
PLUGIN_HANDLED
}


public 
GoToTheSpec(id)
{
    if(
g_MatchInit || g_KnifeRound)
    {   
        if(
is_user_connected(id))
        {
            
set_task(3.0,"TransferToSpec",id)
        }
    }
}


//Terrorist Win event.
public on_TerroristWin()
{

    
//Terrorrist Knife round winner.
    
if(g_KnifeRound == true)
    {
        
        
// T WOWN.
        
ShowMenuFirst gCptT
        ShowMenuSecond 
gCptCT

        
//Set Names of the Captain. because captain may leave the game.
        
get_user_name(ShowMenuFirstFirstCaptainNamecharsmax(FirstCaptainName)) 
        
get_user_name(ShowMenuSecondSecondCaptainNamecharsmax(SecondCaptainName)) 

        
set_task3.0"GiveRestartRound"___"a"); 

        
set_task(2.0,"FirstCapWonKnifeRoundMsg",gCptT)

        
g_KnifeRound false
        LoadMatchSettings
()
    }

}

//CT WIN Event.
public on_CTWin()
{

    if(
g_KnifeRound)
    {
            
            
// CT WON.
            
ShowMenuFirst gCptCT
            ShowMenuSecond 
gCptT

             
//Set Names of the Captain. because captain may leave the game.
            
get_user_name(ShowMenuFirstFirstCaptainNamecharsmax(FirstCaptainName)) 
            
get_user_name(ShowMenuSecondSecondCaptainNamecharsmax(SecondCaptainName)) 

            
g_KnifeRound false
        

            set_task
3.0"GiveRestartRound"___"a"); 

            
set_task(2.0,"SecondCapWonKnifeRoundWonMsg",gCptCT)
            
            
LoadMatchSettings()
    }
    
   
}


//ROUND START Event.
public logevent_round_start()
{


    if(
g_KnifeRound)
    {

        
set_dhudmessage(255255255, -1.0, -1.002.06.00.80.8)
        
show_dhudmessage(0,"-= Knife Round Begins =- ^n Captain: %s ^n Vs. ^n Captain: %s",TempFirstCaptain,TempSecondCaptain)  

        
chatcolor(0,"!t[RGC Haveli] !g !tKnife Round !yhas !gbeen started ! ")
        
chatcolor(0,"!t[RGC Haveli] !g Knife War: !yCaptain- !t %s !gVs. !yCaptain- !t%s",TempFirstCaptain,TempSecondCaptain)
     
    }
    
    if(
g_MatchStarted)
    {
        
//Show Score info in Hud on every round start.
        
ShowScoreHud()
        
set_task(3.0,"ShowScoreOnRoundStart")
    }
}

//When Client join the server and if match is initialized or Knife round is running transfer player to spec.
public client_putinserver(id)
{

    
g_TotalKills[id]    = 0
    g_TotalDeaths
[id]   = 0
    g_BombPlants
[id]    = 0
    g_BombDefusions
[id] = 0

    
if(g_MatchInit || g_KnifeRound)
    {
        
//Transfer player to spec.
        
set_task(7.0,"TransferToSpec",id)
    }

}

//Menu for restart !
public ShowMenuSpecial(id)
{

    
//Store who started the match!.
    
MatchStarterOwner id

    
//Log AMX, Who stopped the match!.
    
new MatchStarterName[32
    
get_user_name(idMatchStarterNamecharsmax(MatchStarterName)) 

    new 
MatchStarterAuthID[32
    
get_user_authid(idMatchStarterAuthID31)

    
log_amx("Admin %s with AuthID %s has started the Match !",MatchStarterName,MatchStarterAuthID)

    
// Match has been initialized! 
    
g_MatchInit true

   


    
// TASK 1 - To Move All the players in Spec.
    
cmdTransferAllInSpec();

    
//Send message to players about message.
    
MatchInitHudMessage()


    
//Task 2 - Show Players Menu to who started the match.
    
set_task(5.0"ShowMenuPlayers"id)
    

    return 
PLUGIN_HANDLED;
}



//Choose Captains and Initialize Match.
public ShowMenu(idlvlcid)
{
    if(!
cmd_access(idlvlcid0))
    return 
PLUGIN_HANDLED;

    if(
g_MatchInit || g_MatchStarted)
    return 
PLUGIN_HANDLED


    MatchStarterOwner 
id

    
//Match initialized. 
    
set_cvar_string("amx_warname","[RGC Haveli] Initialized!")

    
//Log AMX, Who stopped the match!.
    
new MatchStarterName[32
    
get_user_name(idMatchStarterNamecharsmax(MatchStarterName)) 

    new 
MatchStarterAuthID[32
    
get_user_authid(idMatchStarterAuthID31)

    
log_amx("Admin %s with ID = %i and  AuthID %s has started the Match !",MatchStarterName,id,MatchStarterAuthID)


     
//Set force spawn to 1
    

    // Match has been initialized! 
    
g_MatchInit true

    
// TASK 1 - To Move All the players in Spec.
    
cmdTransferAllInSpec();

    
//Send message to players about message.
    
MatchInitHudMessage()


    
//Task 2 - Show Players Menu to who started the match.
    
set_task(3.0"ShowMenuPlayers"id)
    
    return 
PLUGIN_HANDLED;
}

//Show HUD Message and Print message to inform player about match started !
public MatchInitHudMessage()
{
    
set_dhudmessage(02550, -1.0, -1.002.06.00.80.8)
    
show_dhudmessage(0,"The Match has been Initialized ! ^n Captains will be chosen by the Match Lord.")

    
chatcolor(0,"!t[RGC Haveli] !g The Match has been !tInitialized.")
    
chatcolor(0,"!t[RGC Haveli] !g The Match has been !tInitialized.")
    
chatcolor(0,"!t[RGC Haveli] !g Captains will be !tchosen.")
}

public 
ShowMenuPlayers(id)
{
    
set_cvar_string("amx_warname","Captain Selection!")

    

    new 
iMenu MakePlayerMenuid"Choose a Captain""PlayersMenuHandler" );
    
menu_setpropiMenuMPROP_NUMBER_COLOR"\y" );
    
menu_displayidiMenu );

    return 
PLUGIN_CONTINUE;
}

MakePlayerMenuid, const szMenuTitle[], const szMenuHandler[] )
{
    new 
iMenu menu_createszMenuTitleszMenuHandler );
    new 
iPlayers[32], iNumiPlayerszPlayerName[32], szUserId[33];
    
get_playersiPlayersiNum"h" );

    new 
PlayerName[128]

    for(new 
i=0;i<iNum;i++)
    {
        
iPlayer iPlayers[i];
        
        
        
//Add user in the menu if - CONNECTED and TEAM IS T.
        
if(get_user_team(iPlayer) == )
        {
            
            
get_user_nameiPlayerszPlayerNamecharsmaxszPlayerName ) );

            
formatex(PlayerName,127,"%s)",szPlayerName)

            
formatexszUserIdcharsmaxszUserId ), "%d"get_user_useridiPlayer ) );
            
menu_additemiMenuPlayerNameszUserId);

        }
        
        
    }


    return 
iMenu;
}

public 
PlayersMenuHandleridiMenuiItem )
{
    if ( 
iItem == MENU_EXIT )
    {
        
// Recreate menu because user's team has been changed.
        
new iMenu MakePlayerMenuid"Choose a Captain""PlayersMenuHandler" );
        
menu_setpropiMenuMPROP_NUMBER_COLOR"\y" );
        
menu_displayidiMenu );

        return 
PLUGIN_HANDLED;
    }

    new 
szUserId[32], szPlayerName[32], iPlayeriCallback;

    
menu_item_getinfoiMenuiItemiCallbackszUserIdcharsmaxszUserId ), szPlayerNamecharsmaxszPlayerName ), iCallback );

    if ( ( 
iPlayer find_player"k"str_to_numszUserId ) ) )  )
    {
      
        if(
CaptainCount == 0)
        {
            
            
//cs_set_user_team(iPlayer, CS_TEAM_CT)
            
rg_set_user_team(iPlayer,TEAM_CT,MODEL_AUTO,true)

            new 
ChosenCaptain[32
            
get_user_name(iPlayerChosenCaptaincharsmax(ChosenCaptain)) 
            
chatcolor(0,"!t[RGC Haveli] !gPlayer  !t%s chosen !yas  First !tCaptain! "ChosenCaptain)  

            
CaptainCount++  

            
//Temp captain name.
            
get_user_name(iPlayerTempFirstCaptaincharsmax(TempFirstCaptain)) 
          

            
//Assign CT Captain
            
gCptCT iPlayer

            
//Recreate menu.
            
menu_destroy(iMenu)
            new 
iMenu MakePlayerMenuid"Choose a Captain""PlayersMenuHandler" );
            
menu_setpropiMenuMPROP_NUMBER_COLOR"\y" );
            
menu_displayidiMenu );

            return 
PLUGIN_HANDLED;

        }

        if(
CaptainCount == 1)
        {
            
            
//cs_set_user_team(iPlayer, CS_TEAM_T)
        
rg_set_user_team(iPlayer,TEAM_TERRORIST,MODEL_AUTO,true)


        new 
ChosenCaptain[32
        
get_user_name(iPlayerChosenCaptaincharsmax(ChosenCaptain)) 
        
chatcolor(0,"!t[RGC Haveli] !gPlayer  !t%s choosen !yas Second !tCaptain! "ChosenCaptain)  

        
CaptainCount++


             
//Temp captain name.
        
get_user_name(iPlayerTempSecondCaptaincharsmax(TempSecondCaptain)) 

            
//Assign T Captain
        
gCptT iPlayer

            
//Set it to true because captains have been chosen.
        
CaptainSChosen true

            
//Announcement.
        
set_dhudmessage(25500, -1.0, -1.002.06.00.80.8)
        
show_dhudmessage(0,"Get Ready Captains! ^n The Knife Round will Start in 10 seconds....")
        
chatcolor(0,"!t[RGC Haveli] !gAttention ! !yThe !tKnife Round !gWill Start in 10 seconds!")

            
//Start knife round.
        
set_task(10.0,"Knife_Round")

        
//Captain choosing is over so destroy menu.
        
menu_destroy(iMenu)
        return 
PLUGIN_HANDLED;
        
        }
    }
    
    
// Recreate menu because user's team has been changed.
    
new iMenu MakePlayerMenuid"Choose a Captain""PlayersMenuHandler" );
    
menu_setpropiMenuMPROP_NUMBER_COLOR"\y" );
    
menu_displayidiMenu );

    return 
PLUGIN_HANDLED;
}

public 
Knife_Round()
{

    
set_cvar_string("amx_warname","Captain Knife WAR")
    
server_cmd("mp_autokick 0")
    
server_cmd("mp_autoteambalance 0")
    
set_task3.0"GiveRestartRound"___"a"); 
    
set_task(10.0,"SetKnifeRoundTrue")
}

public 
SetKnifeRoundTrue()
{
    
g_KnifeRound true
}

//Round end Checker
public round_end()
{

    if(
g_MatchStarted)
    {

       
       
//Increment rounds.
        
RoundCounter++


        
ShowScoreHud()
        
CheckForWinningTeam()

        if(
RoundCounter == 15)
        {
            
            
server_cmd("mp_freezetime 6")

            
set_task(7.0,"SwapTeamsMessage")
            
        }

 
    }
}


//Choose the team.
public ChooseTeam(id)
{
    
set_cvar_string("amx_warname","Captain Team Selection")

    
set_dhudmessage(255255255, -1.0, -1.002.06.00.80.8)
    
show_dhudmessage(0,"Captain %s will Choose Team and Players First !",FirstCaptainName)
    
    new 
TeamChooser MakeTeamSelectorMenuid"Please Choose the Team.""TeamHandler" );
    
menu_setpropTeamChooserMPROP_NUMBER_COLOR"\y" );
    
menu_displayidTeamChooser );

}

MakeTeamSelectorMenuid, const szMenuTitle[], const szMenuHandler[])
{
     new 
TeamChooser menu_createszMenuTitleszMenuHandler );
     
menu_additemTeamChooser"\rI Want To Save World(CT)" );
     
menu_additemTeamChooser"\rI Want To Destroy World(T)");

     return 
TeamChooser;
}

public 
TeamHandler(idTeamChooseriItem )
{
    if ( 
iItem == MENU_EXIT )
    {
        
// Recreate menu because user's team has been changed.
        
new TeamChooser MakeTeamSelectorMenuid"Please Choose the Team.""TeamHandler" );
        
menu_setpropTeamChooserMPROP_NUMBER_COLOR"\y" );
        
menu_displayidTeamChooser );

        return 
PLUGIN_HANDLED;
    }


    switch(
iItem)
    {
        
//Chosen CT.
        
case 0:
        {
            
chatcolor(0,"!t[RGC Haveli] !gCaptain !t%s !gWant To Save World",FirstCaptainName)

            
FirstCaptainTeamName 2
         

            
if(get_user_team(id) != 2)
            {
                
SwapPlayer()
            
            }
            
set_cvar_string("amx_warname","=[ Players Selection ]=")
            
set_task(5.0,"LetsFirstChoosePlayers",id)
        }
        
//Chosen T.
        
case 1:
        {

            
FirstCaptainTeamName 1
        

            chatcolor
(0,"!t[RGC Haveli] !gCaptain !t%s !gWant To Destroy World",FirstCaptainName)

            if(
get_user_team(id) != 1)
            {
                
SwapPlayer()
            }

            
set_cvar_string("amx_warname","Players Selection")
            
set_task(5.0,"LetsFirstChoosePlayers",id)
        }
    }
    return 
PLUGIN_HANDLED;
}

// MENU TO CHOOSE PLAYERS !!!
public LetsFirstChoosePlayers(id)
{
     

    new 
players[32], count;     
    
get_players(playerscount,"eh","SPECTATOR"); 

    if(
count 0)
    {
        new 
iChoosePlayers LetsFirstChoosePlayersMenuid"Choose A player.""LetsFirstChoosePlayersHandler" );
        
menu_setpropiChoosePlayersMPROP_NUMBER_COLOR"\y" );
        
menu_displayidiChoosePlayers );
        
        return 
PLUGIN_HANDLED;
    }
    else
    {
        
//TEAMS ARE SET BECAUSE NO PLAYERS IN SPEC!


        

        
set_cvar_string("amx_warname","Teams Are Set!")

        
set_dhudmessage(00255, -1.0, -1.012.06.00.80.8)
        
show_dhudmessage(0,"Put TAG ^n R[*G*]C x |Nick| ^n ---First Half will start Now---")

        
set_task(2.0"GiveRestartRound"); 

        
set_task(4.0,"LiveOnThreeRestart");

        
set_task(8.0,"StartMatch")

        return 
PLUGIN_HANDLED;
    }



    
}

LetsFirstChoosePlayersMenu(id, const szMenuTitle[], const szMenuHandler[])
{


    new 
iChoosePlayers menu_createszMenuTitleszMenuHandler );
    new 
iPlayers[32], iNumiPlayerszPlayerName[32], szUserId[32];
    
get_playersiPlayersiNum"h" );

    new 
PlayerName[128]

    for(new 
;i<iNum;i++)
    {
        
iPlayer iPlayers[i];
       
        
//Add user in the menu if - CONNECTED and TEAM IS T.
        
if(get_user_team(iPlayer) == )
        {             
            
get_user_nameiPlayerszPlayerNamecharsmaxszPlayerName ) );

            
formatex(PlayerName,127,"%s",szPlayerName)

            
formatexszUserIdcharsmaxszUserId ), "%d"get_user_useridiPlayer ) );
            
menu_additemiChoosePlayersPlayerNameszUserId);

        }
        
    
    }
    return 
iChoosePlayers;
}

public 
LetsFirstChoosePlayersHandleridiChoosePlayersiItem )
{
    if ( 
iItem == MENU_EXIT )
    {
        new 
iChoosePlayers LetsFirstChoosePlayersMenuid"Choose A player.""LetsFirstChoosePlayersHandler" );
        
menu_setpropiChoosePlayersMPROP_NUMBER_COLOR"\y" );
        
menu_displayidiChoosePlayers );
        
        return 
PLUGIN_HANDLED;
    }

    new 
szUserId[32], szPlayerName[32], iPlayer,  iCallback;
    
menu_item_getinfoiChoosePlayersiItemiCallbackszUserIdcharsmaxszUserId ), szPlayerNamecharsmaxszPlayerName ), iCallback );

    if ( ( 
iPlayer find_player"k"str_to_numszUserId ) ) )  )
    {

        

        new 
ChoosenPlayer[32
        
get_user_name(iPlayerChoosenPlayercharsmax(ChoosenPlayer)) 
     

     

        

        if(!
is_user_connected(iPlayer))
        {
            new 
iChoosePlayers LetsFirstChoosePlayersMenuid"Choose A player.""LetsFirstChoosePlayersHandler" );
            
menu_setpropiChoosePlayersMPROP_NUMBER_COLOR"\y" );
            
menu_displayidiChoosePlayers );
            
            return 
PLUGIN_HANDLED;
        }
        else
        {
            
CaptainChoosenID id
            WhoChoseThePlayer 
1
            
//cs_set_user_team(iPlayer, cs_get_user_team(id))
            
            
new CsTeams:team cs_get_user_team(id)

            if(
team == CS_TEAM_CT)
            {
                
//transfer player to ct.
                
rg_set_user_team(iPlayer,TEAM_CT,MODEL_AUTO,true)
            }

            if(
team == CS_TEAM_T)
            {
                
//transfer player to Terrorist.
                
rg_set_user_team(iPlayer,TEAM_TERRORIST,MODEL_AUTO,true)
            }

            
            
LetsSecondChoosePlayers(ShowMenuSecond)
            return 
PLUGIN_HANDLED;
        }
    }
    return 
PLUGIN_HANDLED;

}



// MENU TO CHOOSE PLAYERS !!!
public LetsSecondChoosePlayers(id)
{


    new 
players[32], count;     
    
get_players(playerscount,"eh","SPECTATOR"); 

    if(
count 0)
    {
        new 
iChoosePlayers LetsSecondChoosePlayersMenuid"Choose A player.""LetsSecondChoosePlayersHandler" );
        
menu_setpropiChoosePlayersMPROP_NUMBER_COLOR"\y" );
        
menu_displayidiChoosePlayers );

        return 
PLUGIN_HANDLED;
    }
    else
    {
        
//TEAMS ARE SET BECAUSE NO PLAYERS IN SPEC!

        
set_dhudmessage(00255, -1.0, -1.012.06.00.80.8)
        
show_dhudmessage(0,"||Teams are SET|| ^n Get Ready WarrioRS!!! ^n ||First Half will start Now||")
        
        
set_task(2.0"GiveRestartRound"); 

        
set_task(4.0,"LiveOnThreeRestart");

        
set_task(8.0,"StartMatch")

        return 
PLUGIN_HANDLED;
    }
    
}

LetsSecondChoosePlayersMenu(id, const szMenuTitle[], const szMenuHandler[])
{
    new 
iChoosePlayers menu_createszMenuTitleszMenuHandler );
    new 
iPlayers[32], iNumiPlayerszPlayerName[32], szUserId[32];
    
get_playersiPlayersiNum"h" );

    new 
PlayerName[128]

    for(new 
0;i<iNum;i++)
    {
        
iPlayer iPlayers[i];    
 
        
//Add user in the menu if - CONNECTED and TEAM IS T.
        
if(get_user_team(iPlayer) == )
        {
             
            
get_user_nameiPlayerszPlayerNamecharsmaxszPlayerName ) );

            
formatex(PlayerName,127,"%s",szPlayerName)

            
formatexszUserIdcharsmaxszUserId ), "%d"get_user_useridiPlayer ) );
            
menu_additemiChoosePlayersPlayerNameszUserId);

        }
      
        
    }
    return 
iChoosePlayers;
}

public 
LetsSecondChoosePlayersHandleridiChoosePlayersiItem )
{
    if ( 
iItem == MENU_EXIT )
    {
        new 
iChoosePlayers LetsSecondChoosePlayersMenuid"Choose A player.""LetsSecondChoosePlayersHandler" );
        
menu_setpropiChoosePlayersMPROP_NUMBER_COLOR"\y" );
        
menu_displayidiChoosePlayers ); 
        return 
PLUGIN_HANDLED;
    }

    new 
szUserId[32], szPlayerName[32], iPlayeriCallback;
    
menu_item_getinfoiChoosePlayersiItemiCallbackszUserIdcharsmaxszUserId ), szPlayerNamecharsmaxszPlayerName ), iCallback );

    if ( ( 
iPlayer find_player"k"str_to_numszUserId ) ) )  )
    {
       

        new 
ChoosenPlayer[32
        
get_user_name(iPlayerChoosenPlayercharsmax(ChoosenPlayer)) 
     


        if(!
is_user_connected(iPlayer))
        {
            new 
iChoosePlayers LetsSecondChoosePlayersMenuid"Choose A player.""LetsSecondChoosePlayersHandler" );
            
menu_setpropiChoosePlayersMPROP_NUMBER_COLOR"\y" );
            
menu_displayidiChoosePlayers ); 
            return 
PLUGIN_HANDLED;
        }
        else
        {   
            
WhoChoseThePlayer 2
            CaptainChoosenID 
id
            
//cs_set_user_team(iPlayer, cs_get_user_team(id))
            
            
new CsTeams:team cs_get_user_team(id)

            if(
team == CS_TEAM_CT)
            {
                
//transfer player to ct.
                
rg_set_user_team(iPlayer,TEAM_CT,MODEL_AUTO,true)
            }

            if(
team == CS_TEAM_T)
            {
                
//transfer player to Terrorist.
                
rg_set_user_team(iPlayer,TEAM_TERRORIST,MODEL_AUTO,true)
            }

            
            
LetsFirstChoosePlayers(ShowMenuFirst);
            return 
PLUGIN_HANDLED;
        }
        
    }

    return 
PLUGIN_HANDLED;
}


public 
client_disconnected(id)
{
    if(
CaptainSChosen || g_KnifeRound)
    {
        if(
id == gCptCT || id == gCptT)
        {

            if(
is_user_connected(MatchStarterOwner))
            {
                
set_hudmessage(02550, -1.0, -1.002.06.00.80.8, -1)
                
show_hudmessage(0,"Restarting the Match! ^n One of the Captain left the Game.")

                
RestartMatchTask(MatchStarterOwner)
            }
            else
            {

                
StopMatchSpecial()
            }

        }
    }

    if(
g_MatchStarted)
    {

        
g_TotalLeaves++
        
    }


    
}

public 
DoRanking()
{
    new 
KillerName[256], DeathsName[256], BombPName[256], BombDName[256]
    new 
players[32], pnumtempid
    
new topKillerIDtopDeathsIDtopBombPIDtopBombDID
    
new topKillstopDeathstopBombPtopBombD

    get_players
(playerspnum)

    for ( new 
pnum i++ )
    {
    
tempid players[i]
        
    if ( 
g_TotalKills[tempid] >= topKills && g_TotalKills[tempid] )
    {
        
topKills g_TotalKills[tempid]
        
topKillerID tempid
    
}
        
    if ( 
g_TotalDeaths[tempid] >= topDeaths && g_TotalDeaths[tempid] )
    {
        
topDeaths g_TotalDeaths[tempid]
        
topDeathsID tempid
    
}
    
    if ( 
g_BombPlants[tempid] >= topBombP && g_BombPlants[tempid] )
    {
        
topBombP g_BombPlants[tempid]
        
topBombPID tempid
    
}
    
    if ( 
g_BombDefusions[tempid] >= topBombD && g_BombDefusions[tempid] )
    {
        
topBombD g_BombDefusions[tempid]
        
topBombDID tempid
    
}
    }
    
    if ( 
<= topKillerID <= gMaxPlayers )
        
get_user_name(topKillerIDKillerNamecharsmax(KillerName))
    if ( 
<= topDeathsID <= gMaxPlayers )
        
get_user_name(topDeathsIDDeathsNamecharsmax(DeathsName))
    if ( 
<= topBombPID <= gMaxPlayers )
        
get_user_name(topBombPIDBombPNamecharsmax(BombPName))
    if ( 
<= topBombDID <= gMaxPlayers )
        
get_user_name(topBombDIDBombDNamecharsmax(BombDName))
    
    for ( new 
pnum i++ )
    {
    
tempid players[i]
    
    if ( 
g_TotalKills[tempid] == topKills && tempid != topKillerID && g_TotalKills[tempid]  )
    {
        new 
lineToAdd[65] = ", "
        
new pName[64]
        
get_user_name(tempidpNamecharsmax(pName))
        
add(lineToAddcharsmax(lineToAdd), pName)
        
add(KillerNamecharsmax(KillerName) - strlen(BombDName) , lineToAdd)
    }
        
    if ( 
g_TotalDeaths[tempid] == topDeaths && tempid != topDeathsID && g_TotalDeaths[tempid]  )
    {
        new 
lineToAdd[65] = ", "
        
new pName[64]
        
get_user_name(tempidpNamecharsmax(pName))
        
add(lineToAddcharsmax(lineToAdd), pName)
        
add(DeathsNamecharsmax(DeathsName) - strlen(DeathsName) , lineToAdd)
    }
    
    if ( 
g_BombPlants[tempid] == topBombP && tempid != topBombPID && g_BombPlants[tempid]  )
    {
        new 
lineToAdd[65] = ", "
        
new pName[64]
        
get_user_name(tempidpNamecharsmax(pName))
        
add(lineToAddcharsmax(lineToAdd), pName)
        
add(BombPNamecharsmax(BombPName) - strlen(BombPName) , lineToAdd)
    }
    
    if ( 
g_BombDefusions[tempid] == topBombD && tempid != topBombDID && g_BombDefusions[tempid]  )
    {
        new 
lineToAdd[65] = ", "
        
new pName[64]
        
get_user_name(tempidpNamecharsmax(pName))
        
add(lineToAddcharsmax(lineToAdd), pName)
        
add(BombDNamecharsmax(BombDName) - strlen(BombDName) , lineToAdd)
    }
    }
    

    
msgToDisplay "Match Player Rankings^n-----------------------------^n^nTop Kills - %s [%d Kills]^nTop Deaths - %s [%d Deaths]^nTop Bomb Plants - %s [%d Bomb Plants]^nTop Bomb Defusions - %s [%d Bomb Defusions]^nECS-WAR Total Leavers - %d"
    
format(msgToDisplaycharsmax(msgToDisplay), msgToDisplaystrlen(KillerName) ? KillerName "NONE"topKillsstrlen(DeathsName) ? DeathsName "NONE"topDeaths,
    
strlen(BombPName) ? BombPName "NONE"topBombPstrlen(BombDName) ? BombDName "NONE"topBombDg_TotalLeaves)
            
    new 
taskId 6969        
    set_task
(1.0"displayRankingTable"taskIdmsgToDisplaystrlen(msgToDisplay), "b")

}

public 
displayRankingTable(msgToDisplay[], taskId)
{
    
set_hudmessage(135135135, -1.0, -1.0,  06.06.00.50.15, -1)
    
show_hudmessage(0msgToDisplay)
}


// ====================== FUNCTIONS!! ===========================================================================================

//Prevent from choosing team while match is going on.
public cmdChooseTeam(id)
{
    if(
g_MatchInit || g_KnifeRound || g_MatchStarted)
    {
        
        if (
cs_get_user_team(id) == CS_TEAM_SPECTATOR)
        return 
PLUGIN_HANDLED;
        
chatcolor(id"!g[RGC Haveli] !tYou cannot !gchoose !ta team !ywhile !gMatch !yis !tgoing on.");
        return 
PLUGIN_HANDLED;
    }
    
    return 
PLUGIN_CONTINUE;
}

//Checking for knife
public Event_CurWeapon_NotKnife(id)
{
    if ( !
g_KnifeRound 
        return 

    if( !
user_has_weapon(idCSW_KNIFE ) )
        
give_item(id"weapon_knife"
    
engclient_cmd(id"weapon_knife")
}


//Swap teams.
public cmdTeamSwap()
{
    
    new 
players[32], num
    get_players
(playersnum)
    
    new 
player
    
for(new 0numi++)
    {
        
player players[i]

        
        
//rg_set_user_team(iPlayer,TEAM_CT,MODEL_AUTO,true)
        
rg_set_user_team(playercs_get_user_team(player) == CS_TEAM_T TEAM_CT:TEAM_TERRORIST,MODEL_AUTO,true)
    }
    
    return 
PLUGIN_HANDLED
}

public 
SwapPlayer()
{

    new 
players[32], num
    get_players
(playersnum)
    
    new 
player
    
for(new 0numi++)
    {
        
player players[i]
        if(
get_user_team(player) != 3)
        {

            
rg_set_user_team(playercs_get_user_team(player) == CS_TEAM_T TEAM_CT:TEAM_TERRORIST,MODEL_AUTO,true)
        }
    }
    
    return 
PLUGIN_HANDLED
}

public 
cmdTransferAllInSpec()
{

    new 
Players[32
    new 
playerCountplayer 
    get_players
(PlayersplayerCount"h")

    for(new 
i=0playerCounti++)
    {  
        
player Players[i]

        if(
is_user_connected(player))
        {
            new 
CsTeams:team cs_get_user_team(player)

            if(!(
team == CS_TEAM_UNASSIGNED) || !(team == CS_TEAM_SPECTATOR) )
            {
                
user_kill(player)
                
//cs_set_user_team(player, CS_TEAM_SPECTATOR)
                
set_task(3.0,"DoTransferSpec",player)
            }
            else
            {
                
user_kill(player)
            }
        }

    }

    return 
PLUGIN_HANDLED;
}


public 
DoTransferSpec(id)
{
    if(
is_user_connected(id))
    {
        
user_kill(id)
        
rg_set_user_team(idTEAM_SPECTATOR,MODEL_AUTO,true)
    }
    
}

public 
StartMatch()
{

    
server_cmd("mp_forcechasecam 2")
    
server_cmd("mp_forcecamera 2")
    
server_cmd("mp_autokick 1")

    
set_cvar_string("amx_warname","[RGC Haveli] Started!")

     
//Set allow jetpack to one
    

    
set_task3.0"GiveRestartRound"___"a"); 

    
g_MatchInit false
    
    CaptainSChosen 
false
    
    
//EXEC some CFG over here.    
    
chatcolor(0,"!t[RGC Haveli] !yPlease !gTry !yNot to !tLeave !gThe Match!")
    
chatcolor(0,"!t[RGC Haveli] !tFirst Half !gStarted")
    
chatcolor(0,"!t[RGC Haveli] !gAttention ! !yThe !tMatch !yHas Been !g STARTED !")

    new 
ServerName[512]

    
//change server name
    // formatex(ServerName,charsmax(ServerName),"[RGC Haveli]- %s VS. %s In Progress",FirstCaptainName,SecondCaptainName)
    
formatex(ServerName,charsmax(ServerName),"[RGC] Haveli #PUBWAR 24/7",FirstCaptainName,SecondCaptainName)

    
server_cmd("hostname ^"%s^"",ServerName)

    
ServerName[0] = 0

    set_task
(11.0,"MatchStartedTrue")


    
//Set the status of half to first half.
    
isFirstHalfStarted true



    set_task
(12.0,"FirstHalfHUDMessage")

}


//Swap Team Message !.
public SwapTeamsMessage()
{

    
GiveRestartRound()

    
set_task(3.0,"TeamSwapMessage")

    
set_task(7.0,"FirstHalfCompletedHUDMessage")

    
set_task(12.0,"SwapTeamsAndRestartMatch")
}
//Swap teams and restart the match.
public SwapTeamsAndRestartMatch()
{
    
//Swap Teams.
    
cmdTeamSwap()

    
GiveRestartRound();

    
set_task(2.0,"LiveOnThreeRestart");

    
//Give Restart
    
set_task(4.0"GiveRestartRound"___"a"); 

    
chatcolor(0,"!t[RGC Haveli] !gTeams !yHave Been !gSwapped !");
    
chatcolor(0,"!t[RGC Haveli] !gSecond half !yhas been !gStarted !");

    
//Set first half status to zero.
    
isFirstHalfStarted false
    isSecondHalfStarted 
true
    set_task
(14.0,"SecondHalfHUDMessage")

    
LoadMatchSettings()

}


public 
ShowScoreHud()
{

        new 
score_message[1024]

        if(
ScoreFtrstTeam ScoreScondteam)
        {
            
format(score_message1023"* [RGC Haveli] Team [ %s ] winning %i to  %i ",FirstCaptainName,ScoreFtrstTeam,ScoreScondteam)

            
set_dhudmessage(25525500.00.9002.05.00.80.8)
            
show_dhudmessage(0score_message)
        }

        if(
ScoreScondteam ScoreFtrstTeam)
        {
            
format(score_message1023"* [RGC Haveli] Team [ %s ] winning %i To %i",SecondCaptainName,ScoreScondteam,ScoreFtrstTeam)

            
set_dhudmessage(25525500.00.9002.05.00.80.8)
            
show_dhudmessage(0score_message)
        }

        if(
ScoreFtrstTeam == ScoreScondteam)
        {
            
format(score_message1023"* [RGC Haveli] Both Teams Have Won %i Rounds.",ScoreScondteam)

            
set_dhudmessage(25525500.00.9002.05.00.80.8)
            
show_dhudmessage(0score_message)
        }
}

public 
CheckForWinningTeam()
{
    if(
ScoreFtrstTeam >= 16)
    {
        
//Change description of the game.
          
        
new GameDescBuffer[32]
        
formatex(GameDescBuffer,charsmax(GameDescBuffer),"GG! %d To %d",ScoreFtrstTeam,ScoreScondteam)
            
        
set_cvar_string("amx_warname",GameDescBuffer)
        
//screenshot_setup()
        
server_cmd("mp_freezetime 6");
        
set_task(7.0,"FirstTeamWinnerMessage")
    }

    if(
ScoreScondteam >= 16)
    {   

        new 
GameDescBuffer[32]
        
formatex(GameDescBuffer,charsmax(GameDescBuffer),"GG! %d To %d",ScoreScondteam,ScoreFtrstTeam)
        
set_cvar_string("amx_warname",GameDescBuffer)

        
//screenshot_setup()
        
server_cmd("mp_freezetime 6");
        
set_task(7.0,"SecondTeamWinnerMessage"
    }
   
    if((
ScoreFtrstTeam == 15) & (ScoreScondteam == 15))
    {

        
set_cvar_string("amx_warname","WAR Draw!")

        
server_cmd("mp_freezetime 6");
        
server_cmd("sv_restart 1"); 
        
        
set_task(2.0,"MatchDrawMessage")
    }
}
// Transfer a player to spec.
public TransferToSpec(id)
{
    if(
is_user_connected(id))
    {
        new 
CsTeams:team cs_get_user_team(id)
   
        if( 
is_user_connected(id) && (team != CS_TEAM_UNASSIGNED) && (team != CS_TEAM_SPECTATOR) )
        {
            new 
TransferedName[32
            
get_user_name(idTransferedNamecharsmax(TransferedName))

            
user_kill(id)

            
set_task(3.0,"DoTransferSpec",id)

        }
    }
    
    
    return 
PLUGIN_HANDLED
}


//Winner message. - First team won!
public FirstTeamWonTheMatch()
{
    
set_dhudmessage(02550, -1.0, -1.002.06.00.80.8)
    
show_dhudmessage(0,"Team [ %s ]  Won The Match !! ^n GG WP To Team %s ..",FirstCaptainName,FirstCaptainName)

    
set_cvar_string("amx_warname","-= WAR About To Start! =-")
}

//Winner message. - Second team won!
public SecondTeamWonTheMatch()
{
    
set_dhudmessage(02550, -1.0, -1.002.06.00.80.8)
    
show_dhudmessage(0,"Team [ %s ] Won The Match !! ^n GG WP To Team %s  !",SecondCaptainName,SecondCaptainName)

    
set_cvar_string("amx_warname","-= WAR About To Start! =-")
}

//Match is draw!
public MatchDraw()
{
    
set_dhudmessage(02550, -1.0, -1.002.06.00.80.8)
    
show_dhudmessage(0,"= { Match Draw } = ^n GG WP To Both Teams :D")
    
set_cvar_string("amx_warname","-= WAR About To Start! =-")
  
}


//Load Match settings because match has been started !
public LoadMatchSettings()
{

    
// server_cmd("amxx pause ad_manager.amxx")
    
server_cmd("sv_alltalk 0")
    
server_cmd("mp_autoteambalance 0")
    
server_cmd("mp_freezetime 8")
}

//Load PuB settings because Match is over!
public LoadPubSettings()
{

    
set_cvar_string("amx_warname","-= WAR About To Start! =-")

    
//Set some zero.
    
CaptainChoosenID 0
    WhoChoseThePlayer 
0
    g_TotalLeaves 
0
    g_TotalKills
[0] = 0
    g_TotalDeaths
[0] = 0
    g_BombPlants
[0] = 0
    g_BombDefusions
[0] = 0
    msgToDisplay
[0] = 0
    remove_task
(6969)

    
//ALL HALF STATUS TO FALSE.
    
isFirstHalfStarted false
    isSecondHalfStarted 
false


    FirstCaptainTeamName 
0

    MatchStarterOwner 
0
    CaptainSChosen 
false

    g_KnifeRound 
false

    
    g_MatchInit 
false
    g_MatchStarted 
false
    RoundCounter 
0

    gCptT 
0
    gCptCT 
0
    CaptainCount 
0

    ScoreFtrstTeam 
0
    ScoreScondteam 
0
  
    ShowMenuFirst 
0
    ShowMenuSecond 
0

  
   
    FirstCaptainName
[0] = 0
    SecondCaptainName
[0] = 0
  
    TempFirstCaptain
[0] = 0
    TempSecondCaptain
[0] = 0

    server_cmd
("exec server.cfg")
    
set_task3.0"GiveRestartRound"___"a"); 
    

}

public 
FirstTeamWinnerMessage()
{

    
GiveRestartRound()


    
set_task(3.0,"MatchIsOverHUDMessage")
    
set_task(7.0,"SecondHalfCompletedHUDMessage")
    
set_task(13.0,"FirstTeamWonTheMatch")
    
set_task(20.0,"DoRanking")
    
set_task(32.0,"LoadPubSettings")
}

public 
SecondTeamWinnerMessage()
{
    
GiveRestartRound()

    
set_task(3.0,"MatchIsOverHUDMessage")
    
set_task(7.0,"SecondHalfCompletedHUDMessage")
    
set_task(13.0,"SecondTeamWonTheMatch")
    
set_task(20.0,"DoRanking")
    
set_task(32.0,"LoadPubSettings")
}

public 
MatchDrawMessage()
{
    
set_task(3.0,"MatchIsOverHUDMessage")
    
set_task(7.0,"SecondHalfCompletedHUDMessage")       
    
set_task(13.0,"MatchDraw")
    
set_task(20.0,"DoRanking")
    
set_task(32.0,"LoadPubSettings")
}

public 
SecondCapWonKnifeRoundWonMsg(id)
{
    
set_dhudmessage(255255255, -1.0, -1.002.03.00.80.8)
    
show_dhudmessage(0,"Captain [ %s ] Won the Knife Round !",FirstCaptainName)

    
chatcolor(0,"!t[RGC Haveli] !gCaptain !t%s !gWon !ythe !tKnife Round !",FirstCaptainName)

    
set_task(5.0,"ChooseTeam",gCptCT)
  
}

public 
FirstCapWonKnifeRoundMsg(id)
{
    
set_dhudmessage(255255255, -1.0, -1.002.03.00.80.8)
    
show_dhudmessage(0,"Captain [ %s ] Won the Knife Round !",FirstCaptainName)

    
chatcolor(0,"!t[RGC Haveli] !gCaptain !t%s !gWon !ythe !tKnife Round !",FirstCaptainName)

    
set_task(5.0,"ChooseTeam",gCptT)
    
}

public 
ShowScoreToUser(id)
{
    if(
g_MatchStarted)
    {

        if(
isFirstHalfStarted)
        {
            if(( 
FirstCaptainTeamName == 1) || (get_user_team(id) == 2))
            {
                
chatcolor(id,"!t[RGC Haveli] !yYour !gTeam's Score !yis: !t%i | !gOpponent's Team !tScore: !t %i",ScoreScondteam,ScoreFtrstTeam)
            }
            
            if(( 
FirstCaptainTeamName == ) || (get_user_team(id) == 1)  )
            {    
                
chatcolor(id,"!t[RGC Haveli] !yYour !gTeam's Score !yis: !t%i | !gOpponent's Team !tScore: !t %i",ScoreFtrstTeam,ScoreScondteam)
            }

            if((
FirstCaptainTeamName == 2) || (get_user_team(id)) == 2)
            {
                
chatcolor(id,"!t[RGC Haveli] !yYour !gTeam's Score !yis: !t%i | !gOpponent's Team !tScore: !t %i",ScoreFtrstTeam,ScoreScondteam)
            }

            if( (
FirstCaptainTeamName == 2) || (get_user_team(id) == 1) )
            {
                
chatcolor(id,"!t[RGC Haveli] !yYour !gTeam's Score !yis: !t%i | !gOpponent's Team !tScore: !t %i",ScoreScondteam,ScoreFtrstTeam)
            }
        }

        if(
isSecondHalfStarted)
        {
            if(( 
FirstCaptainTeamName == 1) || (get_user_team(id) == 2))
            {
                
chatcolor(id,"!t[RGC Haveli] !yYour !gTeam's Score !yis: !t%i | !gOpponent's Team !tScore: !t %i",ScoreFtrstTeam,ScoreScondteam)
            }
            
            if(( 
FirstCaptainTeamName == ) || (get_user_team(id) == 1)  )
            {    
                
chatcolor(id,"!t[RGC Haveli] !yYour !gTeam's Score !yis: !t%i | !gOpponent's Team !tScore: !t %i",ScoreScondteam,ScoreFtrstTeam)
            }

            if((
FirstCaptainTeamName == 2) || (get_user_team(id)) == 2)
            {
                
chatcolor(id,"!t[RGC Haveli] !yYour !gTeam's Score !yis: !t%i | !gOpponent's Team !tScore: !t %i",ScoreScondteam,ScoreFtrstTeam)
            }

            if( (
FirstCaptainTeamName == 2) || (get_user_team(id) == 1) )
            {
                
chatcolor(id,"!t[RGC Haveli] !yYour !gTeam's Score !yis: !t%i | !gOpponent's Team !tScore: !t %i",ScoreFtrstTeam,ScoreScondteam)
            }
        }
    }
}

public 
ShowScoreOnRoundStart()
{

    new 
players[32],num,iPlayer
    get_players
(players,num,"h");
    

    for(new 
i=0;i<num;i++)
    {
        
iPlayer players[i];

        if(
isFirstHalfStarted)
        {
            if(( 
FirstCaptainTeamName == 1) && (get_user_team(iPlayer) == 2))
            {
                
chatcolor(iPlayer,"!t[RGC Haveli] !yYour !gTeam's Score !yis: !t%i | !gOpponent's Team !tScore: !t %i",ScoreScondteam,ScoreFtrstTeam)
            }
            
            if(( 
FirstCaptainTeamName == ) && (get_user_team(iPlayer) == 1)  )
            {    
                
chatcolor(iPlayer,"!t[RGC Haveli] !yYour !gTeam's Score !yis: !t%i | !gOpponent's Team !tScore: !t %i",ScoreFtrstTeam,ScoreScondteam)
            }

            if((
FirstCaptainTeamName == 2) && (get_user_team(iPlayer)) == 2)
            {
                
chatcolor(iPlayer,"!t[RGC Haveli] !yYour !gTeam's Score !yis: !t%i | !gOpponent's Team !tScore: !t %i",ScoreFtrstTeam,ScoreScondteam)
            }

            if( (
FirstCaptainTeamName == 2) && (get_user_team(iPlayer) == 1) )
            {
                
chatcolor(iPlayer,"!t[RGC Haveli] !yYour !gTeam's Score !yis: !t%i | !gOpponents !tScore: !t %i",ScoreScondteam,ScoreFtrstTeam)
            }
        }

        if(
isSecondHalfStarted)
        {
            if(( 
FirstCaptainTeamName == 1) && (get_user_team(iPlayer) == 2))
            {
                
chatcolor(iPlayer,"!t[RGC Haveli] !yYour !gTeam's Score !yis: !t%i | !gOpponent's Team !tScore: !t %i",ScoreFtrstTeam,ScoreScondteam)
            }
            
            if(( 
FirstCaptainTeamName == ) && (get_user_team(iPlayer) == 1)  )
            {    
                
chatcolor(iPlayer,"!t[RGC Haveli] !yYour !gTeam's Score !yis: !t%i | !gOpponent's Team !tScore: !t %i",ScoreScondteam,ScoreFtrstTeam)
            }

            if((
FirstCaptainTeamName == 2) && (get_user_team(iPlayer)) == 2)
            {
                
chatcolor(iPlayer,"!t[RGC Haveli] !yYour !gTeam's Score !yis: !t%i | !gOpponent's Team !tScore: !t %i",ScoreScondteam,ScoreFtrstTeam)
            }

            if( (
FirstCaptainTeamName == 2) && (get_user_team(iPlayer) == 1) )
            {
                
chatcolor(iPlayer,"!t[RGC Haveli] !yYour !gTeam's Score !yis: !t%i | !gOpponent's Team !tScore: !t %i",ScoreFtrstTeam,ScoreScondteam)
            }
        }
    }
    
}

//To restart the round.
public GiveRestartRound( ) 

    
server_cmd"sv_restartround ^"1^"" ); 


//All MESSAGES.
public FirstHalfHUDMessage()
{
    
set_dhudmessage(0255255, -1.0, -1.002.03.00.80.8)
    
show_dhudmessage(0,"={ First Half Started ! }=^n --[ %s ]--^n--[ %s ]--^n--[ %s ]--","LIVE !!! GL & HF","LIVE !!! GL & HF","LIVE !!! GL & HF")
}

public 
randomeFirstHalfHUDMessage()
{
    
set_dhudmessage(25500, -1.0, -1.012.03.00.80.8)
    
show_dhudmessage(0,"-=||First Half Started||=- ^n --[ %s ]--^n--[ %s ]--^n--[ %s ]--","LIVE !!! GL & HF","LIVE !!! GL & HF","LIVE !!! GL & HF")
}

public 
SecondHalfHUDMessage()
{
    
set_dhudmessage(0255255, -1.0, -1.002.03.00.80.8)
    
show_dhudmessage(0,"={ Second Half Started ! }=^n --[ %s ]--^n--[ %s ]--^n--[ %s ]--","LIVE !!!","LIVE !!! ","LIVE !!! ")
}

public 
randomeSecondHalfHUDMessage()
{
    
set_dhudmessage(0255255, -1.0, -1.002.03.00.80.8)
    
show_dhudmessage(0,"={ Second Half Started ! }=^n --[ %s ]--^n--[ %s ]--^n--[ %s ]--","LIVE !!!","LIVE !!! ","LIVE !!! ")
}

public 
FirstHalfCompletedHUDMessage()
{
    new 
score_message[1024]

    if(
ScoreFtrstTeam ScoreScondteam)
    {
        
format(score_message1023"={ First Half Score }= ^n %s - %i ^n Winning to ^n %s - %i",FirstCaptainName,ScoreFtrstTeam,SecondCaptainName,ScoreScondteam)

        
set_dhudmessage(0,2550, -1.0, -1.002.04.00.80.8)
        
show_dhudmessage(0score_message)
    }

    if(
ScoreScondteam ScoreFtrstTeam)
    {
        
format(score_message1023"={ First Falf Score }= ^n %s - %i ^n Winning to ^n %s - %i",SecondCaptainName,ScoreScondteam,FirstCaptainName,ScoreFtrstTeam)

        
set_dhudmessage(0,2550, -1.0, -1.002.04.00.80.8)
        
show_dhudmessage(0score_message)
    }

    if(
ScoreFtrstTeam == ScoreScondteam)
    {
        
format(score_message1023"Both Teams Have Won %i Rounds.",ScoreScondteam)

        
set_dhudmessage(0,2550, -1.0, -1.002.04.00.80.8)
        
show_dhudmessage(0score_message)
    }
}


public 
SecondHalfCompletedHUDMessage()
{

    new 
score_message[1024]

    if(
ScoreFtrstTeam ScoreScondteam)
    {
        
format(score_message1023"={ Match Score }=^n %s - %i ^n Winning To ^n %s - %i",FirstCaptainName,ScoreFtrstTeam,SecondCaptainName,ScoreScondteam)

        
set_dhudmessage(0,2550, -1.0, -1.002.04.00.80.8)
        
show_dhudmessage(0score_message)
    }

    if(
ScoreScondteam ScoreFtrstTeam)
    {
        
format(score_message1023"={ Match Score }=^n %s - %i ^n Winning to ^n %s - %i",SecondCaptainName,ScoreScondteam,FirstCaptainName,ScoreFtrstTeam)

        
set_dhudmessage(0,2550, -1.0, -1.002.04.00.80.8)
        
show_dhudmessage(0score_message)
    }

    if(
ScoreFtrstTeam == ScoreScondteam)
    {
        
format(score_message1023"={ Match Score }=^n Both Teams Have Won %i Rounds.",ScoreScondteam)

        
set_dhudmessage(0,2550, -1.0, -1.002.06.00.80.8)
        
show_dhudmessage(0score_message)
    }

}

public 
MatchIsOverHUDMessage()
{
    
set_dhudmessage(0,2550, -1.0, -1.002.03.00.80.8)
    
show_dhudmessage(0,"={ Match Is Over }=")
}

public 
TeamSwapMessage()
{
    
set_dhudmessage(2552550, -1.0, -1.002.03.00.80.8)
    
show_dhudmessage(0,"First Half Over! ^n Teams will be swapped Automatically. Please do not change the Team! ^n Second Half will start Now!")
}

public 
MatchStartedTrue()
{
    
g_MatchStarted true
}

public 
randomeMatchStartedTrue()
{
    
g_MatchStarted true
}

public 
LiveOnThreeRestart()
{

    
set_dhudmessage(42255212, -1.0, -1.002.03.00.80.8)
    
show_dhudmessage(0,"-{ LiVe On 3 RestartS } - ^n -== LO3 =-")
}



/*
*    STOCKS
*
*/
//For color chat
stock chatcolor(const id, const input[], any:...)
{
        new 
count 1players[32]
        static 
msg[191]
        
vformat(msg190input3)
       
        
replace_all(msg190"!g""^4"// Green Color
        
replace_all(msg190"!y""^1"// Default Color
        
replace_all(msg190"!t""^3"// Team Color
        
replace_all(msg190"!m""^0"// Team2 Color   

        
if (idplayers[0] = id; else get_players(playerscount"ch")
        {
                for (new 
0counti++)
                {
                        if (
is_user_connected(players[i]))
                        {
                                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
                                
write_byte(players[i]);
                                
write_string(msg);
                                
message_end();
                        }
                }
        }
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

public StartMatchrandome()
{

    
server_cmd("mp_forcechasecam 2")
    
server_cmd("mp_forcecamera 2")
    
server_cmd("mp_autokick 1")

    
set_cvar_string("amx_warname","[RGC Haveli] Started!")

     
//Set allow jetpack to one
    

    
set_task3.0"GiveRestartRound"___"a"); 

    
g_MatchInit false
    
    CaptainSChosen 
false
    
    
//EXEC some CFG over here.    
    
chatcolor(0,"!t[RGC Haveli] !yPlease !gTry !yNot to !tLeave !gThe Match!")
    
chatcolor(0,"!t[RGC Haveli] !tFirst Half !gStarted")
    
chatcolor(0,"!t[RGC Haveli] !gAttention ! !yThe !tMatch !yHas Been !g STARTED !")

    new 
ServerName[512]

    
//change server name
    // formatex(ServerName,charsmax(ServerName),"[RGC Haveli]- %s VS. %s In Progress",FirstCaptainName,SecondCaptainName)
    
formatex(ServerName,charsmax(ServerName),"[RGC] Haveli #24/7 PUBWAR")

    
server_cmd("hostname ^"%s^"",ServerName)

    
ServerName[0] = 0

    set_task
(11.0,"MatchStartedTrue")


    
//Set the status of half to first half.
    
isFirstHalfStarted true

    set_task
(12.0,"randomeFirstHalfHUDMessage")
}


////////////////////////////////////////////////////////////////////////////////////////////////////
public EventCurWeaponid ) {
    if( 
g_bKnifeRound engclient_cmdid"weapon_knife" );
    return 
PLUGIN_CONTINUE;
}

public 
CmdRestartRoundidlevelcid ) {
    if ( !
cmd_accessidlevelcid) ) return PLUGIN_HANDLED;
    
    
g_bKnifeRound false;
    
set_task3.0"GiveRestartRound"___"a"); 
    
    
    return 
PLUGIN_CONTINUE;
}

public 
CmdKnifeRoundidlevelcid 
{    
    if( !
cmd_accessidlevelcid) ) return PLUGIN_HANDLED;
    
    
CmdRestartRoundidlevelcid );  
    
    
set_task2.0"KnifeRoundStart"id );
    
    
set_cvar_string("amx_warname","Team-A v/s Team-b Knife War")
    
chatcolor(0"!g[%s] !yKnife !tRound !gStarted"KR_TAG );
    
chatcolor(0"!g[%s] !yKnife !tKnife !gKnife"KR_TAG );
    
chatcolor(0"!g[%s] !yKnife !gRound !yAmong !tTeam-A !gv/s !tTeam-B"KR_TAG );
    
chatcolor(0"!g[%s] !yKnife !gRound !yAmong !tTeam-A !gv/s !tTeam-B"KR_TAG );
    
server_cmd("mp_autokick 0")
    
server_cmd("mp_autoteambalance 0")

    
set_dhudmessage(00255, -1.0, -1.006.012.00.10.2)
    
show_dhudmessage(0"||Knife Round Started|| ^n-=|Team-A v/s Team-B|=-")
    
    return 
PLUGIN_CONTINUE;
}

public 
CmdSwapTeamsid,level,cid 
{
    if( !
cmd_accessidlevelcid) ) return PLUGIN_HANDLED;
    
    
SwapTeams( );
    
CmdRestartRoundidlevelcid );
    
    return 
PLUGIN_CONTINUE;
}

public 
KnifeRoundStart( ) 
{
    
g_bKnifeRound true;
    
g_bVotingProcess false;
    
    new 
players32 ], num;
    
get_playersplayersnum );
    
    for( new 
0num i++ )
    {
        new 
item players];
        
EventCurWeaponitem );
    }
    
    return 
PLUGIN_CONTINUE;
}

public 
SwapTeams( )
{
    {
        for( new 
1<= g_iMaxPlayersi++ )
        if( 
is_user_connected) )
        {
            switch( 
cs_get_user_team) )
            {
                case 
CS_TEAM_Tcs_set_user_teamiCS_TEAM_CT );            
                case 
CS_TEAM_CTcs_set_user_teamiCS_TEAM_T );
            }
        }
    }
}

public 
EventRoundEnd( ) 
{
    if( 
g_bKnifeRound && get_pcvar_numg_pSwapVote ) ) {
        new 
players32 ], num;
        
get_playersplayersnum"ae""TERRORIST" );
        
        if(!
num
        {
            
chatcolor(0"!g[%s] !yKnife Round !gWon !tCounter-Terorrist"KR_TAG );
            
set_dhudmessage(20000, -1.0, -1.016.08.00.10.2)
            
show_dhudmessage(0"Knife Round Won Counter-Terorrist ^nSwap Vote Has Been Starting...")

            
set_task6.0"vote_ct" );
        }
        else
        {            
            
chatcolor(0"!g[%s] !yKnife Round !gWon !tTerorrist"KR_TAG );
            
set_dhudmessage(20000, -1.0, -1.016.08.00.10.2)
            
show_dhudmessage(0"Knife Round Won Terorrist ^nSwap Vote Has Been Starting...")

            
set_task6.0"vote_t" );  
        }    
    }
    
g_bKnifeRound false;
    
    return 
PLUGIN_CONTINUE;
}

public 
vote_t( ) 
{
    for( new 
1<= g_iMaxPlayersi++ ) {
        if( 
is_user_alive) && cs_get_user_team) == CS_TEAM_T )
        {
            
ShowMenurandome);
        }
    }
    
set_task8.0"finishvote" );
}

public 
vote_ct( ) 
{
    for( new 
1<= g_iMaxPlayersi++ ) {
        if( 
is_user_alive) && cs_get_user_team) == CS_TEAM_CT )
        {
            
ShowMenurandome);
        }
    }
    
set_task8.0"finishvote" );
}

public 
ShowMenurandomeid 
{
    
g_bVotingProcess true;
    
    if( 
g_bVotingProcess ) {
        new 
szMenuBody256 ], keys;

        new 
nLen formatszMenuBody255"\yWhat You Want^n" );
        
nLen += formatszMenuBody[nLen], 255-nLen"^n\y1. \rI Want To Swap Team" );
        
nLen += formatszMenuBody[nLen], 255-nLen"^n\y2. \rI Want To Stay" );
        
nLen += formatszMenuBody[nLen], 255-nLen"^n^n\y0. \wExit" );

        
keys = ( 1<<1<<1<<);

        
show_menuidkeysszMenuBody, -);
    }
    
    return 
PLUGIN_CONTINUE;
}

public 
MenuCommandidkey 
{
    if( !
g_bVotingProcess ) return PLUGIN_HANDLED;
    
    new 
szName32 ];
    
get_user_nameidszNamecharsmaxszName ) );
    
    switch( 
key )
    {
        case 
0
        {
            
g_Votes]++;
            
chatcolor(0"!g[%s] !t%s !yHas Been Voted !gTo Swap Team",KR_TAGszName);
        }
        case 
1
        {
            
g_Votes]++;
            
chatcolor(0"!g[%s] !t%s !yHas Been Voted !gTo Stay",KR_TAGszName);
        }  
        case 
9show_menuid0"" );
    } 
    
    return 
PLUGIN_HANDLED;
}

public 
finishvote( ) 
{
    if( !
g_bVotingProcess ) return PLUGIN_HANDLED;
    
    
server_cmd"sv_restartround 1" );
    
    if ( 
g_Votes] > g_Votes] ) 
    {
        
chatcolor(0"!g[%s] !yTeam Has Been !tSwaped !gBy Voting",KR_TAG);
        
SwapTeams( );

        
set_dhudmessage(20000, -1.0, -1.026.08.00.10.2)
        
show_dhudmessage(0"First Half Will Be Live In 10Sec.....")

        
set_task(10.0"StartMatchrandome")
    }
    else
    {
        
chatcolor(0"!g[%s] !yTeam Has Been !tStay !gBy Voting",KR_TAG);

        
set_dhudmessage(20000, -1.0, -1.026.08.00.10.2)
        
show_dhudmessage(0"First Half Will Be Live In 10Sec.....")

        
set_task(10.0"StartMatchrandome")
    }
    
    
g_Votes] = 0;
    
g_Votes] = 0;
    
g_bVotingProcess false;
    
    return 
PLUGIN_HANDLED;
}

public 
HamKnifePrimAttackiEnt ) {
    if( 
g_bKnifeRound && get_pcvar_numg_pNoslash ) ) 
    {
        
ExecuteHamBHam_Weapon_SecondaryAttackiEnt );          
        return 
HAM_SUPERCEDE;
    }
    return 
HAM_IGNORED;
}

public 
BlockCmds( ) {
    if( 
g_bKnifeRound ) {
        return 
PLUGIN_HANDLED_MAIN;
    }
    return 
PLUGIN_CONTINUE;

Can anyone fix this warnings?
Please dont say you can ignore this warnings -_-
PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c1997-2013 ITB CompuPhaseAMX Mod X Team

Warning
Symbol is never used"id" on line 636
Warning
Symbol is never used"id" on line 797
Warning
: Function "LetsFirstChoosePlayers" should return a value on line 891
Warning
Symbol is never used"id" on line 922
Warning
: Function "LetsSecondChoosePlayers" should return a value on line 1022
Warning
Symbol is never used"id" on line 1052
Header size
:           4292 bytes
Code size
:            52040 bytes
Data size
:            43940 bytes
Stack
/heap size:      16384 bytesmaxusage is unknowndue to recursion
Total requirements
:  116656 bytes

6 Warnings
.
Done
If you have perfectly working Pub War Plugin, please post here!
__________________

Last edited by CrAzY MaN; 12-10-2017 at 03:28.
CrAzY MaN is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 12-10-2017 , 05:16   Re: Need help in fixing warnings
Reply With Quote #2

You got absolutely no knowledge about scripting. Yet you post in a scripting help section so that other people would fix your plugin which only god knows where you got it from. Don`t expect help if you don`t want to keep the forum nice and tidy from all the random posts. "Scripting help" forum is for consultation on how to do things or ask for help optimizing the code you wrote. "Suggestions / requests" is for stuff like this, a place where you post random crap and expect someone to fix it.
__________________
retired chump
DjSoftero is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-10-2017 , 08:50   Re: Need help in fixing warnings
Reply With Quote #3

If a symbol is never used - remove it.
If it says it should return a value - do what it wants and return a value in the end of the function.

You didn't even try to read what the error says, not to mention trying to fix it.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 12-10-2017 , 12:32   Re: Need help in fixing warnings
Reply With Quote #4

Ok thanks
Delete this post!
__________________
CrAzY MaN is offline
soumyadip77
Senior Member
Join Date: Jul 2017
Location: INDIA,KOLKATA
Old 12-10-2017 , 21:12   Re: Need help in fixing warnings
Reply With Quote #5

#what the hell my privet plugin......how it leak......
soumyadip77 is offline
Send a message via Skype™ to soumyadip77
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 12-11-2017 , 01:37   Re: Need help in fixing warnings
Reply With Quote #6

just like that, that`s why i don`t sell/share my stuff
__________________
retired chump
DjSoftero is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-11-2017 , 08:20   Re: Need help in fixing warnings
Reply With Quote #7

Quote:
Originally Posted by soumyadip77 View Post
#what the hell my privet plugin......how it leak......
So, you're trying to tell me that the guy who posted this a month ago is a creator of the huge plugin posted in this thread? I almost believed you.
__________________

Last edited by OciXCrom; 12-11-2017 at 09:53.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
soumyadip77
Senior Member
Join Date: Jul 2017
Location: INDIA,KOLKATA
Old 12-11-2017 , 09:43   Re: Need help in fixing warnings
Reply With Quote #8

sad
soumyadip77 is offline
Send a message via Skype™ to soumyadip77
Abhinash
Senior Member
Join Date: Jan 2015
Location: India,kolkata
Old 12-12-2017 , 13:18   Re: Need help in fixing warnings
Reply With Quote #9

Soumyadeep are you the author of the Pub war plugin used in NarC server and other Indian servers.
Then Trust me. You are the worst coder who dosent knows debugging.
Abhinash is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 12-12-2017 , 13:26   Re: Need help in fixing warnings
Reply With Quote #10

Quote:
Originally Posted by soumyadip77 View Post
#what the hell my privet plugin......how it leak......
Some people tend to only put the .AMXX files on the server host and license them to only work on a specific ip, due to multiple reason. No matter where you are hosting the server, the plug-ins can always be leaked if the .sma file is also on the host. All hosting companies are part of DDoS attacks and stuff like that, data leak etc. I know that AMXX is open-source and the rules are to always provide the .sma where u provide the .amxx so, for that reason, I also provide the .sma files on my hosting account. But I chose one of the best game hosting companies and I needen't worry. DDOS attacks rarely happen because they use InterNap and they have a very good firewall and protection, something that few companies really offer because it's very expensive. I hope that I'm not advertising, but I suggest you go with an NFO VPS running either Linux or Windows, and your plug-ins will be secured.
DarthMan is offline
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 21:16.


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