Quantcast
Channel: SA-MP Forums
Viewing all 18226 articles
Browse latest View live

[Ajuda] Proibir ids de entrar no veiculo menos quem digitou o comando

$
0
0
parece simples mas estou bugando como faco para Proibir ids de entrar no veiculo menos quem digitou o comando

PHP Code:

CMD:marcarcarro(playerid)
{
    
// anti bugs
    
if( Marcado[playerid] == true )
        return 
SendClientMessage(playerid, -1"<!> voce ja marcou um carro");
    new 
ran random(3);
    new 
rand randomsizeof(CarrosRoubo) );
    
SetPlayerCheckpoint(playeridCarrosRoubo[rand][0], CarrosRoubo[rand][1], CarrosRoubo[rand][2], 3);
    if (
ran == 0)
        
carro_roubo[playerid] = AddStaticVehicle(410CarrosRoubo[rand][0], CarrosRoubo[rand][1], CarrosRoubo[rand][2], CarrosRoubo[rand][3], 11);
        
MotorQuebrado[carro_roubo[playerid]] = false;
    if (
ran == 1
        
carro_roubo[playerid] = AddStaticVehicle(478CarrosRoubo[rand][0], CarrosRoubo[rand][1], CarrosRoubo[rand][2], CarrosRoubo[rand][3], 11);
        
MotorQuebrado[carro_roubo[playerid]] = false;
    if (
ran == 2)
        
carro_roubo[playerid] = AddStaticVehicle(402CarrosRoubo[rand][0], CarrosRoubo[rand][1], CarrosRoubo[rand][2], CarrosRoubo[rand][3], 11);
        
MotorQuebrado[carro_roubo[playerid]] = false;
    
SendClientMessage(playeridVERDE_CLARO"*Veiculo marcado no mapa va ate a localizacao e faca o roubo");
    
Marcado[playerid] = true;
    return 
1;

public 
OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    
SendClientMessage(playeridVERDE_CLARO"* Para ligar o motor use: /motor ou aperte 'Y'.");
    
UltimoVeiculo[playerid] = vehicleid;
    if( 
vehicleid == carro_roubo[playerid] )
        {
        
/*    if( Player[playerid][pEmprego] != LadraoCarros )
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, LARANJA, "[VS:RP] Voce nao tem a chave desse veiculo!");
            }*/
            
DisablePlayerCheckpoint(playerid);
            
SendClientMessage(playerid, -1"*Foi marcado no mapa o local de venda do veiculo leve ate la.");
            
SetPlayerCheckpoint(playerid, -1708.3495,10.3581,3.38642);
        }



Invalid Dataype - Help Please

$
0
0
Hi, i have some errors in mysql_log and i don't know from where these come, what i mean is how i can see which line caused this problem to resolve it.

(THIS IS MUCH MORE LONGER THAN THIS)

[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype
[12:37:06 02/18/20] [ERROR] cache_get_field_content_int - invalid datatype

Porta no samp

[Ajuda] Seta skin apenas para playerid 0 / seta skin para 0

$
0
0
Basicamente, se o id 0 da /skin [skin id], seta normalmente, mas se o id 1 da /skin, ele seta skin para o id 0

PHP Code:

// Topo do GM
new skin[MAX_PLAYERS];

// Comando
CMD:skin(playeridparams[]) return cmd_ms(playeridparams);
CMD:ms(playeridparams[])
{
    if(
IsPlayerInAnyVehicle(playerid)) {return SendClientMessage(playeridCOLOUR_ERRO"{00FF00}[SdK]: {FFFFFF}Você deve sair de seu veículo.");}
    if(
GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DUCK) {return SendClientMessage(playerid,COLOUR_ERRO,"{00FF00}[SdK]: {FFFFFF}Você não pode trocar o skin estando agachado!");}
    if(
GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_ENTER_VEHICLE) {return 1;}
    if(
sscanf(params"d"skin)){ return SendClientMessage(playeridCOLOUR_ERRO"[SdK]: Comando inválido! Utilize /SKIN [ID]");}
    if(
skin[playerid] > 311 || skin[playerid] < 0){SendClientMessage(playeridCOLOUR_ERRO,"[SdK]: Skin inválida!");}
    
SetPlayerSkin(playeridskin[playerid]);
    
SendClientMessage(playeridCOLOUR_INFORMACAO,"{00FF00}[SdK]: {FFFFFF}Skin definida com sucesso!");
    return 
1;


Outro problema: quando um player da /skin, ele retorna a mensagem de erro, porem, seta skin do player para 0

Looking at a point

$
0
0
Hey guys, sorry again for disturbing you!
How can I set my players camera looking at a point? After I freeze my character, i want it to look at a point. I tried SetPlayerCameraLookAt, but it sets my camera at the default server connecting place(on the sky). SetPlayerFacingAngle sets only the rotation of the character. How should I solve this? Thank you!

[Ajuda] Objetos

$
0
0
Gostaria de saber como posso pegar baixar alguns objetos do samp para eu poder colocar usando a ferramenta de replace no MTA? Onde vou para pegar os modelos ?

Setting Vehicle Logos

$
0
0
Is it possible to change the logos that appear on the sides of trailers, delivery vans, etc.?



I have looked all over the forums, searched online, and also the SAMP wiki but I can't find any information about this. I've tried changing the colors of the trailers and vans but neither of the two colors seem to correspond to the logo that appears on them. For instance, if I set a trailer's colors to 1, 1 I can stream the vehicle out and when it streams back in the logo is different but the color is the same.

Thank you in advance.

[Help] Objects

$
0
0
How can i export a object model from samp? Like the object od 19388

[Ajuda] Botão F.

$
0
0
Olá, será que é possível bloquear ou aplicar funções para os botões F1, F2 etc?
Gostaria muito de tirar esta dúvida.

Agradeço á todos.

Problem with saving after some hours

$
0
0
Hi,

I made a roleplay gamemode for our server - Real Life Los Santos RP but I have problem with saving/loading - every time when the server is running for a few hours (10 - 20h) it stops saving (maybe loading too) accounts, vehicles, weed, drops, furniture…. everything and I have to do hard reset of server and everything is working again - everything saves good (I tried to repair it for example - I have every minute saving of almost all files on server but it doesn't help). Simply every time it's saving good for a few hours and suddenly STOP and for example when you disconnect the server and connect you will be on same position like when server made STOP of saving. I don't understand it absolutely. I am using file system Y_ini. My server is running on our czech paid hosting on linux. Sorry for my bad english, I am from the czech republic. If you need some next scripts from the gamemode, write please.
Thanks for every help.


Code:


public OnGameModeExit()
{
        //--------------VOZIDLA-----------------------
        for(new i=0; i< MAX_VEHICLES; i++)
        {
                if(IsValidVehicle(i))
                  {
                    if(strlen(CarOwner[i]))
                    {
                                new Float:X, Float:Y, Float:Z, Float:A, color1, color2, Float:health;
                                GetVehiclePos(i, X, Y, Z);
                                GetVehicleZAngle(i, A);
                                CarX[i] = X;
                                CarY[i] = Y;
                                CarZ[i] = Z;
                                CarA[i] = A;
                                GetVehicleColor(i, color1, color2);
                                CarColor1[i] = color1;
                                CarColor2[i] = color2;
                                new engine, lights, alarm, doors, bonnet, boot, objective;
                                GetVehicleParamsEx(i, engine, lights, alarm, doors, bonnet, boot, objective);
                                CarLock[i] = doors;
                                GetVehicleHealth(i, health);
                                CarHealth[i] = health;
                                CarComponentType1[i] = GetVehicleComponentInSlot(i, CARMODTYPE_SPOILER);
                                CarComponentType2[i] = GetVehicleComponentInSlot(i, CARMODTYPE_HOOD);
                                CarComponentType3[i] = GetVehicleComponentInSlot(i, CARMODTYPE_ROOF);
                                CarComponentType4[i] = GetVehicleComponentInSlot(i, CARMODTYPE_SIDESKIRT);
                                CarComponentType5[i] = GetVehicleComponentInSlot(i, CARMODTYPE_LAMPS);
                                CarComponentType6[i] = GetVehicleComponentInSlot(i, CARMODTYPE_NITRO);
                                CarComponentType7[i] = GetVehicleComponentInSlot(i, CARMODTYPE_EXHAUST);
                                CarComponentType8[i] = GetVehicleComponentInSlot(i, CARMODTYPE_WHEELS);
                                CarComponentType9[i] = GetVehicleComponentInSlot(i, CARMODTYPE_STEREO);
                                CarComponentType10[i] = GetVehicleComponentInSlot(i, CARMODTYPE_HYDRAULICS);
                                CarComponentType11[i] = GetVehicleComponentInSlot(i, CARMODTYPE_FRONT_BUMPER);
                                CarComponentType12[i] = GetVehicleComponentInSlot(i, CARMODTYPE_REAR_BUMPER);
                                CarComponentType13[i] = GetVehicleComponentInSlot(i, CARMODTYPE_VENT_RIGHT);
                                CarComponentType14[i] = GetVehicleComponentInSlot(i, CARMODTYPE_VENT_LEFT);
                                CarVirtualWorld[i] = GetVehicleVirtualWorld(i);
                        //---------------
                                new INI:File = INI_Open(VehiclePath(i));
                                INI_SetTag(File,"data");
                                INI_WriteString(File,"Owner",CarOwner[i]);
                                INI_WriteInt(File,"Faction",CarFaction[i]);
                                INI_WriteInt(File,"Model",CarModel[i]);
                                INI_WriteFloat(File,"X",CarX[i]);
                                INI_WriteFloat(File,"Y",CarY[i]);
                                INI_WriteFloat(File,"Z",CarZ[i]);
                                INI_WriteFloat(File,"A",CarA[i]);
                                INI_WriteInt(File,"Color1",CarColor1[i]);
                                INI_WriteInt(File,"Color2",CarColor2[i]);
                                INI_WriteInt(File,"Lock",CarLock[i]);
                                INI_WriteFloat(File,"SpawnX",CarSpawnX[i]);
                                INI_WriteFloat(File,"SpawnY",CarSpawnY[i]);
                                INI_WriteFloat(File,"SpawnZ",CarSpawnZ[i]);
                                INI_WriteFloat(File,"Fuel",CarFuel[i]);
                                INI_WriteInt(File,"ComponentType1",CarComponentType1[i]);
                                INI_WriteInt(File,"ComponentType2",CarComponentType2[i]);
                                INI_WriteInt(File,"ComponentType3",CarComponentType3[i]);
                                INI_WriteInt(File,"ComponentType4",CarComponentType4[i]);
                                INI_WriteInt(File,"ComponentType5",CarComponentType5[i]);
                                INI_WriteInt(File,"ComponentType6",CarComponentType6[i]);
                                INI_WriteInt(File,"ComponentType7",CarComponentType7[i]);
                                INI_WriteInt(File,"ComponentType8",CarComponentType8[i]);
                                INI_WriteInt(File,"ComponentType9",CarComponentType9[i]);
                                INI_WriteInt(File,"ComponentType10",CarComponentType10[i]);
                                INI_WriteInt(File,"ComponentType11",CarComponentType11[i]);
                                INI_WriteInt(File,"ComponentType12",CarComponentType12[i]);
                                INI_WriteInt(File,"ComponentType13",CarComponentType13[i]);
                                INI_WriteInt(File,"ComponentType14",CarComponentType14[i]);
                                INI_WriteInt(File,"Nadrz",CarNadrz[i]);
                                INI_WriteFloat(File,"Spotreba",CarSpotreba[i]);
                                INI_WriteInt(File,"Najeto",CarNajeto[i]);
                                INI_WriteInt(File,"Baterka",CarBaterka[i]);
                                INI_WriteBool(File,"Radio",CarRadio[i]);
                                INI_WriteFloat(File,"Health",CarHealth[i]);
                                INI_WriteInt(File,"CarZbran1",CarZbran1[i]);
                                INI_WriteInt(File,"CarZbran2",CarZbran2[i]);
                                INI_WriteInt(File,"CarZbran3",CarZbran3[i]);
                                INI_WriteInt(File,"CarZbran4",CarZbran4[i]);
                                INI_WriteInt(File,"CarZbran5",CarZbran5[i]);
                                INI_WriteInt(File,"CarNaboje1",CarNaboje1[i]);
                                INI_WriteInt(File,"CarNaboje2",CarNaboje2[i]);
                                INI_WriteInt(File,"CarNaboje3",CarNaboje3[i]);
                                INI_WriteInt(File,"CarNaboje4",CarNaboje4[i]);
                                INI_WriteInt(File,"CarNaboje5",CarNaboje5[i]);
                                INI_WriteInt(File,"CarMarihuana_SourDiesel",CarMarihuana_SourDiesel[i]);
                                INI_WriteInt(File,"CarMarihuana_OGKush",CarMarihuana_OGKush[i]);
                                INI_WriteInt(File,"CarMarihuana_Blueberry",CarMarihuana_Blueberry[i]);
                                INI_WriteInt(File,"CarMarihuana_LemonHaze",CarMarihuana_LemonHaze[i]);
                                INI_WriteInt(File,"CarXanax",CarXanax[i]);
                                INI_WriteInt(File,"CarLean",CarLean[i]);
                                INI_WriteInt(File,"CarActavis",CarActavis[i]);
                                INI_WriteInt(File,"CarSprunk",CarSprunk[i]);
                                INI_WriteInt(File,"CarKoka",CarKoka[i]);
                                INI_WriteInt(File,"CarKokain",CarKokain[i]);
                                INI_WriteInt(File,"CarHeroin",CarHeroin[i]);
                                INI_WriteInt(File,"CarCigaretyMarlboro",CarCigaretyMarlboro[i]);
                    INI_WriteInt(File,"CarCigaretyLM",CarCigaretyLM[i]);
                    INI_WriteInt(File,"CarCigaretyChesterfield",CarCigaretyChesterfield[i]);
                    INI_WriteInt(File,"CarCigaretyCamel",CarCigaretyCamel[i]);
                    INI_WriteInt(File,"CarCigaretyPS",CarCigaretyPS[i]);
                    INI_WriteInt(File,"CarCigaretyPhillipMorris",CarCigaretyPhillipMorris[i]);
                    INI_WriteInt(File,"CarDoutnikyMonteCristo",CarDoutnikyMonteCristo[i]);
                    INI_WriteInt(File,"CarDoutnikyRomeoJulieta",CarDoutnikyRomeoJulieta[i]);
                    INI_WriteInt(File,"CarDoutnikyCabinetta",CarDoutnikyCabinetta[i]);
                    INI_WriteInt(File,"CarDoutnikyConservas",CarDoutnikyConservas[i]);
                    INI_WriteInt(File,"CarNabytek",CarNabytek[i]);
                    INI_WriteInt(File,"CarZelezo",CarZelezo[i]);
                    INI_WriteInt(File,"CarPenize",CarPenize[i]);
                    INI_WriteBool(File,"CarNaprodej",CarNaprodej[i]);
                    INI_WriteInt(File,"CarNaprodejCena",CarNaprodejCena[i]);
                    INI_WriteBool(File,"CarPizza",CarPizza[i]);
                    INI_WriteBool(File,"CarKvetinac",CarKvetinac[i]);
                    INI_WriteBool(File,"CarKonev",CarKonev[i]);
                    INI_WriteInt(File,"CarCrack",CarCrack[i]);
                    INI_WriteInt(File,"CarJedlaSoda",CarJedlaSoda[i]);
                    INI_WriteInt(File,"CarMakSety",CarMakSety[i]);
                    INI_WriteInt(File,"CarMorfin",CarMorfin[i]);
                    INI_WriteInt(File,"CarExtaze",CarExtaze[i]);
                    INI_WriteInt(File,"CarAdrenalin",CarAdrenalin[i]);
                    INI_WriteBool(File,"CarKlic",CarKlic[i]);
                    INI_WriteInt(File,"CarVirtualWorld",CarVirtualWorld[i]);
                    INI_WriteInt(File,"CarInterior",CarInterior[i]);
                                INI_Close(File);
                                Delete3DTextLabel(CarNaprodejLabel[i]);
                                DestroyVehicle(i);
                                printf("Hracske vozidlo ID:%d uspesne ulozeno!", i);
                        }
                }
        }
        //--------------ROZPOCTY---------------------
        new INI:TFile = INI_Open(TrezorPATH);
        INI_WriteInt(TFile, "TrezorPD", frakce_trezor[M_PoliceDepartment]);
        INI_WriteInt(TFile, "TrezorFD", frakce_trezor[M_FireDepartment]);
        INI_WriteInt(TFile, "TrezorEMS", frakce_trezor[M_EmergencyMedicalServices]);
        INI_WriteInt(TFile, "TrezorTAXI", frakce_trezor[M_Taxi]);
        INI_WriteInt(TFile, "TrezorGARAGE", frakce_trezor[M_ImportGarage]);
        INI_WriteInt(TFile, "TrezorCARSCHOOL", frakce_trezor[M_CarSchool]);
        INI_Close(TFile);
        print("Trezory uspesne ulozeny!");
        //--------------SKUPINY---------------------
        for(new i= 1; i < MAX_GROUPS; i++)
        {
            if(strlen(Group[i][Owner]))
            {
                        new temp[128];
                        format(temp,sizeof(temp),GroupPATH,i);
                        new INI:File = INI_Open(temp);
                        INI_WriteString(File, "Owner", Group[i][Owner]);
                        INI_WriteString(File, "Name", Group[i][Name]);
                        INI_Close(File);
                        printf("Skupina ID:%d uspesne ulozena!", i);
                }
        }
        //------------DOMY----------------
        new count = 0;
        for(new i = HOUSE_START_ID; i < HOUSE_MAX_ID; i++)
        {
                if(!strcmp(House[i][Owner], "Naprodej"))
                {
                        if(!House[i][ID]) continue;
                        SaveHouse(i);
                        count++;
                        printf("dum_id: %d", i);
                }
                else
                {
                        if(!House[i][ID]) continue;
                        SaveHouse(i);
                        count++;
                        printf("dum_id: %d", i);
                }
        }
        printf("Pocet ulozenych domu je %d.", count);
        //------------BUSINESSY-------------
        new fcount = 0;
        for(new i = BUSINESS_START_ID; i <BUSINESS_MAX_ID; i++)
        {
                if(!strcmp(Business[i][Owner], "Naprodej"))
                {
                        if(!Business[i][ID]) continue;
                        SaveBusiness(i);
                        fcount++;
                }
                else
                {
                        if(!Business[i][ID]) continue;
                        SaveBusiness(i);
                        fcount++;
                }
        }
        printf("Pocet ulozenych byznisu je %d.", fcount);
        return 1;
}

public OnPlayerConnect(playerid)
{
        new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
        KontrolaJmena(playerid, name);
        //--------------
    Prihlaseny[playerid] = false;
        NovyHrac[playerid] = false;
        ZakazPsani[playerid] = true;
        Brigada_BIO_ENGINEERING[playerid] = 0;
        Brigada_LOADING_BAY[playerid] = 0;
        Taser[playerid] = false;
        Vyplata[playerid] = 0;
        Zraneny[playerid] = false;
        Jointvruce[playerid] = 0;
        Koureni[playerid] = false;
        MobilStav[playerid] = false;
        Calling[playerid] = -1;
        Zatceny[playerid] = false;
        AdvertText[playerid] = "";
        Sprejovani[playerid] = 0;
        NabytekID[playerid] = 0;
        UsingAnim[playerid] = false;
        Spawnuty[playerid] = false;
        BusCompanyTrasa[playerid] = 0;
        BusCompanyTrasaCP[playerid] = 0;
        TruckingCompanyTrasa[playerid] = 0;
        PizzaDeliveryTrasa[playerid] = 0;
        PizzaDeliveryGuy[playerid] = 0;
        Holding[playerid] = 0;
        VareniDrog[playerid] = false;
        VareniDrogObjectID[playerid] = 0;
        VareniDrogKoka[playerid] = 0;
        VareniDrogMakSety[playerid] = 0;
        VareniDrogKokain[playerid] = 0;
        VareniDrogMorfin[playerid] = 0;
        VareniDrogAdrenalin[playerid] = 0;
        VareniDrogJedlaSoda[playerid] = 0;
        Zhuleny[playerid] = 0;
        ZhulenyTimer[playerid] = 0;
    ZfetovanyXanax[playerid] = 0;
        ZfetovanyXanaxTimer[playerid] = 0;
        ZfetovanyExtaze[playerid] = 0;
        ZfetovanyExtazeTimer[playerid] = 0;
        ZfetovanyCrack[playerid] = 0;
        ZfetovanyCrackTimer[playerid] = 0;
        ZfetovanyMorfin[playerid] = 0;
        ZfetovanyMorfinTimer[playerid] = 0;
        ZfetovanyKokain[playerid] = 0;
        ZfetovanyKokainTimer[playerid] = 0;
        ZfetovanyHeroin[playerid] = 0;
        ZfetovanyHeroinTimer[playerid] = 0;
        UpravovaneVozidlo[playerid] = 0;
        Pasy[playerid] = false;
        //------------
        PlayerInfo[playerid][Penize] = 0;
        PlayerInfo[playerid][Administrator] = 0;
          PlayerInfo[playerid][Zabiti] = 0;
          PlayerInfo[playerid][Umrti] = 0;
          PlayerInfo[playerid][Skin] = 0;
    PlayerInfo[playerid][PosledniPoziceX] = 0.0;
    PlayerInfo[playerid][PosledniPoziceY] = 0.0;
    PlayerInfo[playerid][PosledniPoziceZ] = 0.0;
    PlayerInfo[playerid][BankaUcet] = false;
    PlayerInfo[playerid][BankaPIN] = 0;
          PlayerInfo[playerid][BankaPenize] = 0;
    PlayerInfo[playerid][ObcanskyPrukaz] = false;
    PlayerInfo[playerid][RidicskyPrukazA] = false;
    PlayerInfo[playerid][RidicskyPrukazB] = false;
    PlayerInfo[playerid][RidicskyPrukazC] = false;
    PlayerInfo[playerid][LeteckyPrukazA] = false;
    PlayerInfo[playerid][LeteckyPrukazB] = false;
    PlayerInfo[playerid][LeteckyPrukazC] = false;
    PlayerInfo[playerid][LodniPrukaz] = false;
          PlayerInfo[playerid][ZbrojniPrukaz] = false;
          PlayerInfo[playerid][ObcanskyPrukaz] = false;
    PlayerInfo[playerid][ObcanskyPrukaz] = false;
    PlayerInfo[playerid][ObcanskyPrukaz] = false;
    PlayerInfo[playerid][Vek] = 0;
        format(PlayerInfo[playerid][Bydliste], 64, "");
        format(PlayerInfo[playerid][RodneMesto], 64, "");
        PlayerInfo[playerid][ObcankaVek] = 0;
        format(PlayerInfo[playerid][ObcankaBydliste], 64, "");
        format(PlayerInfo[playerid][ObcankaRodneMesto], 64, "");
        PlayerInfo[playerid][Frakce] = 0;
        PlayerInfo[playerid][Hodnost] = 0;
        PlayerInfo[playerid][Papirky] = 0;
        PlayerInfo[playerid][Zapalovac] = 0;
        PlayerInfo[playerid][Marihuana_SourDiesel] = 0;
        PlayerInfo[playerid][Marihuana_OGKush] = 0;
        PlayerInfo[playerid][Marihuana_Blueberry] = 0;
        PlayerInfo[playerid][Marihuana_LemonHaze] = 0;
        PlayerInfo[playerid][Xanax] = 0;
        PlayerInfo[playerid][Lean] = 0;
        PlayerInfo[playerid][Actavis] = 0;
        PlayerInfo[playerid][Sprunk] = 0;
        PlayerInfo[playerid][Koka] = 0;
        PlayerInfo[playerid][Kokain] = 0;
        PlayerInfo[playerid][Lzicka] = 0;
        PlayerInfo[playerid][Interior] = 0;
        PlayerInfo[playerid][VirtualWorld] = 0;
          PlayerInfo[playerid][Zbran0] = 0;
          PlayerInfo[playerid][Zbran1] = 0;
          PlayerInfo[playerid][Zbran2] = 0;
          PlayerInfo[playerid][Zbran3] = 0;
          PlayerInfo[playerid][Zbran4] = 0;
          PlayerInfo[playerid][Zbran5] = 0;
          PlayerInfo[playerid][Zbran6] = 0;
          PlayerInfo[playerid][Zbran7] = 0;
    PlayerInfo[playerid][Zbran8] = 0;
    PlayerInfo[playerid][Zbran9] = 0;
    PlayerInfo[playerid][Zbran10] = 0;
    PlayerInfo[playerid][Zbran11] = 0;
    PlayerInfo[playerid][Zbran12] = 0;
    PlayerInfo[playerid][Naboje0] = 0;
    PlayerInfo[playerid][Naboje1] = 0;
    PlayerInfo[playerid][Naboje2] = 0;
    PlayerInfo[playerid][Naboje3] = 0;
    PlayerInfo[playerid][Naboje4] = 0;
    PlayerInfo[playerid][Naboje5] = 0;
    PlayerInfo[playerid][Naboje6] = 0;
    PlayerInfo[playerid][Naboje7] = 0;
    PlayerInfo[playerid][Naboje8] = 0;
    PlayerInfo[playerid][Naboje9] = 0;
    PlayerInfo[playerid][Naboje10] = 0;
    PlayerInfo[playerid][Naboje11] = 0;
    PlayerInfo[playerid][Naboje12] = 0;
    PlayerInfo[playerid][Duty] = false;
    PlayerInfo[playerid][Pokuta] = 0;
    format(PlayerInfo[playerid][PosledniPokutaDuvod], 64, "");
    PlayerInfo[playerid][VezeniCas] = 0;
    PlayerInfo[playerid][CigaretyMarlboro] = 0;
    PlayerInfo[playerid][CigaretyLM] = 0;
    PlayerInfo[playerid][CigaretyChesterfield] = 0;
    PlayerInfo[playerid][CigaretyCamel] = 0;
    PlayerInfo[playerid][CigaretyPS] = 0;
    PlayerInfo[playerid][CigaretyPhillipMorris] = 0;
    PlayerInfo[playerid][DoutnikyMonteCristo] = 0;
    PlayerInfo[playerid][DoutnikyRomeoJulieta] = 0;
    PlayerInfo[playerid][DoutnikyCabinetta] = 0;
    PlayerInfo[playerid][DoutnikyConservas] = 0;
    PlayerInfo[playerid][Mobil] = false;
    PlayerInfo[playerid][SIM] = 0;
    PlayerInfo[playerid][Kredit] = 0;
    PlayerInfo[playerid][Zamestnani] = 0;
    PlayerInfo[playerid][Nabytek] = 0;
    PlayerInfo[playerid][NahranyCas] = 0;
    PlayerInfo[playerid][Skupina] = 0;
    PlayerInfo[playerid][Napoveda] = false;
    PlayerInfo[playerid][Zelezo] = 0;
    PlayerInfo[playerid][GPS] = false;
    PlayerInfo[playerid][HotelCas] = 0;
    PlayerInfo[playerid][PlayerBusinessID] = 0;
    PlayerInfo[playerid][Crack] = 0;
    PlayerInfo[playerid][JedlaSoda] = 0;
    PlayerInfo[playerid][MakSety] = 0;
    PlayerInfo[playerid][Morfin] = 0;
    PlayerInfo[playerid][Extaze] = 0;
    PlayerInfo[playerid][Adrenalin] = 0;
    PlayerInfo[playerid][Seminko_Marihuana_SourDiesel] = 0;
        PlayerInfo[playerid][Seminko_Marihuana_OGKush] = 0;
        PlayerInfo[playerid][Seminko_Marihuana_Blueberry] = 0;
        PlayerInfo[playerid][Seminko_Marihuana_LemonHaze] = 0;
        PlayerInfo[playerid][Seminko_Koka] = 0;
        //--------------------------------------------------------------
        ResetPlayerDamages(playerid);
        //-------------------------------------------------
        if(fexist(UserPath(playerid)))
        {
                INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                  ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_WHITE"Přihlášení",""COL_WHITE"Vítej znovu na "COL_LIGHTGREEN"Real Life Los Santos Roleplay\n\n"COL_WHITE"Přihlas se zadáním hesla:","Prihlasit","Odejit");
        }
        else
        {
                ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registrace",""COL_WHITE"Vítej na "COL_LIGHTGREEN"Real Life Los Santos Roleplay"COL_WHITE"!\n\n"COL_WHITE"Registruj se zadáním hesla:","Registrovat","Odejit");
        }


//-------------------

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case DIALOG_REGISTER:
        {
            if (!response) return Kick(playerid);
            if(response)
            {
                if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registrace",""COL_RED"Heslo musí obsahovat alespoň jeden znak!\n\n"COL_WHITE"Vítej na "COL_LIGHTGREEN"Real Life Los Santos Roleplay"COL_WHITE"!\n\n"COL_WHITE"Registruj se zadáním hesla:","Registrovat","Odejít");
                new INI:File = INI_Open(UserPath(playerid));
                //---------------------UKLADANI HRACE--------------
                INI_SetTag(File,"data");
                INI_WriteInt(File,"Password",udb_hash(inputtext));
                INI_WriteInt(File,"Cash",0);
                INI_WriteInt(File,"Administrator",0);
                INI_WriteInt(File,"Kills",0);
                INI_WriteInt(File,"Deaths",0);
                INI_WriteFloat(File,"PosledniPoziceX",0.0);
                INI_WriteFloat(File,"PosledniPoziceY",0.0);
                INI_WriteFloat(File,"PosledniPoziceZ",0.0);
                INI_WriteBool(File,"BankaUcet",false);
                INI_WriteInt(File,"BankaPIN",0);
                INI_WriteInt(File,"BankaPenize",0);
                INI_WriteBool(File,"ObcanskyPrukaz",false);
                INI_WriteBool(File,"RidicskyPrukazA",false);
                INI_WriteBool(File,"RidicskyPrukazB",false);
                INI_WriteBool(File,"RidicskyPrukazC",false);
                INI_WriteBool(File,"RidicskyPrukazD",false);
                INI_WriteBool(File,"LeteckyPrukazA",false);
                INI_WriteBool(File,"LeteckyPrukazB",false);
                INI_WriteBool(File,"LeteckyPrukazC",false);
                INI_WriteBool(File,"LodniPrukaz",false);
                INI_WriteBool(File,"ZbrojniPrukaz",false);
                INI_WriteInt(File,"Vek",0);
                INI_WriteString(File,"Bydliste","Nezname");
                INI_WriteString(File,"RodneMesto","Nezname");
                INI_WriteInt(File,"ObcankaVek",0);
                INI_WriteString(File,"ObcankaBydliste","Nezname");
                INI_WriteString(File,"ObcankaRodneMesto","Nezname");
                INI_WriteInt(File,"Frakce",0);
                INI_WriteInt(File,"Hodnost",0);
                                  INI_WriteInt(File,"Papirky",0);
                                  INI_WriteInt(File,"Zapalovac",0);
                                  INI_WriteInt(File,"Marihuana_SourDiesel",0);
                                  INI_WriteInt(File,"Marihuana_OGKush",0);
                                  INI_WriteInt(File,"Marihuana_Blueberry",0);
                                  INI_WriteInt(File,"Marihuana_LemonHaze",0);
                                  INI_WriteInt(File,"Xanax",0);
                                  INI_WriteInt(File,"Lean",0);
                                  INI_WriteInt(File,"Actavis",0);
                                  INI_WriteInt(File,"Sprunk",0);
                                  INI_WriteInt(File,"Koka",0);
                                  INI_WriteInt(File,"Kokain",0);
                                  INI_WriteInt(File,"Lzicka",0);
                                  INI_WriteInt(File,"Heroin",0);
                                  INI_WriteInt(File,"Interior",0);
                                  INI_WriteInt(File,"VirtualWorld",0);
                                  INI_WriteInt(File,"Zbran0",0);
                                  INI_WriteInt(File,"Zbran1",0);
                                  INI_WriteInt(File,"Zbran2",0);
                                  INI_WriteInt(File,"Zbran3",0);
                                  INI_WriteInt(File,"Zbran4",0);
                                  INI_WriteInt(File,"Zbran5",0);
                                  INI_WriteInt(File,"Zbran6",0);
                                  INI_WriteInt(File,"Zbran7",0);
                                  INI_WriteInt(File,"Zbran8",0);
                                  INI_WriteInt(File,"Zbran9",0);
                                  INI_WriteInt(File,"Zbran10",0);
                                  INI_WriteInt(File,"Zbran11",0);
                                  INI_WriteInt(File,"Zbran12",0);
                                  INI_WriteInt(File,"Naboje0",0);
                                  INI_WriteInt(File,"Naboje1",0);
                                  INI_WriteInt(File,"Naboje2",0);
                                  INI_WriteInt(File,"Naboje3",0);
                                  INI_WriteInt(File,"Naboje4",0);
                                  INI_WriteInt(File,"Naboje5",0);
                                  INI_WriteInt(File,"Naboje6",0);
                                  INI_WriteInt(File,"Naboje7",0);
                                  INI_WriteInt(File,"Naboje8",0);
                                  INI_WriteInt(File,"Naboje9",0);
                                  INI_WriteInt(File,"Naboje10",0);
                                  INI_WriteInt(File,"Naboje11",0);
                                  INI_WriteInt(File,"Naboje12",0);
                                  INI_WriteBool(File,"Duty",false);
                                  INI_WriteInt(File,"Pokuta",0);
                                  INI_WriteString(File,"PosledniPokutaDuvod","Zadny");
                                  INI_WriteInt(File,"VezeniCas",0);
                                  INI_WriteInt(File,"CigaretyMarlboro",0);
                                  INI_WriteInt(File,"CigaretyLM",0);
                                  INI_WriteInt(File,"CigaretyChesterfield",0);
                                  INI_WriteInt(File,"CigaretyCamel",0);
                                  INI_WriteInt(File,"CigaretyPS",0);
                                  INI_WriteInt(File,"CigaretyPhilipMorris",0);
                                  INI_WriteInt(File,"DoutnikyMonteCristo",0);
                                  INI_WriteInt(File,"DoutnikyRomeoJulieta",0);
                                  INI_WriteInt(File,"DoutnikyCabinetta",0);
                                  INI_WriteInt(File,"DoutnikyConservas",0);
                                  INI_WriteInt(File,"Skupina",0);
                                  INI_WriteInt(File,"Mobil",false);
                                  INI_WriteInt(File,"SIM",0);
                                  INI_WriteInt(File,"Kredit",0);
                                  INI_WriteInt(File,"Zamestnani",0);
                                  INI_WriteInt(File,"Nabytek",0);
                                  INI_WriteInt(File,"NahranyCas",0);
                                  INI_WriteInt(File,"Napoveda",false);
                                  INI_WriteInt(File,"Zelezo",0);
                INI_Close(File);
                //---------------------------------------------
               
                PlayerInfo[playerid][Penize] = 0;
                PlayerInfo[playerid][Administrator] = 0;
                PlayerInfo[playerid][Zabiti] = 0;
                PlayerInfo[playerid][Umrti] = 0;
                PlayerInfo[playerid][Skin] = 0;
                PlayerInfo[playerid][PosledniPoziceX] = 0.0;
                PlayerInfo[playerid][PosledniPoziceY] = 0.0;
                PlayerInfo[playerid][PosledniPoziceZ] = 0.0;
                PlayerInfo[playerid][BankaUcet] = false;
                PlayerInfo[playerid][BankaPIN] = 0;
                PlayerInfo[playerid][BankaPenize] = 0;
                PlayerInfo[playerid][ObcanskyPrukaz] = false;
                PlayerInfo[playerid][RidicskyPrukazA] = false;
                PlayerInfo[playerid][RidicskyPrukazB] = false;
                PlayerInfo[playerid][RidicskyPrukazC] = false;
                PlayerInfo[playerid][LeteckyPrukazA] = false;
                PlayerInfo[playerid][LeteckyPrukazB] = false;
                PlayerInfo[playerid][LeteckyPrukazC] = false;
                PlayerInfo[playerid][LodniPrukaz] = false;
                PlayerInfo[playerid][ZbrojniPrukaz] = false;
                PlayerInfo[playerid][ObcanskyPrukaz] = false;
                PlayerInfo[playerid][ObcanskyPrukaz] = false;
                PlayerInfo[playerid][ObcanskyPrukaz] = false;
                PlayerInfo[playerid][Vek] = 0;
                                format(PlayerInfo[playerid][Bydliste], 64, "");
                                format(PlayerInfo[playerid][RodneMesto], 64, "");
                                PlayerInfo[playerid][ObcankaVek] = 0;
                                format(PlayerInfo[playerid][ObcankaBydliste], 64, "");
                                format(PlayerInfo[playerid][ObcankaRodneMesto], 64, "");
                                PlayerInfo[playerid][Frakce] = 0;
                                PlayerInfo[playerid][Hodnost] = 0;
                                PlayerInfo[playerid][Papirky] = 0;
                                PlayerInfo[playerid][Zapalovac] = 0;
                                PlayerInfo[playerid][Marihuana_SourDiesel] = 0;
                                PlayerInfo[playerid][Marihuana_OGKush] = 0;
                                PlayerInfo[playerid][Marihuana_Blueberry] = 0;
                                PlayerInfo[playerid][Marihuana_LemonHaze] = 0;
                                PlayerInfo[playerid][Xanax] = 0;
                                PlayerInfo[playerid][Lean] = 0;
                                PlayerInfo[playerid][Actavis] = 0;
                                PlayerInfo[playerid][Sprunk] = 0;
                                PlayerInfo[playerid][Koka] = 0;
                                PlayerInfo[playerid][Kokain] = 0;
                PlayerInfo[playerid][Lzicka] = 0;
                PlayerInfo[playerid][Interior] = 0;
                PlayerInfo[playerid][VirtualWorld] = 0;
                PlayerInfo[playerid][Zbran0] = 0;
                PlayerInfo[playerid][Zbran1] = 0;
                PlayerInfo[playerid][Zbran2] = 0;
                PlayerInfo[playerid][Zbran3] = 0;
                PlayerInfo[playerid][Zbran4] = 0;
                PlayerInfo[playerid][Zbran5] = 0;
                PlayerInfo[playerid][Zbran6] = 0;
                PlayerInfo[playerid][Zbran7] = 0;
                PlayerInfo[playerid][Zbran8] = 0;
                PlayerInfo[playerid][Zbran9] = 0;
                PlayerInfo[playerid][Zbran10] = 0;
                PlayerInfo[playerid][Zbran11] = 0;
                PlayerInfo[playerid][Zbran12] = 0;
                PlayerInfo[playerid][Naboje0] = 0;
                PlayerInfo[playerid][Naboje1] = 0;
                PlayerInfo[playerid][Naboje2] = 0;
                PlayerInfo[playerid][Naboje3] = 0;
                PlayerInfo[playerid][Naboje4] = 0;
                PlayerInfo[playerid][Naboje5] = 0;
                PlayerInfo[playerid][Naboje6] = 0;
                PlayerInfo[playerid][Naboje7] = 0;
                PlayerInfo[playerid][Naboje8] = 0;
                PlayerInfo[playerid][Naboje9] = 0;
                PlayerInfo[playerid][Naboje10] = 0;
                PlayerInfo[playerid][Naboje11] = 0;
                PlayerInfo[playerid][Naboje12] = 0;
                PlayerInfo[playerid][Duty] = false;
                PlayerInfo[playerid][Pokuta] = 0;
                format(PlayerInfo[playerid][PosledniPokutaDuvod], 64, "");
                PlayerInfo[playerid][VezeniCas] = 0;
                PlayerInfo[playerid][CigaretyMarlboro] = 0;
                PlayerInfo[playerid][CigaretyLM] = 0;
                PlayerInfo[playerid][CigaretyChesterfield] = 0;
                PlayerInfo[playerid][CigaretyCamel] = 0;
                PlayerInfo[playerid][CigaretyPS] = 0;
                PlayerInfo[playerid][CigaretyPhillipMorris] = 0;
                PlayerInfo[playerid][DoutnikyMonteCristo] = 0;
                PlayerInfo[playerid][DoutnikyRomeoJulieta] = 0;
                PlayerInfo[playerid][DoutnikyCabinetta] = 0;
                PlayerInfo[playerid][DoutnikyConservas] = 0;
                PlayerInfo[playerid][Mobil] = false;
                PlayerInfo[playerid][SIM] = 0;
                PlayerInfo[playerid][Kredit] = 0;
                PlayerInfo[playerid][Zamestnani] = 0;
                PlayerInfo[playerid][Nabytek] = 0;
                PlayerInfo[playerid][NahranyCas] = 0;
                PlayerInfo[playerid][Skupina] = 0;
                PlayerInfo[playerid][Napoveda] = false;
                PlayerInfo[playerid][Zelezo] = 0;
                PlayerInfo[playerid][GPS] = false;
                PlayerInfo[playerid][HotelCas] = 0;
                PlayerInfo[playerid][PlayerBusinessID] = 0;
                PlayerInfo[playerid][Crack] = 0;
                PlayerInfo[playerid][JedlaSoda] = 0;
                PlayerInfo[playerid][MakSety] = 0;
                PlayerInfo[playerid][Morfin] = 0;
                PlayerInfo[playerid][Extaze] = 0;
                PlayerInfo[playerid][Adrenalin] = 0;
                PlayerInfo[playerid][Seminko_Marihuana_SourDiesel] = 0;
                                PlayerInfo[playerid][Seminko_Marihuana_OGKush] = 0;
                                PlayerInfo[playerid][Seminko_Marihuana_Blueberry] = 0;
                                PlayerInfo[playerid][Seminko_Marihuana_LemonHaze] = 0;
                                PlayerInfo[playerid][Seminko_Koka] = 0;
                                //---------------------------------------------
                                NovyHrac[playerid] = true;
                            ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_INPUT,""COL_WHITE"Registrace", ""COL_WHITE"Na tomto serveru se hraje typ gamemodu roleplay - to znamená, že hraješ za svou postavu.\nPokud neznᚠroleplay pravidla nebo mᚠohledně roleplay nějakou otázku, použij příkaz /dotaz\na administrátoři ti všechno vysvětlí. Teď musíš nastavit věk své herní postavy (18 - 69 let).","Nastavit","");
                        }
                        return 1;
        }
        case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][Heslo])
                {
                    PlayerTextDrawShow(playerid, cerna_obrazovka[playerid]);
                                        ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Přihlášení",""COL_GREEN"Úspěšně"COL_WHITE" jsi se přihlásil!","Spawn","");
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_WHITE"Login",""COL_RED"Zadal jsi špatné heslo!\n\n"COL_WHITE"Přihlaš se zadáním správného hesla!","Prihlasit","Odejit");
                }
            }
            else
            {
                                PlayerInfo[playerid][Penize] = 0;
                                PlayerInfo[playerid][Administrator] = 0;
                                  PlayerInfo[playerid][Zabiti] = 0;
                                  PlayerInfo[playerid][Umrti] = 0;
                                  PlayerInfo[playerid][Skin] = 0;
                            PlayerInfo[playerid][PosledniPoziceX] = 0.0;
                            PlayerInfo[playerid][PosledniPoziceY] = 0.0;
                            PlayerInfo[playerid][PosledniPoziceZ] = 0.0;
                            PlayerInfo[playerid][BankaUcet] = false;
                            PlayerInfo[playerid][BankaPIN] = 0;
                                  PlayerInfo[playerid][BankaPenize] = 0;
                            PlayerInfo[playerid][ObcanskyPrukaz] = false;
                            PlayerInfo[playerid][RidicskyPrukazA] = false;
                            PlayerInfo[playerid][RidicskyPrukazB] = false;
                            PlayerInfo[playerid][RidicskyPrukazC] = false;
                            PlayerInfo[playerid][LeteckyPrukazA] = false;
                            PlayerInfo[playerid][LeteckyPrukazB] = false;
                            PlayerInfo[playerid][LeteckyPrukazC] = false;
                            PlayerInfo[playerid][LodniPrukaz] = false;
                                  PlayerInfo[playerid][ZbrojniPrukaz] = false;
                                  PlayerInfo[playerid][ObcanskyPrukaz] = false;
                            PlayerInfo[playerid][ObcanskyPrukaz] = false;
                            PlayerInfo[playerid][ObcanskyPrukaz] = false;
                            PlayerInfo[playerid][Vek] = 0;
                                format(PlayerInfo[playerid][Bydliste], 64, "");
                                format(PlayerInfo[playerid][RodneMesto], 64, "");
                                PlayerInfo[playerid][ObcankaVek] = 0;
                                format(PlayerInfo[playerid][ObcankaBydliste], 64, "");
                                format(PlayerInfo[playerid][ObcankaRodneMesto], 64, "");
                                PlayerInfo[playerid][Frakce] = 0;
                                PlayerInfo[playerid][Hodnost] = 0;
                                PlayerInfo[playerid][Papirky] = 0;
                                PlayerInfo[playerid][Zapalovac] = 0;
                                PlayerInfo[playerid][Marihuana_SourDiesel] = 0;
                                PlayerInfo[playerid][Marihuana_OGKush] = 0;
                                PlayerInfo[playerid][Marihuana_Blueberry] = 0;
                                PlayerInfo[playerid][Marihuana_LemonHaze] = 0;
                                PlayerInfo[playerid][Xanax] = 0;
                                PlayerInfo[playerid][Lean] = 0;
                                PlayerInfo[playerid][Actavis] = 0;
                                PlayerInfo[playerid][Sprunk] = 0;
                                PlayerInfo[playerid][Koka] = 0;
                                PlayerInfo[playerid][Kokain] = 0;
                                PlayerInfo[playerid][Lzicka] = 0;
                                PlayerInfo[playerid][Interior] = 0;
                                PlayerInfo[playerid][VirtualWorld] = 0;
                                  PlayerInfo[playerid][Zbran0] = 0;
                                  PlayerInfo[playerid][Zbran1] = 0;
                                  PlayerInfo[playerid][Zbran2] = 0;
                                  PlayerInfo[playerid][Zbran3] = 0;
                                  PlayerInfo[playerid][Zbran4] = 0;
                                  PlayerInfo[playerid][Zbran5] = 0;
                                  PlayerInfo[playerid][Zbran6] = 0;
                                  PlayerInfo[playerid][Zbran7] = 0;
                            PlayerInfo[playerid][Zbran8] = 0;
                            PlayerInfo[playerid][Zbran9] = 0;
                            PlayerInfo[playerid][Zbran10] = 0;
                            PlayerInfo[playerid][Zbran11] = 0;
                            PlayerInfo[playerid][Zbran12] = 0;
                            PlayerInfo[playerid][Naboje0] = 0;
                            PlayerInfo[playerid][Naboje1] = 0;
                            PlayerInfo[playerid][Naboje2] = 0;
                            PlayerInfo[playerid][Naboje3] = 0;
                            PlayerInfo[playerid][Naboje4] = 0;
                            PlayerInfo[playerid][Naboje5] = 0;
                            PlayerInfo[playerid][Naboje6] = 0;
                            PlayerInfo[playerid][Naboje7] = 0;
                            PlayerInfo[playerid][Naboje8] = 0;
                            PlayerInfo[playerid][Naboje9] = 0;
                            PlayerInfo[playerid][Naboje10] = 0;
                            PlayerInfo[playerid][Naboje11] = 0;
                            PlayerInfo[playerid][Naboje12] = 0;
                            PlayerInfo[playerid][Duty] = false;
                            PlayerInfo[playerid][Pokuta] = 0;
                            format(PlayerInfo[playerid][PosledniPokutaDuvod], 64, "");
                            PlayerInfo[playerid][VezeniCas] = 0;
                            PlayerInfo[playerid][CigaretyMarlboro] = 0;
                            PlayerInfo[playerid][CigaretyLM] = 0;
                            PlayerInfo[playerid][CigaretyChesterfield] = 0;
                            PlayerInfo[playerid][CigaretyCamel] = 0;
                            PlayerInfo[playerid][CigaretyPS] = 0;
                            PlayerInfo[playerid][CigaretyPhillipMorris] = 0;
                            PlayerInfo[playerid][DoutnikyMonteCristo] = 0;
                            PlayerInfo[playerid][DoutnikyRomeoJulieta] = 0;
                            PlayerInfo[playerid][DoutnikyCabinetta] = 0;
                            PlayerInfo[playerid][DoutnikyConservas] = 0;
                            PlayerInfo[playerid][Mobil] = false;
                            PlayerInfo[playerid][SIM] = 0;
                            PlayerInfo[playerid][Kredit] = 0;
                            PlayerInfo[playerid][Zamestnani] = 0;
                            PlayerInfo[playerid][Nabytek] = 0;
                            PlayerInfo[playerid][NahranyCas] = 0;
                            PlayerInfo[playerid][Skupina] = 0;
                            PlayerInfo[playerid][Napoveda] = false;
                            PlayerInfo[playerid][Zelezo] = 0;
                            PlayerInfo[playerid][GPS] = false;
                            PlayerInfo[playerid][HotelCas] = 0;
                            PlayerInfo[playerid][PlayerBusinessID] = 0;
                            PlayerInfo[playerid][Crack] = 0;
                            PlayerInfo[playerid][JedlaSoda] = 0;
                            PlayerInfo[playerid][MakSety] = 0;
                            PlayerInfo[playerid][Morfin] = 0;
                            PlayerInfo[playerid][Extaze] = 0;
                            PlayerInfo[playerid][Adrenalin] = 0;
                            PlayerInfo[playerid][Seminko_Marihuana_SourDiesel] = 0;
                                PlayerInfo[playerid][Seminko_Marihuana_OGKush] = 0;
                                PlayerInfo[playerid][Seminko_Marihuana_Blueberry] = 0;
                                PlayerInfo[playerid][Seminko_Marihuana_LemonHaze] = 0;
                                PlayerInfo[playerid][Seminko_Koka] = 0;
                                KickEx(playerid);
            }
            return 1;
        }

