Jump to content

Rio

Membru
  • Posts

    75
  • Joined

  • Last visited

Posts posted by Rio

  1. Nume: Rio

    Problemă întâlnită: Bun, deci eu vreau ca atunci cand dau startwar 1 sa clipeasca zona care o fac eu. Chiar nu am idee ce am gresit

    Ce am încercat până acum:

    [pawn]new gzwar1;

    gzwar1 = GangZoneCreate(-1748.499023, 1294.450561, -1580.499023, 1518.450561); - ongamemodeinit

    GangZoneFlashForAll(gzwar1,COLOR_RED);  -  asta e pusa la startwar 1[/pawn]

    Codul sursa/Log/Altele: am postat mai sus

    Am pus GangZoneFlashForAll la comanda /rac, si asa merge. Dar la startwar nici decum, habar nu am care ar fi problema..

  2. folosesti SetPlayerSkin(playerid, id skin);

        if(strcmp(cmdtext, "/aod", true) == 0)

        {

            SetPlayerSkin(playerid, 217);

            return 1;

        }

        return 0;

    }

    uite aici un model facut aiurea, in rest ti-l faci tu..

  3. Am o problema cu comanda /gps.

    [pawn] if(strcmp(cmd,"/gps",true)==0)

    {

        if(IsPlayerConnected(playerid))

        {

            GetPlayerName(playerid, sendername, sizeof(sendername));

        if(PlayerInfo[playerid][pGPS] > 0)

            {

                new stringgps[1000], stringg1[512], stringg2[512], stringg3[512], stringg4[512], stringg5[512];

                format(stringg1, sizeof(stringg1), "{00BC00}0. {F6F6F6}Primarie\n{00BC00}1. {F6F6F6}Banca LS\n{00BC00}2. {F6F6F6}Discheta LS\n{00BC00}3. {F6F6F6}Discheta SF\n{00BC00}4. {F6F6F6}Discheta LV\n{00BC00}5. {F6F6F6}24/7 Central\n{00BC00}6. {F6F6F6}LSPD");

                format(stringg2, sizeof(stringg2), "\n{00BC00}7. {F6F6F6}SFPD\n{00BC00}8. {F6F6F6}LVPD\n{00BC00}9. {F6F6F6}Aeroport LS\n{00BC00}10. {F6F6F6}Aeroport SF\n{00BC00}11. {F6F6F6}Aeroport LV\n{00BC00}12. {F6F6F6}Aeroport parasit\n{00BC00}13. {F6F6F6}Gun shop Los Santos\n{00BC00}14. {F6F6F6}Gun shop San Fierro");

    format(stringg3, sizeof(stringg3), "\n{00BC00}15. {F6F6F6}Binco LS - /clothes\n{00BC00}16. {F6F6F6}Materials shop\n{00BC00}17. {F6F6F6}Materials get\n{00BC00}18. {F6F6F6}Materials deliver\n{00BC00}19. {F6F6F6}Rent Car LS");

    format(stringg4, sizeof(stringg4), "\n{00BC00}20. {F6F6F6}Rent Car SF\n{00BC00}21. {F6F6F6}Job Trucker\n{00BC00}22. {F6F6F6}Job Farmer\n{00BC00}23. {F6F6F6}Job Garbage Collector\n{00BC00}24. {F6F6F6}Job Arms Dealer\n{00BC00}25. {F6F6F6}Job Drugs Dealer\n{00BC00}26. {F6F6F6}Job Car Dealer");

    format(stringg5, sizeof(stringg5), "\n{00BC00}27. {F6F6F6}Job Bus Driver\n{00BC00}28. {F6F6F6}Job Car Jacker\n{00BC00}29. {F6F6F6}Job Bodyguard\n{00BC00}30. {F6F6F6}Job Paperboy\n{00BC00}31. {F6F6F6}Job Mechanic\n{00BC00}32. {F6F6F6}Job Whore\n{00BC00}33. {F6F6F6}Job Boxer\n{00BC00}34. {F6F6F6}Job Lawyer");

    format(stringgps, sizeof(stringgps), "%s%s%s%s",stringg1,stringg2,stringg3,stringg4,stringg5);

                ShowPlayerDialog(playerid, 350, DIALOG_STYLE_LIST, "{DC0C0C}NEXTGAMES {F6F6F6}GPS", stringgps, "Alege", "Iesi");

    SendClientMessage(playerid, -1, " ");

    SendClientMessage(playerid, COLOR_WHITE, "{00BC00}GPS: {FFFFFF}Alege locatia...");

    }

        }

    }[/pawn]

    daca las ultimul rand cu locatiile stringg5 si dau gps pe server nu merge dar daca scot tot cu stringg5 merge. Se compileaza si nu da errori nici warninguri

  4. Nu inteleg de ce ai pus armele la civili. Este bug la tableta, cand dai /telefon si dupa tasta esc se inchide serverul. Cand dai /bere iti da drujba si multe alte buguri. Mai bine l-ai face majoritatea in engleza, asa e aiurea in romana. /dute /sarma /adaibani =))

  5. Data trecuta nu am testat comanda, uite acum am testat si merge , am mai adaugat ceva

    [pawn] if(strcmp(cmd, "/goto", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "{B580FE}Foloseste:{FFFFFF} /goto [playerid/PartOfName]");

    return 1;

    }

    new Float:plocx,Float:plocy,Float:plocz;

    new plo;

    plo = ReturnUser(tmp);

    new playa;

      playa = ReturnUser(tmp);

    if (IsPlayerConnected(plo))

    {

        if(plo != INVALID_PLAYER_ID)

        {

    if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)

    {

    if(Spectate[playerid] != 255)

    {

    Spectate[playerid] = 256;

    }

    GetPlayerPos(plo, plocx, plocy, plocz);

    if(PlayerInfo[plo][pInt] > 0)

    {

    SetPlayerInterior(playerid,PlayerInfo[plo][pInt]);

    PlayerInfo[playerid][pInt] = PlayerInfo[plo][pInt];

    PlayerInfo[playerid][pLocal] = PlayerInfo[plo][pLocal];

    }

    if(PlayerInfo[plo][pInt] == 10 && PlayerInfo[plo][pLocal] == 500)

                {

                              SendClientMessage(playerid, COLOR_GRAD2, "You can`t go to this player");

              return 1;

                }

    if(PlayerInfo[playerid][pInt] == 0)

    {

    SetPlayerInterior(playerid,0);

    }

    if(plocz > 530.0 && PlayerInfo[plo][pInt] == 0) //the highest land point in sa = 526.8

    {

    SetPlayerInterior(playerid,1);

    PlayerInfo[playerid][pInt] = 1;

    }

    if (GetPlayerState(playerid) == 2)

    {

    new tmpcar = GetPlayerVehicleID(playerid);

    SetVehiclePos(tmpcar, plocx, plocy+4, plocz);

    TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;

    }

    else

    {

    SetPlayerPos(playerid,plocx,plocy+2, plocz);

    }

    GetPlayerName(playa, giveplayer, sizeof(giveplayer));

                            format(string, sizeof(string), " Ai fost teleportat la %s",giveplayer);

                            SendClientMessage(plo, COLOR_GREY, string);

    if (PlayerInfo[playerid][pAdmin] >= 1)

    {

    GetPlayerName(playa, giveplayer, sizeof(giveplayer));

                                GetPlayerName(playerid, sendername, sizeof(sendername));

        format(string, sizeof(string), " Admin {F81414}%s {AFAFAF}has teleported at you!",sendername);

                SendClientMessage(plo, COLOR_GREY, string);

    format(string,sizeof(string), "INFO: %s has teleported to %s",sendername, giveplayer);

    ABroadCast(COLOR_LIGHTRED,string, 5);

            }

            if (PlayerInfo[playerid][pHelper] >= 1)

    {

    GetPlayerName(playa, giveplayer, sizeof(giveplayer));

                                GetPlayerName(playerid, sendername, sizeof(sendername));

    format(string,sizeof(string), "INFO: %s has teleported to %s",sendername, giveplayer);

    ABroadCast(COLOR_LIGHTRED,string, 5);

        format(string, sizeof(string), " Helper {F81414}%s {AFAFAF}has teleported at you!",sendername);

                SendClientMessage(plo, COLOR_GREY, string);

            }

    SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(plo));

    HouseEntered[playerid] = HouseEntered[plo];

    }

    else

    {

    SendClientMessage(playerid, COLOR_GRAD1, "  Nu ai rangul administrativ necesar!");

    }

    }

    }

    else

    {

    format(string, sizeof(string), "  %d is not an active player.", plo);

    SendClientMessage(playerid, COLOR_GRAD1, string);

    }

    }

    return 1;

    }[/pawn]

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.