SA-MP Forums Archive
[Ajuda] Oque falta? e onde acho para colocar nesse sistema de GGs e ORGs - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Oque falta? e onde acho para colocar nesse sistema de GGs e ORGs (/showthread.php?tid=403208)



Oque falta? e onde acho para colocar nesse sistema de GGs e ORGs - yuran - 29.12.2012

galera estou fazendo um sistema de ORGs e GGs so q falta muita coisa e queria saber oque dessas muitas e onde acho
tutoriais ensinando a fazer essas coisas quem puder ajuda obrigado. ^^

Code:
#include <a_samp>
#define Branco 0xFFFFFFAA
#define Verde 0x00DE00FF
#include <dini>
enum Info
{
    Groove
};

new PlayerInfo [MAX_PLAYERS] [Info];
new VGrove [12];

public OnFilterScriptInit()
{
    VGrove[0]= AddStaticVehicleEx(405,2486.50000000,-1682.69995117,13.30000019,270.00000000,16,16,15); //1Sentinel
    VGrove[1]= AddStaticVehicleEx(536,2492.59960938,-1682.50000000,13.19999981,270.00000000,16,16,15); //2Blade
    VGrove[2] = AddStaticVehicleEx(461,2501.89990234,-1680.90002441,13.10000038,34.00000000,16,16,15); //3PCJ-600
    VGrove[3] = AddStaticVehicleEx(468,2502.89990234,-1680.50000000,13.10000038,38.00000000,16,16,15); //4Sanchez
    VGrove[4] = AddStaticVehicleEx(521,2503.69995117,-1679.69995117,13.00000000,44.00000000,16,16,15); //5FCR-900
    VGrove[5] = AddStaticVehicleEx(522,2504.30004883,-1678.90002441,13.00000000,42.00000000,16,16,15); //6NRG-500
    VGrove[6] = AddStaticVehicleEx(536,2506.60009766,-1675.90002441,13.19999981,326.00000000,16,16,15); //7Blade
    VGrove[7] = AddStaticVehicleEx(536,2508.19995117,-1666.09997559,13.30000019,9.99731445,16,16,15); //8Blade
    VGrove[8] = AddStaticVehicleEx(536,2502.39990234,-1657.40002441,13.30000019,54.00000000,16,16,15); //9Blade
    VGrove[9] = AddStaticVehicleEx(603,2499.89941406,-1684.89941406,13.39999962,21.99462891,16,16,15); //10Phoenix
    VGrove[10] = AddStaticVehicleEx(487,2506.30004883,-1694.59997559,18.20000076,48.00000000,86,16,15); //11Maverick
    VGrove[11] = AddStaticVehicleEx(548,2530.10009766,-1677.50000000,21.79999924,90.00000000,16,16,15); //12Cargobob

    return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER) { VerificarVeiculo(playerid); }

    return 1;
}

forward VerificarVeiculo(playerid);
public VerificarVeiculo(playerid)
{
    for(new c = 0; c <= 11; c++)
    {
        if(IsPlayerInVehicle(playerid, VGrove[c]))
        {
            SendClientMessage(playerid, Branco, "Vocк nгo й da Groove Street.");
            RemovePlayerFromVehicle(playerid);
        }
    }

    return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
    SalvarOrg(playerid);

    return 1;
}
forward SalvarOrg(playerid);
public SalvarOrg(playerid)
{
    new arquivo[60], nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, nome, sizeof(nome));
    format(arquivo, sizeof(arquivo), "Contas\%s.ini", nome);
    if(!dini_Exists(arquivo))
    {
        dini_Create(arquivo);
    }
    if(PlayerInfo[playerid][Groove] > 0) dini_IntSet(arquivo, "Groove", PlayerInfo[playerid][Groove]);
    return 1;
}



Re: Oque falta? e onde acho para colocar nesse sistema de GGs e ORGs - Galhardo - 29.12.2012

Criar mais gangs.
Criar orgs cops.
Criar territуrios.