stock udb_hash(buf[]) {
        new length=strlen(buf);
    new s1 = 1;
    new s2 = 0;
    new n;
    for (n=0; n<length; n++)
    {
      s1 = (s1 + buf[n]) % 65521;
      s2 = (s2 + s1)    % 65521;
    }
    return (s2 << 16) + s1;
}

stock UserPath(playerid)
{
        new string[128],playername[MAX_PLAYER_NAME];
        GetPlayerName(playerid,playername,sizeof(playername));
        format(string,sizeof(string),PATH,playername);
        return string;
}

stock VehiclePath(vehicleid)
{
        new string[128];
        format(string,sizeof(string),VehiclePATH,vehicleid);
        return string;
}

forward SaveBusiness(id);
public SaveBusiness(id)
{
        new path[256];
        format(path, sizeof(path), BPATH, id);
        new INI:File = INI_Open(path);
        INI_WriteInt(File,"ID", Business[id][ID]);
        INI_WriteString(File, "Owner", Business[id][Owner]);
        INI_WriteInt(File, "Locked", Business[id][Locked]);
        INI_WriteInt(File, "TypB", Business[id][TypB]);
        INI_WriteFloat(File, "X", Business[id][bX]);
        INI_WriteFloat(File, "Y", Business[id][bY]);
        INI_WriteFloat(File, "Z", Business[id][bZ]);
        INI_WriteFloat(File, "A", Business[id][bA]);
        INI_WriteInt(File, "Interior", Business[id][Interior]);
        INI_WriteInt(File, "Price", Business[id][Price]);
        INI_WriteString(File, "Location", Business[id][Lokace]);
        INI_WriteString(File, "Street", Business[id][Street]);
        INI_WriteString(File, "Nazev", Business[id][Nazev]);
        INI_WriteFloat(File, "vX", Business[id][vX]);
        INI_WriteFloat(File, "vY", Business[id][vY]);
        INI_WriteFloat(File, "vZ", Business[id][vZ]);
        INI_WriteFloat(File, "vA", Business[id][vA]);
        INI_Close(File);
        return 1;
}

