Need help please.
#5

pawn Код:
public OnGameModeInit()
{
    // Default Rates
        SendRconCommand("onfoot_rate 100");
    SendRconCommand("incar_rate 100");
    SendRconCommand("weapon_rate 100");
    SendRconCommand("stream_distance 200.0");
    SendRconCommand("stream_rate 2000");
    Streamer_TickRate(100);
   
    // Security check
    SetTimer("LoginTimeCheck", 1000, 1);

    mysql_connection = mysql_connect(MYSQL_IP, MYSQL_USER, MYSQL_DB, MYSQL_PASSWORD);
    //mysql_debug();

    new a[][] =
    {
        "Unarmed (Fist)",
        "Brass K"
    };
    #pragma unused a

    //InitDatabase();
    djson_GameModeInit();
   
    // Initialise Dispatch
    for(new v=0; v<MAX_DP_CARS; v++)
    {
        DPCar[v][dpCarID] = 0;
        format(DPCar[v][dpFaction], 10, "None");
        format(DPCar[v][dpModel], 24, "None");
        DPCar[v][dpOfficerID] = -1;
    }
   
    for(new s=0; s<MAX_DP_SITS; s++)
    {
        DPSituation[s][dpStatus] = 0;
        format(DPSituation[s][dpLoc], 50, "None");
        format(DPSituation[s][dpDesc], 50, "None");
        DPSituation[s][dpCar1] = -1;
        DPSituation[s][dpCar2] = -1;
        DPSituation[s][dpCar3] = -1;
        DPSituation[s][dpCar4] = -1;
    }
   
    no20 = 0;
   
    // Explosion system Initialization
    RandomLAFireTimer();
    RandomCCFireTimer();
    for(new i=0; i<MAX_FIRES; i++)
    {
        Fire[i][Fire_Exists] = 0;
        Fire[i][Fire_Taken] = 0;
        Fire[i][Fire_Zone] = MAX_ZONE_NAME;
        Fire[i][Fire_id] = 0;
        Fire[i][Fire_X] = 0.0;
        Fire[i][Fire_Y] = 0.0;
        Fire[i][Fire_Z] = 0.0;
        FireHealth[i] = 0;
    }
    for(new i; i < MAX_PLAYERS; i++)
    {
        PlayerFireTimer[i][2] = -1;
    }
Reply


Messages In This Thread
Need help please. - by warlord321 - 25.03.2014, 17:19
Re: Need help please. - by warlord321 - 25.03.2014, 17:37
Re : Need help please. - by mirou123 - 25.03.2014, 17:49
Re: Need help please. - by warlord321 - 25.03.2014, 17:57
Re: Need help please. - by warlord321 - 25.03.2014, 18:00
Re: Need help please. - by Konstantinos - 25.03.2014, 18:04
Re: Need help please. - by warlord321 - 25.03.2014, 18:24

Forum Jump:


Users browsing this thread: 2 Guest(s)