forward LoadBusines(i, name[], value[]);
public LoadBusines(i,name[],value[])
{
    INI_Int("ID",Business[i][ID]);
    INI_String("Owner", Business[i][Owner], 64);
    INI_Int("Locked", Business[i][Locked]);
        INI_Int("TypB", Business[i][TypB]);
    INI_Float("X",Business[i][bX]);
    INI_Float("Y",Business[i][bY]);
    INI_Float("Z",Business[i][bZ]);
    INI_Float("A", Business[i][bA]);
    INI_Int("Interior",Business[i][Interior]);
    INI_Int("Price",Business[i][Price]);
        INI_String("Location", Business[i][Lokace], 64);
        INI_String("Street", Business[i][Street], 64);
        INI_String("Nazev", Business[i][Nazev], 80);
        INI_Float("vX",Business[i][vX]);
    INI_Float("vY",Business[i][vY]);
    INI_Float("vZ",Business[i][vZ]);
    INI_Float("vA", Business[i][vA]);
    return 1;
}

forward SaveHouse(id);
public SaveHouse(id)
{
        new path[256];
        format(path, sizeof(path), HPATH, id);
        new INI:File = INI_Open(path);
        INI_WriteInt(File,"ID", House[id][ID]);
        INI_WriteString(File, "Owner", House[id][Owner]);
        INI_WriteInt(File, "Locked", House[id][Locked]);
        INI_WriteFloat(File, "X", House[id][hX]);
        INI_WriteFloat(File, "Y", House[id][hY]);
        INI_WriteFloat(File, "Z", House[id][hZ]);
        INI_WriteFloat(File, "A", House[id][hA]);
        INI_WriteInt(File, "Interior", House[id][Interior]);
        INI_WriteInt(File, "Price", House[id][Price]);
        INI_WriteString(File, "Location", House[id][Lokace]);
        INI_WriteString(File, "Street", House[id][Street]);
        INI_Close(File);
        return 1;
}

forward LoadHouse(i, name[], value[]);
public LoadHouse(i,name[],value[])
{
    INI_Int("ID",House[i][ID]);
    INI_String("Owner", House[i][Owner], 64);
    INI_Int("Locked", House[i][Locked]);
    INI_Float("X",House[i][hX]);
    INI_Float("Y",House[i][hY]);
    INI_Float("Z",House[i][hZ]);
    INI_Float("A", House[i][hA]);
    INI_Int("Interior",House[i][Interior]);
    INI_Int("Price",House[i][Price]);
        INI_String("Location", House[i][Lokace], 64);
        INI_String("Street", House[i][Street], 64);
    return 1;
}

forward LoadGroup(i,name[],value[]);
public LoadGroup(i,name[],value[])
{
    INI_String("Owner", Group[i][Owner], 24);
    INI_String("Name", Group[i][Name], 64);
    return 1;
}

forward LoadRostlina(i,name[],value[]);
public LoadRostlina(i,name[],value[])
{
        INI_Int("Typ", Rostlina[i][Typ]);
    INI_Int("Stav",Rostlina[i][Stav]);
    INI_Int("Zivot",Rostlina[i][Zivot]);
    INI_Int("Voda",Rostlina[i][Voda]);
    INI_Float("objectX",Rostlina[i][objectX]);
    INI_Float("objectY",Rostlina[i][objectY]);
    INI_Float("objectZ",Rostlina[i][objectZ]);
    INI_Int("VW",Rostlina[i][VW]);
    INI_String("Owner",Rostlina[i][Owner], 24);
    return 1;
}

forward LoadDrop(i,name[],value[]);
public LoadDrop(i,name[],value[])
{
        INI_Int("Type", Drop[i][Type]);
    INI_Int("Weapon",Drop[i][Weapon]);
    INI_Int("Ammo",Drop[i][Ammo]);
    INI_Float("Armour",Drop[i][Armour]);
    INI_Float("X",Drop[i][dX]);
    INI_Float("Y",Drop[i][dY]);
    INI_Float("Z",Drop[i][dZ]);
    INI_Int("VW",Drop[i][VW]);
    INI_Int("INT",Drop[i][INT]);
    INI_String("Dropped",Drop[i][Dropped], 24);
    return 1;
}
                                                       
forward LoadGraffiti(i,name[],value[]);
public LoadGraffiti(i,name[],value[])
{
    INI_String("Owner",Graffiti[i][Owner], 64);
    INI_String("Text",Graffiti[i][Text], 64);
    INI_Float("grafobjectX",Graffiti[i][grafobjectX]);
    INI_Float("grafobjectY",Graffiti[i][grafobjectY]);
    INI_Float("grafobjectZ",Graffiti[i][grafobjectZ]);
    INI_Float("grafobjectrotX",Graffiti[i][grafobjectrotX]);
    INI_Float("grafobjectrotY",Graffiti[i][grafobjectrotY]);
    INI_Float("grafobjectrotZ",Graffiti[i][grafobjectrotZ]);
    return 1;
}

forward LoadFurniture(i,name[],value[]);
public LoadFurniture(i,name[],value[])
{
    INI_Int("Object",Furniture[i][Object]);
    INI_String("Owner",Furniture[i][Owner], 64);
    INI_Float("fobjectX",Furniture[i][fobjectX]);
    INI_Float("fobjectY",Furniture[i][fobjectY]);
    INI_Float("fobjectZ",Furniture[i][fobjectZ]);
    INI_Float("fobjectrotX",Furniture[i][fobjectrotX]);
    INI_Float("fobjectrotY",Furniture[i][fobjectrotY]);
    INI_Float("fobjectrotZ",Furniture[i][fobjectrotZ]);
    INI_Bool("VareniDrog",Furniture[i][FVareniDrog]);
    INI_Int("VareniDrogCas",Furniture[i][FVareniDrogCas]);
    INI_Int("VareniDrogKoka",Furniture[i][FVareniDrogKoka]);
    INI_Int("VareniDrogMakSety",Furniture[i][FVareniDrogMakSety]);
    INI_Int("VareniDrogKokain",Furniture[i][FVareniDrogKokain]);
    INI_Int("VareniDrogMorfin",Furniture[i][FVareniDrogMorfin]);
    INI_Int("VareniDrogAdrenalin",Furniture[i][FVareniDrogAdrenalin]);
    INI_Int("VareniDrogJedlaSoda",Furniture[i][FVareniDrogJedlaSoda]);
    INI_Int("VW",Furniture[i][VW]);
    return 1;
}

stock LoadVehicles()
{
        print("Nacitani vozidel...");
        new engine, lights, alarm, doors, bonnet, boot, objective;
        for(new i=0; i <= MAX_VEHICLES; i++)
        {
            if(fexist(VehiclePath(i)))
            {
                INI_ParseFile(VehiclePath(i), "LoadVehicle", .bExtra = true, .extra = i);
                i = CreateVehicle(CarModel[i], CarX[i], CarY[i], CarZ[i], CarA[i], CarColor1[i], CarColor2[i], -1);
                if(IsValidVehicle(i))
                {
                                GetVehicleParamsEx(i, engine, lights, alarm, doors, bonnet, boot, objective);
                                SetVehicleParamsEx(i, engine, lights, alarm, CarLock[i], bonnet, boot, objective);
                                SetVehicleHealth(i, CarHealth[i]);
                                LinkVehicleToInterior(i, CarInterior[i]);
                                SetVehicleVirtualWorld(i, CarVirtualWorld[i]);
                                CarSpotreba[i] = GetVehicleSpotreba(i);
                                CarNadrz[i] = GetVehicleNadrz(i);
                                if(CarComponentType1[i] != 0)
                                {
                                        AddVehicleComponent(i, CarComponentType1[i]);
                                }
                                if(CarComponentType2[i] != 0)
                                {
                                        AddVehicleComponent(i, CarComponentType2[i]);
                                }
                                if(CarComponentType3[i] != 0)
                                {
                                        AddVehicleComponent(i, CarComponentType3[i]);
                                }
                                if(CarComponentType4[i] != 0)
                                {
                                        AddVehicleComponent(i, CarComponentType4[i]);
                                }
                                if(CarComponentType5[i] != 0)
                                {
                                        AddVehicleComponent(i, CarComponentType5[i]);
                                }
                                if(CarComponentType6[i] != 0)
                                {
                                        AddVehicleComponent(i, CarComponentType6[i]);
                                }
                                if(CarComponentType7[i] != 0)
                                {
                                        AddVehicleComponent(i, CarComponentType7[i]);
                                }
                                if(CarComponentType8[i] != 0)
                                {
                                        AddVehicleComponent(i, CarComponentType8[i]);
                                }
                                if(CarComponentType9[i] != 0)
                                {
                                        AddVehicleComponent(i, CarComponentType9[i]);
                                }
                                if(CarComponentType10[i] != 0)
                                {
                                        AddVehicleComponent(i, CarComponentType10[i]);
                                }
                                if(CarComponentType11[i] != 0)
                                {
                                        AddVehicleComponent(i, CarComponentType11[i]);
                                }
                                if(CarComponentType12[i] != 0)
                                {
                                        AddVehicleComponent(i, CarComponentType12[i]);
                                }
                                if(CarComponentType13[i] != 0)
                                {
                                        AddVehicleComponent(i, CarComponentType13[i]);
                                }
                                if(CarComponentType14[i] != 0)
                                {
                                        AddVehicleComponent(i, CarComponentType14[i]);
                                }
                                if(CarNaprodej[i] == true)
                                {
                                    new path[128];
                                        format(path, sizeof(path), "Vozidlo na prodej!\n\nCena: "COL_LIGHTGREEN"%d$", CarNaprodejCena[i]);
                                        CarNaprodejLabel[i] = Create3DTextLabel(path, -1, CarX[i], CarY[i], CarZ[i], 5.0, -1);
                                        Attach3DTextLabelToVehicle(CarNaprodejLabel[i], i, 0.0, 0.0, 1.0);
                                }
                        printf("Vozidlo ID:%d uspesne nacteno!", i);
                }
                }
        }
        return 1;
}

stock LoadGroups()
{
        print("Nacitani vsech skupin...");
        new temp[128];
        for(new i = 1; i <= MAX_GROUPS; i++)
        {
                format(temp, sizeof(temp), GroupPATH, i);
                  if(fexist(temp))
                  {
                    INI_ParseFile(temp, "LoadGroup", .bExtra = true, .extra = i);
                    printf("Skupina ID:%d uspesne nactena!", i);
                }
        }
        return 1;
}

forward LoadRozpocet(i,name[],value[]);
public LoadRozpocet(i,name[],value[])
{
        INI_Int("TrezorPD", frakce_trezor[M_PoliceDepartment]);
        INI_Int("TrezorFD", frakce_trezor[M_FireDepartment]);
        INI_Int("TrezorEMS", frakce_trezor[M_EmergencyMedicalServices]);
        INI_Int("TrezorTAXI", frakce_trezor[M_Taxi]);
        INI_Int("TrezorGARAGE", frakce_trezor[M_ImportGarage]);
        INI_Int("TrezorCARSCHOOL", frakce_trezor[M_CarSchool]);
    return 1;
}

stock LoadRozpocty()
{
        if(fexist(TrezorPATH))
        {
                INI_ParseFile(TrezorPATH, "LoadRozpocet", .bExtra = true);
                print("Trezory uspesne nacteny!");
        }
        else
        {
            print("Soubor /RP/Trezory.ini neexistuje!");
        }
        return 1;
}

stock LoadFurnitures()
{
        print("Nacitani vsech nabytku...");
        new temp[128];
        for(new i = 0; i <= MAX_FURNITURE; i++)
        {
                format(temp, sizeof(temp), FurniturePATH, i);
                  if(fexist(temp))
                  {
                    INI_ParseFile(temp, "LoadFurniture", .bExtra = true, .extra = i);
                        Furniture[i][ObjectID] = CreateDynamicObject(Furniture[i][Object],Furniture[i][fobjectX],Furniture[i][fobjectY],Furniture[i][fobjectZ],Furniture[i][fobjectrotX],Furniture[i][fobjectrotY],Furniture[i][fobjectrotZ], Furniture[i][VW]);
                        if(Furniture[i][ObjectID] == 3391 && Furniture[i][FVareniDrog] == true)
                        {
                            if(Furniture[i][FVareniDrogCas] >= 20)
                            {
                    Furniture[i][FVareniDrogLabel] = CreateDynamic3DTextLabel("Vaření dokončeno\n"COL_LIGHTBLUE"/vzitdrogy", -1, Furniture[i][fobjectX], Furniture[i][fobjectY], Furniture[i][fobjectZ] + 1.0, 5.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Furniture[i][VW]);
                            }
                            else
                            {
                                Furniture[i][FVareniDrogLabel] = CreateDynamic3DTextLabel("Na tomto stole se vaří nějaké látky v hrnci.", -1, Furniture[i][fobjectX], Furniture[i][fobjectY], Furniture[i][fobjectZ] + 1.0, 5.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Furniture[i][VW]);
                            }
                        }
                        printf("Nabytek ID:%d uspesne nacten!", i);
                }
        }
        return 1;
}

stock LoadGraffitis()
{
        print("Nacitani vsech graffiti...");
        new temp[128];
        for(new i = 0; i <= MAX_GRAFFITI; i++)
        {
                format(temp, sizeof(temp), GraffitiPATH, i);
                  if(fexist(temp))
                  {
                    INI_ParseFile(temp, "LoadGraffiti", .bExtra = true, .extra = i);
                        Graffiti[i][ObjectID] = CreateDynamicObject(19475,Graffiti[i][grafobjectX],Graffiti[i][grafobjectY],Graffiti[i][grafobjectZ],Graffiti[i][grafobjectrotX],Graffiti[i][grafobjectrotY],Graffiti[i][grafobjectrotZ]);
                          SetDynamicObjectMaterialText(Graffiti[i][ObjectID], 0, Graffiti[i][Text], 80, "courier", 40, 1, 0xFFFFFFFF, 0x00000000, 0);
                    printf("Graffiti ID:%d uspesne nacteno!", i);
                }
        }
        return 1;
}

stock LoadRostliny()
{
        print("Nacitani vsech rostlin...");
        new temp[128];
        new count = 0;
        for(new i = 0; i <= MAX_ROSTLIN; i++)
        {
            format(temp, sizeof(temp), RostlinaPATH, i);
            if(fexist(temp))
            {
                    INI_ParseFile(temp, "LoadRostlina", .bExtra = true, .extra = i);
                    switch(Rostlina[i][Typ])
                    {
                                case 1:
                                {
                                    Rostlina[i][Objekt] = CreateDynamicObject(ROSTLINA_MARIHUANA, Rostlina[i][objectX], Rostlina[i][objectY], Rostlina[i][objectZ] - 0.7, 0.0, 0.0, 0.0, Rostlina[i][VW]);
                                        Rostlina[i][RostlinaLabel] = CreateDynamic3DTextLabel("Marihuana\nSour Diesel\n\n"COL_LIGHTGREEN"V dobrém stavu", -1, Rostlina[i][objectX], Rostlina[i][objectY], Rostlina[i][objectZ] - 1.0, ROSTLINA_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Rostlina[i][VW]);
                                }
                                case 2:
                                {
                                    Rostlina[i][Objekt] = CreateDynamicObject(ROSTLINA_MARIHUANA, Rostlina[i][objectX], Rostlina[i][objectY], Rostlina[i][objectZ] - 0.7, 0.0, 0.0, 0.0, Rostlina[i][VW]);
                                        Rostlina[i][RostlinaLabel] = CreateDynamic3DTextLabel("Marihuana\nOG Kush\n\n"COL_LIGHTGREEN"V dobrém stavu", -1, Rostlina[i][objectX], Rostlina[i][objectY], Rostlina[i][objectZ] - 1.0, ROSTLINA_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Rostlina[i][VW]);
                                }
                                case 3:
                                {
                                    Rostlina[i][Objekt] = CreateDynamicObject(ROSTLINA_MARIHUANA, Rostlina[i][objectX], Rostlina[i][objectY], Rostlina[i][objectZ] - 0.7, 0.0, 0.0, 0.0, Rostlina[i][VW]);
                                        Rostlina[i][RostlinaLabel] = CreateDynamic3DTextLabel("Marihuana\nBlueberry\n\n"COL_LIGHTGREEN"V dobrém stavu", -1, Rostlina[i][objectX], Rostlina[i][objectY], Rostlina[i][objectZ] - 1.0, ROSTLINA_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Rostlina[i][VW]);
                                }
                                case 4:
                                {
                                    Rostlina[i][Objekt] = CreateDynamicObject(ROSTLINA_MARIHUANA, Rostlina[i][objectX], Rostlina[i][objectY], Rostlina[i][objectZ] - 0.7, 0.0, 0.0, 0.0, Rostlina[i][VW]);
                                        Rostlina[i][RostlinaLabel] = CreateDynamic3DTextLabel("Marihuana\nLemon Haze\n\n"COL_LIGHTGREEN"V dobrém stavu", -1, Rostlina[i][objectX], Rostlina[i][objectY], Rostlina[i][objectZ] - 1.0, ROSTLINA_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Rostlina[i][VW]);
                                }
                                case 5:
                                {
                                    Rostlina[i][Objekt] = CreateDynamicObject(ROSTLINA_KOKA, Rostlina[i][objectX], Rostlina[i][objectY], Rostlina[i][objectZ] - 1.0, 0.0, 0.0, 0.0, Rostlina[i][VW]);
                                        Rostlina[i][RostlinaLabel] = CreateDynamic3DTextLabel("Koka\n\n"COL_LIGHTGREEN"V dobrém stavu", -1, Rostlina[i][objectX], Rostlina[i][objectY], Rostlina[i][objectZ] - 1.0, ROSTLINA_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Rostlina[i][VW]);
                                }
                        }
                        printf("Rostlina ID:%d uspesne nacten!", i);
                        count++;
                }
        }
        return count;
}

stock LoadDrops()
{
        print("Nacitani vsech dropu...");
        new temp[128];
        new count = 0;
        for(new i = 0; i <= MAX_DROPS; i++)
        {
            format(temp, sizeof(temp), DropPATH, i);
            if(fexist(temp))
            {
                    INI_ParseFile(temp, "LoadDrop", .bExtra = true, .extra = i);
                    new rand = random(360);
                    if(Drop[i][Type] == 1)
                    {
                            Drop[i][Object] = CreateDynamicObject(GetWeaponModel(Drop[i][Weapon]), Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 87.999, 270, rand, Drop[i][VW]);
                                format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\n%s", SeznamZbrani[Drop[i][Weapon]][0]);
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 2)
                    {
                        if(Drop[i][Ammo] > 100)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_WEED_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nMarihuana Sour Diesel | %dg", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 3)
                    {
                        if(Drop[i][Ammo] > 200)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_XANAX_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nXanax | %d tabletek", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 4)
                    {
                        if(Drop[i][Ammo] > 100)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_LEAN_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 0.88, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nLean | %d", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 5)
                    {
                        if(Drop[i][Ammo] > 100)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_ACTAVIS_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nActavis | %d", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 6)
                    {
                        if(Drop[i][Ammo] > 100)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_SPRUNK_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nSprunk | %d", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 7)
                    {
                        if(Drop[i][Ammo] > 10)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_KOKA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, 0.0, -90.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nKoka | %d", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 8)
                    {
                        if(Drop[i][Ammo] > 100)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_COCAINE_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nKokain | %dg", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 9)
                    {
                        if(Drop[i][Ammo] > 100)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_HEROIN_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nHeroin | %dg", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 10)
                    {
                        if(Drop[i][Ammo] > 50000)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_KUFR_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 0.6, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nKufr", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_MONEY_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nPeníze | %d$", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 11)
                    {
                            Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 12)
                    {
                            Drop[i][Object] = CreateDynamicObject(DROP_CIGARETY_MARLBORO_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nCigarety Marlboro | %d", Drop[i][Ammo]);
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 13)
                    {
                            Drop[i][Object] = CreateDynamicObject(DROP_CIGARETY_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nCigarety L&M | %d", Drop[i][Ammo]);
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 14)
                    {
                            Drop[i][Object] = CreateDynamicObject(DROP_CIGARETY_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nCigarety Chesterfield | %d", Drop[i][Ammo]);
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 15)
                    {
                            Drop[i][Object] = CreateDynamicObject(DROP_CIGARETY_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nCigarety Camel | %d", Drop[i][Ammo]);
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 16)
                    {
                            Drop[i][Object] = CreateDynamicObject(DROP_CIGARETY_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nCigarety P&S | %d", Drop[i][Ammo]);
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 17)
                    {
                            Drop[i][Object] = CreateDynamicObject(DROP_CIGARETY_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nCigarety Phillip Morris | %d", Drop[i][Ammo]);
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 18)
                    {
                        if(Drop[i][Ammo] > 30)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_DOUTNIKY_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nDoutníky Monte Cristo | %d", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 19)
                    {
                        if(Drop[i][Ammo] > 30)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_DOUTNIKY_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nDoutníky Romeo Julieta | %d", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 20)
                    {
                        if(Drop[i][Ammo] > 30)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_DOUTNIKY_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nDoutníky Cabinetta | %d", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 21)
                    {
                        if(Drop[i][Ammo] > 30)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_DOUTNIKY_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nDoutníky Conservas | %d", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 22)
                    {
                        if(Drop[i][Ammo] > 20)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_ZELEZO_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nŽelezo | %dkg", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 23)
                    {
                        if(Drop[i][Ammo] > 100)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_WEED_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nMarihuana OG Kush | %dg", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 24)
                    {
                        if(Drop[i][Ammo] > 100)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_WEED_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nMarihuana Blueberry | %dg", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 25)
                    {
                        if(Drop[i][Ammo] > 100)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_WEED_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nMarihuana Lemon Haze | %dg", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 26)
                    {
                            Drop[i][Object] = CreateDynamicObject(DROP_KVETINAC, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 0.8, 0.0, 0.0, rand, Drop[i][VW]);
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel("/sebrat"COL_WHITE"\nKvětináč", COLOR_LIGHTBLUE, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 27)
                    {
                            Drop[i][Object] = CreateDynamicObject(DROP_KONEV, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 0.9, 0.0, 0.0, rand, Drop[i][VW]);
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel("/sebrat"COL_WHITE"\nKonev", COLOR_LIGHTBLUE, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 28)
                    {
                        if(Drop[i][Ammo] > 200)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_EXTAZE_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nExtáze | %d tablet", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 29)
                    {
                        if(Drop[i][Ammo] > 100)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_CRACK_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nCrack | %dg", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 30)
                    {
                        if(Drop[i][Ammo] > 100)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_MORFIN_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nMorfin | %dg", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 31)
                    {
                        if(Drop[i][Ammo] > 100)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_JEDLASODA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nJedlá soda | %dg", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 32)
                    {
                        if(Drop[i][Ammo] > 100)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_ADRENALIN_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nAdrenalin | %dg", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 33)
                    {
                        if(Drop[i][Ammo] > 10)
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_BEDNA_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nBedna", Drop[i][Ammo]);
                        }
                        else
                        {
                                    Drop[i][Object] = CreateDynamicObject(DROP_MAKSETY_OBJECT, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1, 0.0, 0.0, rand, Drop[i][VW]);
                                        format(temp, sizeof(temp), ""COL_LIGHTBLUE"/sebrat"COL_WHITE"\nMák setý | %d", Drop[i][Ammo]);
                                }
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel(temp, -1, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        if(Drop[i][Type] == 34)
                    {
                            Drop[i][Object] = CreateDynamicObject(DROP_KLIC, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, 0.0, 0.0, rand, Drop[i][VW]);
                                Drop[i][DropLabel] = CreateDynamic3DTextLabel("/sebrat"COL_WHITE"\nKlíč", COLOR_LIGHTBLUE, Drop[i][dX], Drop[i][dY], Drop[i][dZ] - 1.0, DROP_DRAW, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Drop[i][VW]);
                        }
                        printf("Drop ID:%d uspesne nacten!", i);
                        count++;
                }
        }
        return count;
}

forward LoadVehicle(vehicleid,name[],value[]);
public LoadVehicle(vehicleid,name[],value[])
{
        INI_String("Owner",CarOwner[vehicleid], MAX_PLAYER_NAME + 1);
        INI_Int("Faction",CarFaction[vehicleid]);
        INI_Int("Model",CarModel[vehicleid]);
        INI_Float("X", CarX[vehicleid]);
        INI_Float("Y", CarY[vehicleid]);
        INI_Float("Z", CarZ[vehicleid]);
        INI_Float("A", CarA[vehicleid]);
        INI_Int("Color1", CarColor1[vehicleid]);
        INI_Int("Color2", CarColor2[vehicleid]);
        INI_Int("Lock", CarLock[vehicleid]);
        INI_Float("SpawnX", CarSpawnX[vehicleid]);
        INI_Float("SpawnY", CarSpawnY[vehicleid]);
        INI_Float("SpawnZ", CarSpawnZ[vehicleid]);
        INI_Float("Fuel", CarFuel[vehicleid]);
        INI_Int("ComponentType1", CarComponentType1[vehicleid]);
        INI_Int("ComponentType2", CarComponentType2[vehicleid]);
        INI_Int("ComponentType3", CarComponentType3[vehicleid]);
        INI_Int("ComponentType4", CarComponentType4[vehicleid]);
        INI_Int("ComponentType5", CarComponentType5[vehicleid]);
        INI_Int("ComponentType6", CarComponentType6[vehicleid]);
        INI_Int("ComponentType7", CarComponentType7[vehicleid]);
        INI_Int("ComponentType8", CarComponentType8[vehicleid]);
        INI_Int("ComponentType9", CarComponentType9[vehicleid]);
        INI_Int("ComponentType10", CarComponentType10[vehicleid]);
        INI_Int("ComponentType11", CarComponentType11[vehicleid]);
        INI_Int("ComponentType12", CarComponentType12[vehicleid]);
        INI_Int("ComponentType13", CarComponentType13[vehicleid]);
        INI_Int("ComponentType14", CarComponentType14[vehicleid]);
        INI_Int("Nadrz", CarNadrz[vehicleid]);
        INI_Float("Spotreba", CarSpotreba[vehicleid]);
        INI_Int("Najeto", CarNajeto[vehicleid]);
        INI_Int("Baterka", CarBaterka[vehicleid]);
        INI_Bool("Radio", CarRadio[vehicleid]);
        INI_Float("Health", CarHealth[vehicleid]);
        INI_Int("CarZbran1",CarZbran1[vehicleid]);
          INI_Int("CarZbran2",CarZbran2[vehicleid]);
    INI_Int("CarZbran3",CarZbran3[vehicleid]);
    INI_Int("CarZbran4",CarZbran4[vehicleid]);
    INI_Int("CarZbran5",CarZbran5[vehicleid]);
    INI_Int("CarNaboje1",CarNaboje1[vehicleid]);
    INI_Int("CarNaboje2",CarNaboje2[vehicleid]);
    INI_Int("CarNaboje3",CarNaboje3[vehicleid]);
    INI_Int("CarNaboje4",CarNaboje4[vehicleid]);
    INI_Int("CarNaboje5",CarNaboje5[vehicleid]);
    INI_Int("CarMarihuana_SourDiesel",CarMarihuana_SourDiesel[vehicleid]);
    INI_Int("CarMarihuana_OGKush",CarMarihuana_OGKush[vehicleid]);
    INI_Int("CarMarihuana_Blueberry",CarMarihuana_Blueberry[vehicleid]);
    INI_Int("CarMarihuana_LemonHaze",CarMarihuana_LemonHaze[vehicleid]);
    INI_Int("CarXanax",CarXanax[vehicleid]);
    INI_Int("CarLean",CarLean[vehicleid]);
    INI_Int("CarActavis",CarActavis[vehicleid]);
    INI_Int("CarSprunk",CarSprunk[vehicleid]);
    INI_Int("CarKoka",CarKoka[vehicleid]);
    INI_Int("CarKokain",CarKokain[vehicleid]);
    INI_Int("CarHeroin",CarHeroin[vehicleid]);
    INI_Int("CarCigaretyMarlboro",CarCigaretyMarlboro[vehicleid]);
    INI_Int("CarCigaretyLM",CarCigaretyLM[vehicleid]);
    INI_Int("CarCigaretyChesterfield",CarCigaretyChesterfield[vehicleid]);
    INI_Int("CarCigaretyCamel",CarCigaretyCamel[vehicleid]);
    INI_Int("CarCigaretyPS",CarCigaretyPS[vehicleid]);
    INI_Int("CarCigaretyPhilipMorris",CarCigaretyPhillipMorris[vehicleid]);
    INI_Int("CarDoutnikyMonteCristo",CarDoutnikyMonteCristo[vehicleid]);
    INI_Int("CarDoutnikyRomeoJulieta",CarDoutnikyRomeoJulieta[vehicleid]);
    INI_Int("CarDoutnikyCabinetta",CarDoutnikyCabinetta[vehicleid]);
    INI_Int("CarDoutnikyConservas",CarDoutnikyConservas[vehicleid]);
    INI_Int("CarNabytek",CarNabytek[vehicleid]);
    INI_Int("CarZelezo",CarZelezo[vehicleid]);
    INI_Int("CarPenize",CarPenize[vehicleid]);
    INI_Bool("CarNaprodej",CarNaprodej[vehicleid]);
    INI_Int("CarNaprodejCena",CarNaprodejCena[vehicleid]);
    INI_Bool("CarPizza",CarPizza[vehicleid]);
    INI_Bool("CarKvetinac",CarKvetinac[vehicleid]);
    INI_Bool("CarKonev",CarKonev[vehicleid]);
    INI_Int("CarCrack",CarCrack[vehicleid]);
    INI_Int("CarJedlaSoda",CarJedlaSoda[vehicleid]);
    INI_Int("CarMakSety",CarMakSety[vehicleid]);
    INI_Int("CarMorfin",CarMorfin[vehicleid]);
    INI_Int("CarExtaze",CarExtaze[vehicleid]);
    INI_Int("CarAdrenalin",CarAdrenalin[vehicleid]);
    INI_Bool("CarKlic",CarKlic[vehicleid]);
    INI_Int("CarVirtualWorld",CarVirtualWorld[vehicleid]);
    INI_Int("CarInterior",CarInterior[vehicleid]);
        return 1;
}

forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
    //---------------------NACITANI HRACE--------------
        INI_Int("Password",PlayerInfo[playerid][Heslo]);
        INI_Int("Cash",PlayerInfo[playerid][Penize]);
        INI_Int("Administrator",PlayerInfo[playerid][Administrator]);
        INI_Int("Kills",PlayerInfo[playerid][Zabiti]);
    INI_Int("Deaths",PlayerInfo[playerid][Umrti]);
    INI_Int("Skin",PlayerInfo[playerid][Skin]);
    INI_Float("PosledniPoziceX",PlayerInfo[playerid][PosledniPoziceX]);
    INI_Float("PosledniPoziceY",PlayerInfo[playerid][PosledniPoziceY]);
    INI_Float("PosledniPoziceZ",PlayerInfo[playerid][PosledniPoziceZ]);
    INI_Bool("BankaUcet",PlayerInfo[playerid][BankaUcet]);
    INI_Int("BankaPIN",PlayerInfo[playerid][BankaPIN]);
    INI_Int("BankaPenize",PlayerInfo[playerid][BankaPenize]);
    INI_Bool("ObcanskyPrukaz",PlayerInfo[playerid][ObcanskyPrukaz]);
    INI_Bool("RidicskyPrukazA",PlayerInfo[playerid][RidicskyPrukazA]);
    INI_Bool("RidicskyPrukazB",PlayerInfo[playerid][RidicskyPrukazB]);
    INI_Bool("RidicskyPrukazC",PlayerInfo[playerid][RidicskyPrukazC]);
    INI_Bool("RidicskyPrukazD",PlayerInfo[playerid][RidicskyPrukazD]);
    INI_Bool("LeteckyPrukazA",PlayerInfo[playerid][LeteckyPrukazA]);
    INI_Bool("LeteckyPrukazB",PlayerInfo[playerid][LeteckyPrukazB]);
    INI_Bool("LeteckyPrukazC",PlayerInfo[playerid][LeteckyPrukazC]);
    INI_Bool("LodniPrukaz",PlayerInfo[playerid][LodniPrukaz]);
    INI_Bool("ZbrojniPrukaz",PlayerInfo[playerid][ZbrojniPrukaz]);
    INI_Int("Vek",PlayerInfo[playerid][Vek]);
    INI_String("Bydliste",PlayerInfo[playerid][Bydliste], 64);
    INI_String("RodneMesto",PlayerInfo[playerid][RodneMesto], 64);
    INI_Int("ObcankaVek",PlayerInfo[playerid][ObcankaVek]);
    INI_String("ObcankaBydliste",PlayerInfo[playerid][ObcankaBydliste], 64);
    INI_String("ObcankaRodneMesto",PlayerInfo[playerid][ObcankaRodneMesto], 64);
    INI_Int("Frakce",PlayerInfo[playerid][Frakce]);
    INI_Int("Hodnost",PlayerInfo[playerid][Hodnost]);
    INI_Int("Papirky",PlayerInfo[playerid][Papirky]);
    INI_Int("Zapalovac",PlayerInfo[playerid][Zapalovac]);
    INI_Int("Marihuana_SourDiesel",PlayerInfo[playerid][Marihuana_SourDiesel]);
    INI_Int("Marihuana_OGKush",PlayerInfo[playerid][Marihuana_OGKush]);
    INI_Int("Marihuana_Blueberry",PlayerInfo[playerid][Marihuana_Blueberry]);
    INI_Int("Marihuana_LemonHaze",PlayerInfo[playerid][Marihuana_LemonHaze]);
    INI_Int("Xanax",PlayerInfo[playerid][Xanax]);
    INI_Int("Lean",PlayerInfo[playerid][Lean]);
    INI_Int("Actavis",PlayerInfo[playerid][Actavis]);
    INI_Int("Sprunk",PlayerInfo[playerid][Sprunk]);
    INI_Int("Koka",PlayerInfo[playerid][Koka]);
    INI_Int("Kokain",PlayerInfo[playerid][Kokain]);
    INI_Int("Lzicka",PlayerInfo[playerid][Lzicka]);
    INI_Int("Heroin",PlayerInfo[playerid][Heroin]);
    INI_Int("Interior",PlayerInfo[playerid][Interior]);
    INI_Int("VirtualWorld",PlayerInfo[playerid][VirtualWorld]);
    INI_Int("Zbran0",PlayerInfo[playerid][Zbran0]);
    INI_Int("Zbran1",PlayerInfo[playerid][Zbran1]);
    INI_Int("Zbran2",PlayerInfo[playerid][Zbran2]);
    INI_Int("Zbran3",PlayerInfo[playerid][Zbran3]);
    INI_Int("Zbran4",PlayerInfo[playerid][Zbran4]);
    INI_Int("Zbran5",PlayerInfo[playerid][Zbran5]);
    INI_Int("Zbran6",PlayerInfo[playerid][Zbran6]);
    INI_Int("Zbran7",PlayerInfo[playerid][Zbran7]);
    INI_Int("Zbran8",PlayerInfo[playerid][Zbran8]);
    INI_Int("Zbran9",PlayerInfo[playerid][Zbran9]);
    INI_Int("Zbran10",PlayerInfo[playerid][Zbran10]);
    INI_Int("Zbran11",PlayerInfo[playerid][Zbran11]);
    INI_Int("Zbran12",PlayerInfo[playerid][Zbran12]);
    INI_Int("Naboje0",PlayerInfo[playerid][Naboje0]);
    INI_Int("Naboje1",PlayerInfo[playerid][Naboje1]);
    INI_Int("Naboje2",PlayerInfo[playerid][Naboje2]);
    INI_Int("Naboje3",PlayerInfo[playerid][Naboje3]);
    INI_Int("Naboje4",PlayerInfo[playerid][Naboje4]);
    INI_Int("Naboje5",PlayerInfo[playerid][Naboje5]);
    INI_Int("Naboje6",PlayerInfo[playerid][Naboje6]);
    INI_Int("Naboje7",PlayerInfo[playerid][Naboje7]);
    INI_Int("Naboje8",PlayerInfo[playerid][Naboje8]);
    INI_Int("Naboje9",PlayerInfo[playerid][Naboje9]);
    INI_Int("Naboje10",PlayerInfo[playerid][Naboje10]);
    INI_Int("Naboje11",PlayerInfo[playerid][Naboje11]);
    INI_Int("Naboje12",PlayerInfo[playerid][Naboje12]);
    INI_Bool("Duty",PlayerInfo[playerid][Duty]);
    INI_Int("Pokuta",PlayerInfo[playerid][Pokuta]);
    INI_String("PosledniPokutaDuvod",PlayerInfo[playerid][PosledniPokutaDuvod], 64);
    INI_Int("VezeniCas",PlayerInfo[playerid][VezeniCas]);
    INI_Int("CigaretyMarlboro",PlayerInfo[playerid][CigaretyMarlboro]);
    INI_Int("CigaretyLM",PlayerInfo[playerid][CigaretyLM]);
    INI_Int("CigaretyChesterfield",PlayerInfo[playerid][CigaretyChesterfield]);
    INI_Int("CigaretyCamel",PlayerInfo[playerid][CigaretyCamel]);
    INI_Int("CigaretyPS",PlayerInfo[playerid][CigaretyPS]);
    INI_Int("CigaretyPhilipMorris",PlayerInfo[playerid][CigaretyPhillipMorris]);
    INI_Int("DoutnikyMonteCristo",PlayerInfo[playerid][DoutnikyMonteCristo]);
    INI_Int("DoutnikyRomeoJulieta",PlayerInfo[playerid][DoutnikyRomeoJulieta]);
    INI_Int("DoutnikyCabinetta",PlayerInfo[playerid][DoutnikyCabinetta]);
    INI_Int("DoutnikyConservas",PlayerInfo[playerid][DoutnikyConservas]);
    INI_Int("Skupina",PlayerInfo[playerid][Skupina]);
    INI_Bool("Mobil",PlayerInfo[playerid][Mobil]);
    INI_Int("SIM",PlayerInfo[playerid][SIM]);
    INI_Int("Kredit",PlayerInfo[playerid][Kredit]);
    INI_Int("Zamestnani",PlayerInfo[playerid][Zamestnani]);
    INI_Int("Nabytek",PlayerInfo[playerid][Nabytek]);
    INI_Int("NahranyCas",PlayerInfo[playerid][NahranyCas]);
    INI_Bool("Napoveda",PlayerInfo[playerid][Napoveda]);
    INI_Int("Zelezo",PlayerInfo[playerid][Zelezo]);
    INI_Bool("GPS",PlayerInfo[playerid][GPS]);
    INI_Int("HotelCas",PlayerInfo[playerid][HotelCas]);
    INI_Int("PlayerBusinessID",PlayerInfo[playerid][PlayerBusinessID]);
    INI_Int("Crack",PlayerInfo[playerid][Crack]);
    INI_Int("JedlaSoda",PlayerInfo[playerid][JedlaSoda]);
    INI_Int("MakSety",PlayerInfo[playerid][MakSety]);
    INI_Int("Morfin",PlayerInfo[playerid][Morfin]);
    INI_Int("Extaze",PlayerInfo[playerid][Extaze]);
    INI_Int("Adrenalin",PlayerInfo[playerid][Adrenalin]);
    INI_Int("Seminko_Marihuana_SourDiesel",PlayerInfo[playerid][Seminko_Marihuana_SourDiesel]);
    INI_Int("Seminko_Marihuana_OGKush",PlayerInfo[playerid][Seminko_Marihuana_OGKush]);
    INI_Int("Seminko_Marihuana_Blueberry",PlayerInfo[playerid][Seminko_Marihuana_Blueberry]);
    INI_Int("Seminko_Marihuana_LemonHaze",PlayerInfo[playerid][Seminko_Marihuana_LemonHaze]);
    INI_Int("Seminko_Koka",PlayerInfo[playerid][Seminko_Koka]);
        return 1;
}

stock LoadBusiness()
{
    print("Nahravani byznisu...");
        new temp[512];
        new count = 0;
        for(new id = BUSINESS_START_ID; id < BUSINESS_MAX_ID; id++)
        {
                GetFreeBusinessID();

            format(temp, sizeof(temp), #BPATH, id);
            if(fexist(temp))
            {
                    INI_ParseFile(temp, "LoadBusines", .bExtra = true, .extra = id);
                        if(!strcmp(Business[id][Owner], "Naprodej"))
                        {
                                Business[id][PickupID] = CreateDynamicPickup(BUSINESS_ICON_SALE, 1, Business[id][bX], Business[id][bY], Business[id][bZ], -1, -1);
                                format(temp, sizeof(temp), "'{0797f7}Nemovitost k prodeji!{FFFFFF}'\n\n Lokalita: %s\nAdresa: %s\n Cena: %d{66FF1C}$", Business[id][Lokace], Business[id][Street], Business[id][Price]);
                                Business[id][BusinessLabel] = CreateDynamic3DTextLabel(temp, -1, Business[id][bX], Business[id][bY], Business[id][bZ] + D3_BUSINESS_OFFSET, D3TEXT_DRAW);
                        }
                        else
                        {
                                  Business[id][PickupID] = CreateDynamicPickup(BUSINESS_ICON_OWNED, 1, Business[id][bX], Business[id][bY], Business[id][bZ], -1, -1);
                                format(temp, sizeof(temp), "{0797f7}[{FFFFFF} %s {0797f7}]{FFFFFF}\n\nMajitel: %s\nLokalita: %s\nAdresa: %s", Business[id][Nazev], Business[id][Owner], Business[id][Lokace], Business[id][Street]);
                                Business[id][BusinessLabel] = CreateDynamic3DTextLabel(temp, -1, Business[id][bX], Business[id][bY], Business[id][bZ] + D3_BUSINESS_OFFSET, D3TEXT_DRAW);
                        }
                        count++;
                }
        }
        return count;
}

stock LoadHouses()
{
    print("Nahravani vsech domu...");
        new temp[512];
        new count = 0;
        for(new id = HOUSE_START_ID; id < HOUSE_MAX_ID; id++)
        {
                GetFreeHouseID();

            format(temp, sizeof(temp), #HPATH, id);
            if(fexist(temp))
            {
                    INI_ParseFile(temp, "LoadHouse", .bExtra = true, .extra = id);
                        if(!strcmp(House[id][Owner], "Naprodej"))
                        {
                                House[id][PickupID] = CreateDynamicPickup(HOUSE_ICON_SALE, 1, House[id][hX], House[id][hY], House[id][hZ], -1, -1);
                                format(temp, sizeof(temp), "'{0797f7}Dům k prodeji!{FFFFFF}'\n\n Lokalita: %s\nAdresa: %s\n Cena: %d{66FF1C}$", House[id][Lokace], House[id][Street], House[id][Price]);
                                House[id][HouseLabel] = CreateDynamic3DTextLabel(temp, -1, House[id][hX], House[id][hY], House[id][hZ] + D3_HOUSE_OFFSET, D3TEXT_DRAW);
                        }
                        else
                        {
                                  House[id][PickupID] = CreateDynamicPickup(HOUSE_ICON_OWNED, 1, House[id][hX], House[id][hY], House[id][hZ], -1, -1);
                                format(temp, sizeof(temp), "Majitel: %s\nLokalita: %s\nAdresa: %s", House[id][Owner], House[id][Lokace], House[id][Street]);
                                House[id][HouseLabel] = CreateDynamic3DTextLabel(temp, -1, House[id][hX], House[id][hY], House[id][hZ] + D3_HOUSE_OFFSET, D3TEXT_DRAW);
                        }
                        count++;
                }
        }
        return count;
}

help me query server login

$
0
0
I don't know what I used to make my gamemode very slow to login.

I have to wait 10-15 seconds to see the dialog_password.

I have used a lot of "tasks" in my gamemode, I wonder if this will cause this delay, below is all the code related to my login, please help me

PHP Code:

public OnPlayerConnect(playerid) {
    
    
//ts3
    
TS_SampOnlines ++;
    
UpdateSampOnlinesChannel();
    
TSClientID[playerid] = -1;
    
moved[playerid] = 0;
    
TSState[playerid] = 0;
    
Delete3DTextLabel(TSLabel[playerid]);
    
    
DeletePVar(playerid"nndc");
    
DeletePVar(playerid"nnbt");
    if(
PlayerInfo[playerid][tuloz] > 0){
        
//SetPlayerHealth(playerid, 9999);
        
SetPlayerSkin(playerid50);
        
SetPlayerColor(playeridCOLOR_BLACK);
        
Player_StreamPrep(playerid, -303.6095,1894.9181,29.8929FREEZE_TIME);
    }
    
// Delete3DTextLabel(familylabel);
    // Delete3DTextLabel(teamlabel);

    
if(IsPlayerNPC(playerid)) return 1;

    
g_arrQueryHandle{playerid} = random(256);

    
TotalConnect++;
    if(
Iter_Count(Player) > MaxPlayersConnected) {
        
MaxPlayersConnected Iter_Count(Player);
        
getdate(MPYear,MPMonth,MPDay);
    }
    
SetPlayerSkillLevel(playeridWEAPONSKILL_PISTOL1);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_MICRO_UZI1);

    
//huong dan
    
TutTimer[playerid] = 0;
    
// CheckGod[playerid] = 0;
    //Uber
    
UberCall[playerid] = false;
    
UberMap[playerid] = false;
    
UberAccepted[playerid] = INVALID_PLAYER_ID;
    
UberCallTime[playerid] = false;
    
OnUber[playerid] = false;
    
AcUBCall[playerid] = false;
    
UberDriver[playerid] = INVALID_PLAYER_ID;
    
UseUber[playerid] = false;

    
//noithat
    
MuaInt[playerid] = 0;
    
IntHouse[playerid] = 0;


    
SetPVarInt(playerid"IsInArena", -1);
    
SetPVarInt(playerid"ArenaNumber", -1);
    
SetPVarInt(playerid"ArenaEnterPass", -1);
    
SetPVarInt(playerid"ArenaEnterTeam", -1);
    
SetPVarInt(playerid"EditingTurfs", -1);
    
SetPVarInt(playerid"EditingTurfsStage", -1);
    
SetPVarInt(playerid"EditingHillStage", -1);
    
SetPVarInt(playerid"EditingFamC", -1);
    
SetPVarInt(playerid"editingfamhq"INVALID_FAMILY_ID);
    
SetPVarInt(playerid"UsingSurfAttachedObject", -1);
    
SetPVarInt(playerid"UsingBriefAttachedObject", -1);
    
SetPVarInt(playerid"AOSlotPaintballFlag", -1);
    
SetPVarInt(playerid"MovingStretcher", -1);
    
SetPVarInt(playerid"DraggingPlayer"INVALID_PLAYER_ID);
    
SetPVarInt(playerid"ttSeller"INVALID_PLAYER_ID);
    
SetPVarInt(playerid"ttBuyer"INVALID_PLAYER_ID);
    
SetPVarInt(playerid"ttCost"0);
    
SetPVarInt(playerid"buyingVoucher"INVALID_PLAYER_ID);
    
SetPVarInt(playerid"sellerVoucher"INVALID_PLAYER_ID);
    
SetPVarInt(playerid"buyerVoucher"INVALID_PLAYER_ID);
    
DeletePVar(playerid"BeingDragged");
    
DeletePVar(playerid"PlayerCuffed");
    
DeletePVar(playerid"COMMUNITY_ADVISOR_REQUEST");

    
HackingMods[playerid] = 0;
    
pSpeed[playerid] = 0.0;
    
//SetTimerEx("HackingTimer", 1000, 0, "i", playerid);

    
for(new 03i++) {
        
StopaniFloats[playerid][i] = 0;
    }


    for(new 
03i++) {
        
ConfigEventCPs[playerid][i] = 0;
    }
    
ConfigEventCPId[playerid] = 0;
    
RCPIdCurrent[playerid] = 0;

    for(new 
06i++) {
        
EventFloats[playerid][i] = 0.0;
    }
    
EventLastInt[playerid] = 0EventLastVW[playerid] = 0;

    for(new 
06i++) {
        
HHcheckFloats[playerid][i] = 0;
    }

    for(new 
0MAX_PLAYERVEHICLES; ++i) {
        
PlayerVehicleInfo[playerid][i][pvModelId] = 0;
        
PlayerVehicleInfo[playerid][i][pvId] = INVALID_PLAYER_VEHICLE_ID;
        
PlayerVehicleInfo[playerid][i][pvSpawned] = 0;
        
PlayerVehicleInfo[playerid][i][pvSlotId] = 0;
    }

    for(new 
0MAX_PLAYERTOYSi++) {
        
PlayerToyInfo[playerid][i][ptID] = -1;
        
PlayerToyInfo[playerid][i][ptModelID] = 0;
        
PlayerToyInfo[playerid][i][ptBone] = 0;
        
PlayerToyInfo[playerid][i][ptSpecial] = 0;
    }

    for(new 
011i++) {
        
PlayerHoldingObject[playerid][i] = 0;
    }

    for(new 
05i++) {
        
LottoNumbers[playerid][i] = 0;
    }

    for(new 
0MAX_BUSINESSSALESi++) {
        
Selected[playerid][i] = 0;
    }
    for(new 
x=0mS_SELECTION_ITEMSx++) {
        
gSelectionItems[playerid][x] = PlayerText:INVALID_TEXT_DRAW;
    }

    
gHeaderTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    
gBackgroundTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    
gCurrentPageTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    
gNextButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    
gPrevButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;
    
gCancelButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW;

    
SpoofKill[playerid] = 0;
    
KillTime[playerid] = 0;
    
gItemAt[playerid] = 0;
    
TruckUsed[playerid] = INVALID_VEHICLE_ID;
    
pDrunkLevelLast[playerid] = 0;
    
pFPS[playerid] = 0;
    
BackupClearTimer[playerid] = 0;
    
Backup[playerid] = 0;
    
CarRadars[playerid] = 0;
    
CurrentArmor[playerid] = 0.0;
    
PlayerInfo[playerid][pReg] = 0;
    
HHcheckVW[playerid] = 0;
    
HHcheckInt[playerid] = 0;
    
OrderAssignedTo[playerid] = INVALID_PLAYER_ID;
    
TruckUsed[playerid] = INVALID_VEHICLE_ID;
    
HouseOffer[playerid] = INVALID_PLAYER_ID;
    
House[playerid] = 0;
    
HousePrice[playerid] = 0;
    
playerTabbed[playerid] = 0;
    
playerAFK[playerid] = 0;
    
gBug{playerid} = 1;
    
TazerTimeout[playerid] = 0;
    
// gRadio{playerid} = 1;
    
playerLastTyped[playerid] = 0;
    
pTazer{playerid} = 0;
    
pTazerReplace{playerid} = 0;
    
pCurrentWeapon{playerid} = 0;
    
MedicAccepted[playerid] = INVALID_PLAYER_ID;
    
DefendOffer[playerid] = INVALID_PLAYER_ID;
    
AppealOffer[playerid] = INVALID_PLAYER_ID;
    
AppealOfferAccepted[playerid] = 0;
    
PlayerInfo[playerid][pWantedLevel] = 0;
    
DefendPrice[playerid] = 0;
    
Spectating[playerid] = 0;
    
GettingSpectated[playerid] = INVALID_PLAYER_ID;
    
PlayerInfo[playerid][pPhonePrivacy] = 0;
    
NewbieTimer[playerid] = 0;
    
CNCTimer[playerid] = 0;
    
HlKickTimer[playerid] = 0;
    
HelperTimer[playerid] = 0;
    
VehicleOffer[playerid] = INVALID_PLAYER_ID;
    
VehiclePrice[playerid] = 0;
    
VehicleId[playerid] = -1;
    
NOPTrigger[playerid] = 0;
    
JustReported[playerid] = -1;
    
UsedCrack[playerid] = 0;
    
UsedWeed[playerid] = 0;
    
SexOffer[playerid] = INVALID_PLAYER_ID;
    
DrinkOffer[playerid] =  INVALID_PLAYER_ID;
    
PotOffer[playerid] = INVALID_PLAYER_ID;
    
PotStorageID[playerid] = -1;
    
CrackOffer[playerid] = INVALID_PLAYER_ID;
    
CrackStorageID[playerid] = -1;
    
GunOffer[playerid] = INVALID_PLAYER_ID;
    
GunStorageID[playerid] = -1;
    
CraftOffer[playerid] = INVALID_PLAYER_ID;
    
RepairOffer[playerid] = INVALID_PLAYER_ID;
    
GuardOffer[playerid] = INVALID_PLAYER_ID;
    
LiveOffer[playerid] = INVALID_PLAYER_ID;
    
RefillOffer[playerid] = INVALID_PLAYER_ID;
    
MatsOffer[playerid] = INVALID_PLAYER_ID;
    
MatsStorageID[playerid] = -1;
    
MatsPrice[playerid] = 0;
    
MatsAmount[playerid] = 0;
    
BoxOffer[playerid] = INVALID_PLAYER_ID;
    
MarryWitnessOffer[playerid] = INVALID_PLAYER_ID;
    
ProposeOffer[playerid] = INVALID_PLAYER_ID;
    
DivorceOffer[playerid] = INVALID_PLAYER_ID;
    
HidePM[playerid] = 0;
    
PhoneOnline[playerid] = 0;
    
unbanip[playerid][0] = 0;
    
advisorchat[playerid] = 1;
    
ChosenSkin[playerid]=0;
    
SelectFChar[playerid]=0;
    
MatsHolding[playerid]=0;
    
MatDeliver[playerid]=0;
    
MatDeliver2[playerid]=0;
    
szAdvert[playerid][0] = 0;
    
AdvertType[playerid] = 0;
    
SelectFCharPlace[playerid]=0;
    
GettingJob[playerid]=0;
    
GettingJob2[playerid]=0;
    
GuardOffer[playerid]= INVALID_PLAYER_ID;
    
GuardPrice[playerid]=0;
    
ApprovedLawyer[playerid]=0;
    
CallLawyer[playerid]=0;
    
WantLawyer[playerid]=0;
    
CurrentMoney[playerid]=0;
    
UsedFind[playerid]=0;
    
CP[playerid]=0;
    
Condom[playerid]=0;
    
SexOffer[playerid]= INVALID_PLAYER_ID;
    
SexPrice[playerid]=0;
    
PlayerInfo[playerid][pAdmin]=0;
    
RepairOffer[playerid]= INVALID_PLAYER_ID;
    
RepairPrice[playerid]=0;
    
RepairCar[playerid]=0;
    
TalkingLive[playerid]=INVALID_PLAYER_ID;
    
LiveOffer[playerid]= INVALID_PLAYER_ID;
    
RefillOffer[playerid]= INVALID_PLAYER_ID;
    
RefillPrice[playerid]=0;
    
InsidePlane[playerid]=INVALID_VEHICLE_ID;
    
InsideMainMenu{playerid}=0;
    
InsideTut{playerid}=0;
    
PotOffer[playerid]= INVALID_PLAYER_ID;
    
PotStorageID[playerid]=-1;
    
CrackOffer[playerid]= INVALID_PLAYER_ID;
    
CrackStorageID[playerid]=-1;
    
PlayerCuffed[playerid]=0;
    
PlayerCuffedTime[playerid]=0;
    
PotPrice[playerid]=0;
    
CrackPrice[playerid]=0;
    
RegistrationStep[playerid]=0;
    
PotGram[playerid]=0;
    
CrackGram[playerid]=0;
    
PlayerInfo[playerid][pBanned]=0;
    
ConnectedToPC[playerid]=0;
    
OrderReady[playerid]=0;
    
GunId[playerid]=0;
    
GunMats[playerid]=0;
    
CraftId[playerid]=0;
    
CraftMats[playerid]=0;
    
HitOffer[playerid]= INVALID_PLAYER_ID;
    
HitToGet[playerid]= INVALID_PLAYER_ID;
    
InviteOffer[playerid]= INVALID_PLAYER_ID;
    
InviteFamily[playerid]=INVALID_FAMILY_ID;
    
hInviteHouse[playerid]=INVALID_HOUSE_ID;
    
hInviteOffer[playerid]= INVALID_PLAYER_ID;
    
hInviteOfferTo[playerid]= INVALID_PLAYER_ID;
    
JailPrice[playerid]=0;
    
GotHit[playerid]=0;
    
GoChase[playerid]= INVALID_PLAYER_ID;
    
GetChased[playerid]= INVALID_PLAYER_ID;
    
CalledCops[playerid]=0;
    
CopsCallTime[playerid]=0;
    
BoxWaitTime[playerid]=0;
    
CalledMedics[playerid]=0;
    
TransportDuty[playerid]=0;
    
PlayerTied[playerid]=0;
    
MedicsCallTime[playerid]=0;
    
BusCallTime[playerid]=0;
    
TaxiCallTime[playerid]=0;
    
EMSCallTime[playerid]=0;
    
MedicCallTime[playerid]=0;
    
MechanicCallTime[playerid]=0;
    
FindTimePoints[playerid]=0;
    
FindingPlayer[playerid]=-1;
    
FindTime[playerid]=0;
    
JobDuty[playerid]=0;
    
Mobile[playerid]=INVALID_PLAYER_ID;
    
Music[playerid]=0;
    
BoxOffer[playerid]= INVALID_PLAYER_ID;
    
PlayerBoxing[playerid]=0;
    
Spectate[playerid]= INVALID_PLAYER_ID;
    
PlayerDrunk[playerid]=0;
    
PlayerDrunkTime[playerid]=0;
    
format(PlayerInfo[playerid][pPrisonReason],128,"None");
    
FishCount[playerid]=0;
    
HelpingNewbie[playerid]= INVALID_PLAYER_ID;
    
turfWarsRadar[playerid]=0;
    
courtjail[playerid]=0;
    
gLastCar[playerid]=0;
    
FirstSpawn[playerid]=0;
    
JetPack[playerid]=0;
    
PlayerInfo[playerid][pKills]=0;
    
PlayerInfo[playerid][pPaintTeam]=0;
    
TextSpamTimes[playerid] = 0;
    
TextSpamUnmute[playerid] = 0;
     
CommandSpamTimes[playerid] = 0;
    
CommandSpamUnmute[playerid] = 0;
    
gOoc[playerid] = 0;
    
arr_Towing[playerid] = INVALID_VEHICLE_ID;
    
gNews[playerid] = 0;
    
gNewbie[playerid] = 1;
    
gHelp[playerid] = 1;
    
gFam[playerid] = 0;
    
gPlayerLogged{playerid} = 0;
    
gPlayerLogTries[playerid] = 0;
    
IsSpawned[playerid] = 0;
    
SpawnKick[playerid] = 0;
    
PlayerStoned[playerid] = 0;
    
PlayerInfo[playerid][pPot] = 0;
    
StartTime[playerid] = 0;

    
//Farmer
    
PlayerInfo[playerid][pNongSan] = 0;
    
//chan nuoi
    
PlayerInfo[playerid][pTanThit] = 0;
    
PlayerInfo[playerid][pTanThitBo] = 0;
    
PlayerInfo[playerid][pTanThitNgua] = 0;
    
//cansa
    
PlayerInfo[playerid][csstt] = 0;
    
PlayerInfo[playerid][csrand] = 0;

    
timecbcs[playerid] = 0;

    
//loto
    
PlayerInfo[playerid][lEnable] = 1;

    
TicketOffer[playerid] = INVALID_PLAYER_ID;
    
TicketMoney[playerid] = 0;
    
PlayerInfo[playerid][pVehicleKeysFrom] = INVALID_PLAYER_ID;
    
ActiveChatbox[playerid] = 1;
    
TutStep[playerid] = 0;
    
PlayerInfo[playerid][pVehicleKeys] = INVALID_PLAYER_VEHICLE_ID;
    
TaxiAccepted[playerid] = INVALID_PLAYER_ID;
    
EMSAccepted[playerid] = INVALID_PLAYER_ID;
    
BusAccepted[playerid] = INVALID_PLAYER_ID;
    
PlayerInfo[playerid][pCrack] = 0;
    
HireCar[playerid] = 299;
    
TransportValue[playerid] = 0;
    
TransportMoney[playerid] = 0;
    
TransportTime[playerid] = 0;
    
TransportCost[playerid] = 0;
    
TransportDriver[playerid] = INVALID_PLAYER_ID;
    
Locator[playerid] = 0;
    
ReleasingMenu[playerid] = INVALID_PLAYER_ID;
    
Fishes[playerid][pLastFish] = 0;
    
Fishes[playerid][pFishID] = 0;
    
ProposeOffer[playerid] = INVALID_PLAYER_ID;
    
MarryWitness[playerid] = INVALID_PLAYER_ID;
    
MarryWitnessOffer[playerid] = INVALID_PLAYER_ID;
    
MarriageCeremoney[playerid] = 0;
    
ProposedTo[playerid] = INVALID_PLAYER_ID;
    
GotProposedBy[playerid] = INVALID_PLAYER_ID;
    
DivorceOffer[playerid] = INVALID_PLAYER_ID;
    
gBike[playerid] = 0;
    
gBikeRenting[playerid] = 0;
    
Fixr[playerid] = 0;
    
VehicleSpawned[playerid] = 0;
    
ReportCount[playerid] = 0;
    
ReportHourCount[playerid] = 0;
    
PlayerInfo[playerid][pServiceTime] = 0;
    
Homes[playerid] = 0;
    ******
Checkvar[playerid] = 0;
    ******
CheckIsDone[playerid] = 0;
    
IsPlayerFrozen[playerid] = 0;
    
strdel(PlayerInfo[playerid][pAutoTextReply], 064);
    
rBigEarT[playerid] = 0;
    
aLastShot[playerid] = INVALID_PLAYER_ID;
    if(
IsValidDynamic3DTextLabel(RFLTeamN3D[playerid])) {
        
DestroyDynamic3DTextLabel(RFLTeamN3D[playerid]);
    }

    
// These need to be reset to prevent some bugs (DO NOT REMOVE)
    
PlayerInfo[playerid][pModel] = 0;
    
PlayerInfo[playerid][pLeader] = INVALID_GROUP_ID;
    
PlayerInfo[playerid][pMember] = INVALID_GROUP_ID;
    
PlayerInfo[playerid][pDivision] = INVALID_DIVISION;
    
PlayerInfo[playerid][pFMember] = INVALID_FAMILY_ID;
    
PlayerInfo[playerid][pRank] = INVALID_RANK;
    
PlayerInfo[playerid][pOrder] = 0;
    
PlayerInfo[playerid][pOrderConfirmed] = 0;
    
PlayerInfo[playerid][pBusiness] = INVALID_BUSINESS_ID;
    
acstruct[playerid][LastOnFootPosition][0] = 0.0acstruct[playerid][LastOnFootPosition][1] = 0.0acstruct[playerid][LastOnFootPosition][2] = 0.0;
    
acstruct[playerid][checkmaptp] = 0acstruct[playerid][maptplastclick] = 0;
    
acstruct[playerid][maptp][0] = 0.0acstruct[playerid][maptp][1] = 0.0acstruct[playerid][maptp][2] = 0.0;

    for(new 
0MAX_PLAYERSx++)
    {
        
ShotPlayer[playerid][x] = 0;
    }

    for(new 
0MAX_PLAYERVEHICLESv++) {
        
PlayerVehicleInfo[playerid][v][pvAllowedPlayerId] = INVALID_PLAYER_ID;
    }

    for(new 
012s++) {
        
PlayerInfo[playerid][pAGuns][s] = 0;
        
PlayerInfo[playerid][pGuns][s] = 0;
    }

    for(new 
040s++) {
        
ListItemReportId[playerid][s] = -1;
    }

    for(new 
020s++) {
        
ListItemRCPId[playerid][s] = -1;
    }

    
CancelReport[playerid] = -1;
    
GiveKeysTo[playerid] = INVALID_PLAYER_ID;
    
RocketExplosions[playerid] = -1;
    
ClearFishes(playerid);
    
ClearMarriage(playerid);

    
// Crash Fix - GhoulSlayeR
    
if(!InvalidNameCheck(playerid)) {
        return 
1;
    }

    
CheckAdminWhitelist(playerid);

    
/*new string[128], serial[64];
    gpci(playerid, serial, sizeof(serial));
    format(string, sizeof(string), "%s/checks/gpci.php?g=%s&n=%s&i=%s", SAMP_WEB, serial, GetPlayerNameExt(playerid), GetPlayerIpEx(playerid));
    HTTP(0, HTTP_HEAD, string, "", "");*/

    // Main Menu Features
    
InsideMainMenu{playerid} = 0;
    
InsideTut{playerid} = 0;

    
//ShowMainMenuGUI(playerid);
    
SetPlayerJoinCamera(playerid);
    
ClearChatbox(playerid);
    
SetPlayerVirtualWorld(playerid99999);

    
SetPlayerColor(playerid,TEAM_HIT_COLOR);
    
SendClientMessageplayeridCOLOR_WHITE"SERVER: Chao mung ban da den  GTA:ONLINE." );

    
SyncPlayerTime(playerid);

    
ShowNoticeGUIFrame(playerid1);

    
SetTimerEx("LoginCheckEx"50000"i"playerid);
    
//RemoveBuildings(playerid);
    
return 1;


Bug on load Buisness.

$
0
0
Hi, I have a small problem with the business loading system. What happens is that for example, in my Database I have 10 businesses, identified by an ID from 1 to 10, and when loading them, the IDs are from 0 to 9, I think, the problem comes from here:

pawn Code:
for(new i = 0;i < cache_get_row_count(); i++)

But, if I change the new i = 0 to a new = 1, the mysql throws this error on "mysql_log.txt"

pawn Code:
[WARNING] CMySQLResult::GetRowData - invalid row ('43') or field index ('0')
[ERROR] cache_get_row_int - invalid datatype



Full Load Code
pawn Code:
public LoadBiz()
{
    new query[80], string[300], type[20];
    mysql_format(MySQL, query, sizeof(query), "SELECT * FROM biz");
    new Cache:result = mysql_query(MySQL, query);
    for(new i = 0;i < cache_get_row_count(); i++)
    {
        Business[i][nID] = cache_get_row_int(i, 0, MySQL);
        cache_get_row(i, 1, Business[i][nName], MySQL, 128);
        cache_get_row(i, 2, Business[i][nOwnerN], MySQL, 128);
        Business[i][nOwnerID] = cache_get_row_int(i, 3, MySQL);
        Business[i][nType] = cache_get_row_int(i, 4, MySQL);
        Business[i][nPEx] = cache_get_row_float(i, 5, MySQL);
        Business[i][nPEy] = cache_get_row_float(i, 6, MySQL);
        Business[i][nPEz] = cache_get_row_float(i, 7, MySQL);
        Business[i][nPIx] = cache_get_row_float(i, 8, MySQL);
        Business[i][nPIy] = cache_get_row_float(i, 9, MySQL);
        Business[i][nPIz] = cache_get_row_float(i, 10, MySQL);
        Business[i][nIntE] = cache_get_row_int(i, 11, MySQL);
        Business[i][nIntI] = cache_get_row_int(i, 12, MySQL);
        Business[i][nVwE] = cache_get_row_int(i, 13, MySQL);
        Business[i][nVwI] = cache_get_row_int(i, 14, MySQL);
        Business[i][nPrice] = cache_get_row_int(i, 15, MySQL);
        Business[i][nMats] = cache_get_row_int(i, 16, MySQL);
        Business[i][nMoney] = cache_get_row_int(i, 17, MySQL);
        Business[i][nEntrada] = cache_get_row_int(i, 18, MySQL);
        //--------------------------------------------------------------
        Business[i][nPickE] = CreateDynamicPickup(19135, 23, Business[i][nPEx], Business[i][nPEy], Business[i][nPEz], Business[i][nVwE], Business[i][nIntE], -1, 150.0 );
        Business[i][nPickI] = CreateDynamicPickup(19135, 23, Business[i][nPIx], Business[i][nPIy], Business[i][nPIz], Business[i][nVwI], Business[i][nIntI], -1, 150.0 );
        //------------------------------------------------------------------
        switch(Business[i][nType])
        {
            case 1:{    type="24/7";}   case 2:{    type="Clothing";}   case 3:{    type="Food";}   case 4:{    type="Electronics";}   case 5:{    type="Armory";}
        }
        if(Business[i][nOwnerID] == 0)
        {
            format(string, sizeof(string), "{00E100}¡For Sell!\n{B8D900}Price: {FFFFFF}$%d\n{B8D900}Type: {FFFFFF}%s\n{B8D900}Access: {FFFFFF}%d\n{B8D900}addres: {FFFFFF}N-%d", Business[i][nPrice], type, Business[i][nEntrada], Business[i][nID]);
            LabelNE[i] = CreateDynamic3DTextLabel(string, 0xF0CC00FF, Business[i][nPEx], Business[i][nPEy], Business[i][nPEz]+0.75, 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Business[i][nVwE], Business[i][nIntE], -1, 100.0);
            format(string, sizeof(string), "{00E100}¡For Sell!\n{B8D900}Price: {FFFFFF}$%d\n{B8D900}Type: {FFFFFF}%s\n{B8D900}Access: {FFFFFF}%d\n{B8D900}addres: {FFFFFF}N-%d", Business[i][nPrice], type, Business[i][nEntrada], Business[i][nID]);
            LabelNI[i] = CreateDynamic3DTextLabel(string, 0xF0CC00FF, Business[i][nPIx], Business[i][nPIy], Business[i][nPIz]+0.75,20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Business[i][nVwI], Business[i][nIntI], -1, 100.0);
        }
        else
        {
            format(string, sizeof(string), "{FFFFFF}%s\n{B8D900}Dueño: {FFFFFF}%s\n{B8D900}Tipo: {FFFFFF}%s\n{B8D900}Acceso: {FFFFFF}%d\n{B8D900}Dirección: {FFFFFF}N-%d", Negocios[i][nName], Negocios[i][nOwnerN], tipo, Negocios[i][nEntrada], Negocios[i][nID]);
            LabelNE[i] = CreateDynamic3DTextLabel(string, 0xF0CC00FF, Negocios[i][nPEx], Negocios[i][nPEy], Negocios[i][nPEz]+0.75, 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Negocios[i][nVwE], Negocios[i][nIntE], -1, 100.0);
            format(string, sizeof(string), "{FFFFFF}%s\n{B8D900}Dueño: {FFFFFF}%s\n{B8D900}Tipo: {FFFFFF}%s\n{B8D900}Acceso: {FFFFFF}%d\n{B8D900}Dirección: {FFFFFF}N-%d", Negocios[i][nName], Negocios[i][nOwnerN], tipo, Negocios[i][nEntrada], Negocios[i][nID]);
            LabelNI[i] = CreateDynamic3DTextLabel(string, 0xF0CC00FF, Negocios[i][nPIx], Negocios[i][nPIy], Negocios[i][nPIz]+0.75,20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Negocios[i][nVwI], Negocios[i][nIntI], -1, 100.0);
        }
        TBusiness++;
    }
    cache_delete(result);
    return 1;
}

[Ajuda] Problema na Dialog

$
0
0
TEM UM PROBLEMA, QUANDO ESCOLHO ALGUMA DAS OPÇÕES DAS DIALOGs, NÃO ABRE A OUTRA DIALOG
Obrigado, des de já!


PHP Code:

CMD:menupreco(playeridparams[])
{
ShowPlayerDialog(playeridDIALOG_MENUMUDARPHDIALOG_STYLE_LIST"Reajuste De Precos""Carro\nMoto""Confirma""Cancelar");
return 
1;


PHP Code:

 if(dialogid == DIALOG_MENUMUDARPH)
   {
        if(
response)
        {

            switch(
listitem)
            {
            case 
0ShowPlayerDialog(playeridDIALOG_MUDARPCARRO,  DIALOG_STYLE_INPUT"Reajuste De Preco""Voce Ira Reajustar o Preco Da Habilitacao de Carro!""Confirma""Cancelar");
             
 case 
1ShowPlayerDialog(playeridDIALOG_MUDARPMOTO,  DIALOG_STYLE_INPUT"Reajuste De Preco""Voce Ira Reajustar o Preco Da Habilitacao de Moto!""Confirma""Cancelar");
 
}
return 
1;


[Ajuda] Destruir

$
0
0
Tipo uso este comando para destruir família, ele apaga o arquivo na scriptfiles mas no /familias ele continua lá a família
ela apenas sai quando dou gmx no servidor como seria possivel remover sem da gmx?

PHP Code:

        CMD:destruirfamilia(playeridVaga[])
        {
        if(
PlayerInfo[playerid][pAdmin] < 1337)
        {
            
SendClientMessage(playeridCOR_GRAD2"Somente admins {8B4513}Master{BFC0C2} podem usar este comando!");
            return 
1;
        }
        if(
sscanf(Vaga"s[15]"Vaga))
        {
            
SendClientMessage(playeridCOR_LIGHTRED"USE:{FFFFFF} /destruirfamilia [Nº Familia]");
            return 
1;
        }
        new 
file[128];
        new 
Vaga2 strval(Vaga);
        if(
Vaga2 || Vaga2 22) { SendClientMessage(playeridCOR_GREY"Vaga mínima 1 máximo 22!"); return 1; }
        
format(stringZCMDsizeof(stringZCMD), "AdmCmd: O Admin %s destruiu a família: %s | Dono: %s | Dias: %d!",PlayerName(playerid), FamiliaInfo[Vaga2][fName], FamiliaInfo[Vaga2][fLeader], FamiliaInfo[Vaga2][fTempo]);
        
SendClientMessageToAll(COR_LIGHTREDstringZCMD);
        
LideresFamiliaLog(stringZCMD);
        
format(filesizeof file"Familias/Familia%d.ini"Vaga2);
        if(
DOF2_FileExists(file))
        {
            
fremove(file);
          }
        
format(stringZCMDsizeof(stringZCMD), "Você destruiu a família número %d.",Vaga2);
        
SendClientMessage(playeridCOR_LIGHTBLUEstringZCMD);
        return 
1;
        } 

[GameMode] [BR] San Fierro Gang War 1.1.0

$
0
0

Olá cidadãos do Fórum SA-MP, estive um pouco ausente daqui devido a trabalho e fico sem tempo para SA-MP.
Ainda consegui desenvolver um servidor e o mesmo encontra-se ativo, porém ainda não dei início a divulgações do mesmo.

Desenvolvi um gamemode na modalidade TDM/Gang War que poderá ser usado como base para estudos ou para novos servidores da modalidade com 4 equipes são elas:
Code:

Policiais
Frangos
Mendingos
Máfia

O GM está totalmente fácil de editar, você pode adicionar mais equipes e mais funções para uma melhor jogabilidade.

O mesmo tem alguns sistemas inclusos que vou citar alguns:
Code:

Sistema de Admin com 5 leveis;
Spawn de cada organização, faltando apenas adicionar alguns carros no spawn da Máfia;
Sistema de proteção do gamemode por: IP, Porta, nome do gamemode e senha da RCON;
Salvamento em DOF2;
Comandos em ZCMD;
Todo feito em dialogs;
Sistema de VIP por dias com apenas 1 level;
Sistema de transportes ilegais (necessário estar dentro do carro e digitar o comando /mis;
Anti Money-Hack simples;
Sistema de TOP Ricos e TOP Kills;
E muito mais...

Atualmente o mesmo está no total com 3206 linhas incluindo comentários, você poderá adicionar mais sistemas conforme seu gosto/necessidade sem problema algum, está totalmente funcional e fácil de editar.

Miqueias, por quê não criou com MySQL?
Não utilizei MySQL até porque não são todos que sabem ou tem paciência em mexer com isso, quando iniciei meus estudos no Pawn corria disso.

O gamemode possui algumas definições e uma variável de proteção contra roubo e anti descompilação, nas linhas: 34, 35, 36, 37 você deverá editar conforme suas informações, ex:
pawn Code:
// PROTEÇÃO DO GAMEMODE
#define PROTECAO_IP                     "91.121.87.14" // IP padrão com a linha bind no server.cfg
#define PROTECAO_PORTA                  7951 // A porta do server.cfg deve ser esta
#define PROTECAO_RCON                   "#$%rconmiqueias123" // Senha do server.cfg deve ser esta
#define PROTECAO_GM                     "ini-tdm" // Gamemode do server.cfg deve ser este
Em proteção de IP você deverá colocar o IP do seu servidor, se estiver utilizando localmente você pode colocar 127.0.0.1 e atentar também para a porta do servidor que de forma padrão é 7777.

A RCON e a Proteção do GM tem que ser igual que está no server.cfg que também tem que ter a linha bind com o mesmo IP que estiver dentro do gamemode.

Na linha 152 existe uma variável por nome PROTECAO onde você dará o funcionamento do gamemode, ao lado dela tem um comentário explicativo.

* Ah, sou um crítico.
Fique com sua crítica "pobriu" que não vai somar em nada pra mim mesmo. :D

Para se tornar ADMIN
É necessário estar logado na RCON e digitar o comando /viraradmin, automaticamente seu level é setado para o nível (Admin RCON).

Para ver os comandos de admin basta digitar /aa e você terá acesso aos comandos de acordo com o level do admin.

PRINTS
Depois faço uma atualização do tópico com um vídeo ou algumas imagens.

DOWNLOAD
Gamemode: Baixe aqui (pastebin *ficará mal identado*)
Servidor completo com pastas/includes/scriptfiles: Baixe aqui (mega.nz)

AFK

$
0
0
I want to do

if someone got shot before he (4 seconds) afk if he comes back he will die but if someone is afk already and shoot him he don't get damage until he come back

Thanks

Animation

$
0
0
How to do

if player is currently using an animation and he did another animation command it will say something like "you are already using an animation please use /stopanim first"

and if player is using server animation (not in commands) like he is crouching, walking, running then he use animation it will say something "stop first to use animation command"

thanks

bug counter.

$
0
0
Hi guys, I have a problem, I am testing this FS counter but it works badly, you can only put the pump on id player 0 and also deactivate the pump why? They told me it can be the new playerid:
Code:


#include <a_samp>
#include <streamer>

#define TEAM_RED 1
#define TEAM_BLUE 2

#define COLOR_RED 0xAA3333AA
#define COLOR_BLUE        0x33CCFFAA
#define COLOR_ERROR 0xFF6A6AFF
#define COLOR_BOMB 0x96BD6AFF

new gTeam[MAX_PLAYERS];
new IsPlanted[MAX_PLAYERS];
new BombTimer;
new DefuseTimer;
new BombC;

#if defined FILTERSCRIPT

#else

main()
{
        print("\n=========================================");
        print(" Counter Strike Minigame by Xaviour212");
        print("=========================================\n");
}

#endif

public OnFilterScriptInit()
{
        print("\n=========================================");
        print(" Counter Strike Minigame by Xaviour212");
        print("=========================================\n");
        //
        CreateDynamicObject(4843, 3788.556640625, -1007, 22.800483703613, 2.4224853515625, 14.26025390625, 359.37927246094);
        CreateDynamicObject(18450, 3788.0417480469, -1074.3570556641, 28.603553771973, 271.82019042969, 105.94512939453, 105.95275878906);
        CreateDynamicObject(18450, 3752.2565917969, -1034.466796875, 30.965980529785, 271.81823730469, 105.94110107422, 9.951904296875);
        CreateDynamicObject(18450, 3795.3010253906, -994.7861328125, 30.988925933838, 87.696228027344, 130.62664794922, 229.35363769531);
        CreateDynamicObject(18450, 3829.0361328125, -1033.736328125, 28.466419219971, 87.698364257813, 40.512084960938, 223.51135253906);
        CreateDynamicObject(5836, 3762.46875, -1060.9654541016, 33.749580383301, 0, 0, 0);
        CreateDynamicObject(3244, 3817.2033691406, -1006.7029418945, 23.351663589478, 0, 0, 0);
        CreateDynamicObject(11426, 3763.2980957031, -1048.7274169922, 22.138051986694, 0, 0, 0);
        CreateDynamicObject(11440, 3763.1037597656, -1040.1733398438, 22.192417144775, 0, 0, 0);
        CreateDynamicObject(11444, 3761.8654785156, -1023.9291381836, 23.29563331604, 0, 0, 87);
        CreateDynamicObject(11447, 3763.8076171875, -1014.5645751953, 23.725009918213, 0.25, 0, 83.5);
        CreateDynamicObject(11459, 3809.7502441406, -1006.7024536133, 22.369380950928, 0, 0, 0);
        CreateDynamicObject(11425, 3788.8916015625, -1063.1005859375, 23.222801208496, 0, 0, 0);
        CreateDynamicObject(2892, 3763.8696289063, -1039.8968505859, 25.301792144775, 0, 0, 0);
        CreateDynamicObject(3277, 3814.0671386719, -1065.7998046875, 20.544910430908, 0, 0, 0);
        CreateDynamicObject(3279, 3762.6506347656, -1003.1516723633, 24.117984771729, 0, 0, 0);
        CreateDynamicObject(16093, 3787.5080566406, -1004.9901733398, 24.341495513916, 0, 0, 0);
        CreateDynamicObject(3884, 3813.9548339844, -1065.9423828125, 20.519918441772, 0, 0, 0);

return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
        SetPlayerTeamFromClass(playerid);
        return 1;
}

SetPlayerTeamFromClass(playerid)
{
        gTeam[playerid] = TEAM_RED;
        gTeam[playerid] = TEAM_BLUE;
}

public OnPlayerConnect(playerid)
{
        SendClientMessage(playerid, COLOR_RED, "----------->This server use CS Minigame<----------");
        return 1;
}

public OnPlayerSpawn(playerid)
{
        SetPlayerTeam(playerid, 0);
          TogglePlayerControllable(playerid,1);
          SetPlayerArmour(playerid, 0);
          SetPlayerHealth(playerid, 100);
        return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
        new id;
        if (strcmp(cmdtext, "/Terrorist", true) == 0)
        {
                new name[MAX_PLAYER_NAME], string[44];
            GetPlayerName(playerid, name, sizeof(name));
            format(string, sizeof(string), "%s has joined the Terrorist.",name);
            SendClientMessageToAll(0xFFFF00AA, string);
                SetPlayerPos(playerid, 3811.0046,-1040.1082,22.4528);
                SendClientMessage(playerid, COLOR_RED, "Your team is Team Red or Terrorist");
                SetPlayerTeam(playerid, TEAM_RED);
                SetPlayerColor(playerid, COLOR_RED);
                SetPlayerHealth(playerid, 100);
                SetPlayerArmour(playerid, 100);
                SetPlayerSkin(playerid, 179);
                GivePlayerWeapon(playerid, 24, 10000);
                GivePlayerWeapon(playerid, 25, 10000);
                GivePlayerWeapon(playerid, 32, 10000);
                GivePlayerWeapon(playerid, 33, 10000);
                GivePlayerWeapon(playerid, 30, 10000);
                GivePlayerMoney(playerid, -100);
        return 1;
        }
        if (strcmp(cmdtext, "/CT", true) == 0)
        {
                new name[MAX_PLAYER_NAME], string[44];
            GetPlayerName(playerid, name, sizeof(name));
            format(string, sizeof(string), "%s has joined the Counter-Terrorist.",name);
            SendClientMessageToAll(0xFFFF00AA, string);
                SetPlayerPos(playerid, 3756.1958,-1022.8865,24.7479);
                SendClientMessage(playerid, COLOR_BLUE, "Your team is Team Blue or Counter-Terrorist");
                SetPlayerTeam(playerid, TEAM_BLUE);
                SetPlayerColor(playerid, COLOR_BLUE);
                SetPlayerHealth(playerid, 100);
                SetPlayerArmour(playerid, 100);
                SetPlayerSkin(playerid, 285);
                GivePlayerWeapon(playerid, 22, 10000);
                GivePlayerWeapon(playerid, 27, 10000);
                GivePlayerWeapon(playerid, 29, 10000);
                GivePlayerWeapon(playerid, 31, 10000);
                GivePlayerWeapon(playerid, 34, 10000);
                GivePlayerMoney(playerid, -100);
                return 1;
        }
        if (strcmp(cmdtext, "/plant", true) == 0)
        {
            if(IsPlanted[id] == 0)
            {
                    if(GetPlayerTeam(playerid) == TEAM_RED)
                    {
                                if(IsPlayerInRangeOfPoint(playerid, 7.0, 3787.4651,-1002.8569,25.4665))
                                {
                                        IsPlanted[id] = 1;
                                        BombTimer = SetTimer("Bomb",30000,false);
                                        SendClientMessageToAll(COLOR_BLUE, "The Bomb has been planted");
                                        BombC = CreateDynamicCP(3787.4651,-1002.8569,25.4665, 1.5, -1, -1, -1, 100.0);
                                        return 1;
                                }
                                else return SendClientMessage(playerid, COLOR_ERROR, "(ERROR) You must in CT Generator Room");
                        }
                        else return SendClientMessage(playerid, COLOR_ERROR, "(ERROR) Only Terrorist can use this command");
                }
                else return SendClientMessage(playerid, COLOR_ERROR, "(ERROR) Bomb has been planted");
        }

        return 0;
}

forward Bomb();
public Bomb()
{
        new playerid, id;
    CreateExplosion(3787.4651,-1002.8569,25.4665, 6, 150.0);
    CreateExplosion(3787.4651,-1002.8569,25.4665, 6, 150.0);
    CreateExplosion(3787.4651,-1002.8569,25.4665, 6, 150.0);
    CreateExplosion(3787.4651,-1002.8569,25.4665, 6, 150.0);
    CreateExplosion(3787.4651,-1002.8569,25.4665, 6, 150.0);
    CreateExplosion(3787.4651,-1002.8569,25.4665, 6, 150.0);
    CreateExplosion(3787.4651,-1002.8569,25.4665, 6, 150.0);
    CreateExplosion(3787.4651,-1002.8569,25.4665, 6, 150.0);
    CreateExplosion(3787.4651,-1002.8569,25.4665, 6, 150.0);
    CreateExplosion(3787.4651,-1002.8569,25.4665, 6, 150.0);
    CreateExplosion(3787.4651,-1002.8569,25.4665, 6, 150.0);
    CreateExplosion(3787.4651,-1002.8569,25.4665, 6, 150.0);
    CreateExplosion(3787.4651,-1002.8569,25.4665, 6, 150.0);
    CreateExplosion(3787.4651,-1002.8569,25.4665, 6, 150.0);
    CreateExplosion(3787.4651,-1002.8569,25.4665, 6, 150.0);
    CreateExplosion(3787.4651,-1002.8569,25.4665, 6, 150.0);
    CreateExplosion(3787.4651,-1002.8569,25.4665, 6, 150.0);
    IsPlanted[id] = 0;
    SendClientMessageToAll(COLOR_BOMB, "Bomb exploded. Terrorist win");
    GameTextForPlayer(playerid,"~r~Terrorist Win",3000,5);
    TogglePlayerControllable(playerid,0);
    KillTimer(DefuseTimer);
        SetTimer("Spawn",3000,false);
        if(GetPlayerTeam(playerid) == TEAM_RED)
        {
            GivePlayerMoney(playerid, 5000);
        }
        if(GetPlayerTeam(playerid) == TEAM_BLUE)
        {
            GivePlayerMoney(playerid, 2500);
        }
        DestroyDynamicCP(BombC);
}

forward Spawn();
public Spawn()
{
        new playerid;
        for(new i = 0; i < MAX_PLAYERS; i++) {
                if(GetPlayerTeam(playerid) == TEAM_RED)
            {
                SpawnPlayer(i);
                }
                if(GetPlayerTeam(playerid) == TEAM_BLUE)
                {
                    SpawnPlayer(i);
                }
        }
}

forward Defuse();
public Defuse()
{
        new playerid;
        new id;
        SendClientMessageToAll(COLOR_BOMB, "Bomb has been defuse");
        GameTextForPlayer(playerid,"~b~Counter-Terrorist Win",3000,5);
        TogglePlayerControllable(playerid,0);
        KillTimer(BombTimer);
        SetTimer("Spawn",3000,false);
        IsPlanted[id] = 0;
        if(GetPlayerTeam(playerid) == TEAM_RED)
        {
            GivePlayerMoney(playerid, 2500);
        }
        if(GetPlayerTeam(playerid) == TEAM_BLUE)
        {
            GivePlayerMoney(playerid, 5000);
        }
        DestroyDynamicCP(BombC);
}

public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == BombC)
    {
            if(GetPlayerTeam(playerid) == TEAM_BLUE)
            {
                if(IsPlayerInRangeOfPoint(playerid, 7.0, 3787.4651,-1002.8569,25.4665))
                {
                    if(IsPlanted[playerid] == 1)
                    {
                        SendClientMessage(playerid, COLOR_RED, "Bomb being defused");
                        DefuseTimer = SetTimer("Defuse",10000,false);
                        if(IsPlanted[playerid] == 0)
                        {
                            SendClientMessageToAll(COLOR_BOMB, "Defused failed");
                                        }
                                        return 1;
                                }
                                else return SendClientMessage(playerid, COLOR_ERROR, "(ERROR) Bomb has not been planted");
                        }
                        else return SendClientMessage(playerid, COLOR_ERROR, "(ERROR) You must in Generator");
                }
                else return SendClientMessage(playerid, COLOR_ERROR, "(ERROR) Only CT can defused the bomb");
    }
    return 1;
}

public OnPlayerLeaveDynamicCP(playerid, checkpointid)
{
    if(GetPlayerTeam(playerid) == TEAM_BLUE)
    {
                KillTimer(DefuseTimer);
                SendClientMessage(playerid, COLOR_ERROR, "(ERROR) Defuse failed, you must in checkpoint to defuse bomb");
        }
}

Not saving dini

Looking for support

$
0
0
Dear users;
I'm looking for some member who may join my discord and we'll talk there
about the server.
If anyone want to join my discord and/or being a staff member,
please contact me on discord: Louaie575:1382
Viewing all 18226 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>