Jump to content

Mr.LeX2011

Membru
  • Posts

    31
  • Joined

  • Last visited

    Never

Posts posted by Mr.LeX2011

  1. Sigur Ai COpiato De Pe Sv ProunionRPG Sau BlackPedia Pentru Ca Eu Pe Sv Meu Am Mapa Dar Este mult mai imbunatatita si este facuta de mn(Sv Meu BlackPedia)

    Oricum Bunicica 5/10

  2. Buna Ziua Am si eu o problema de cand am mutat sv pe 0.3d daca dau /v lock1 zice ca e masina inchuiata poti intra in ea daca e daschuiata la fel dai /v lock1 sa fie inchuiata respectiv lock2 si nu se inchuie de cand am mutat pe 0.3d din 0.3c a aparut problema uitati comanda..

    else if(strcmp(x_nr,"lock1",true) == 0)

    {

    new keycar = PlayerInfo[playerid][pPcarkey];

    if(keycar != 999)

    {

    new locked[256];

    locked = strtok(cmdtext, idx);

    new Float:X,Float:Y,Float:Z;

    GetVehiclePos(keycar,X,Y,Z);

    if(CarInfo[keycar][cLock] == 1)

    {

    format(string, sizeof(string), "~w~Masina ~g~Descuiata");

    GameTextForPlayer(playerid, string, 4000, 3);

    CarInfo[keycar][cLock] = 0;

    OnCarUpdate();

    return 1;

    }

    else if(CarInfo[keycar][cLock] == 0)

    {

    format(string, sizeof(string), "~w~Masina ~r~Incuiata");

    GameTextForPlayer(playerid, string, 4000, 3);

    CarInfo[keycar][cLock] = 1;

    OnCarUpdate();

    return 1;

    }

    }

    else

    {

    SCM(playerid, COLOR_2RED, "Nu ai o masina personala la Slot 1");

    return 1;

    }

    }

    else if(strcmp(x_nr,"lock2",true) == 0)

    {

    new keycar = PlayerInfo[playerid][pPcarkey2];

    if(keycar != 999)

    {

    new locked[256];

    locked = strtok(cmdtext, idx);

    new Float:X,Float:Y,Float:Z;

    GetVehiclePos(keycar,X,Y,Z);

    if(CarInfo[keycar][cLock] == 1)

    {

    format(string, sizeof(string), "~w~Masina ~g~Descuiata");

    GameTextForPlayer(playerid, string, 4000, 3);

    CarInfo[keycar][cLock] = 0;

    OnCarUpdate();

    return 1;

    }

    else if(CarInfo[keycar][cLock] == 0)

    {

    format(string, sizeof(string), "~w~Masina ~r~Incuiata");

    GameTextForPlayer(playerid, string, 4000, 3);

    CarInfo[keycar][cLock] = 1;

    OnCarUpdate();

    return 1;

    }

    }

    else

    {

    SCM(playerid, COLOR_2RED, "Nu ai o masina personala la Slot 2");

    return 1;

    }

    }

  3. Buna Ziua Am si eu o problema de cand am mutat sv pe 0.3d daca dau /v lock1 zice ca e masina inchuiata poti intra in ea daca e daschuiata la fel dai /v lock1 sa fie inchuiata respectiv lock2 si nu se inchuie de cand am mutat pe 0.3d din 0.3c a aparut problema uitati comanda..

    else if(strcmp(x_nr,"lock1",true) == 0)

    {

    new keycar = PlayerInfo[playerid][pPcarkey];

    if(keycar != 999)

    {

    new locked[256];

    locked = strtok(cmdtext, idx);

    new Float:X,Float:Y,Float:Z;

    GetVehiclePos(keycar,X,Y,Z);

    if(CarInfo[keycar][cLock] == 1)

    {

    format(string, sizeof(string), "~w~Masina ~g~Descuiata");

    GameTextForPlayer(playerid, string, 4000, 3);

    CarInfo[keycar][cLock] = 0;

    OnCarUpdate();

    return 1;

    }

    else if(CarInfo[keycar][cLock] == 0)

    {

    format(string, sizeof(string), "~w~Masina ~r~Incuiata");

    GameTextForPlayer(playerid, string, 4000, 3);

    CarInfo[keycar][cLock] = 1;

    OnCarUpdate();

    return 1;

    }

    }

    else

    {

    SCM(playerid, COLOR_2RED, "Nu ai o masina personala la Slot 1");

    return 1;

    }

    }

    else if(strcmp(x_nr,"lock2",true) == 0)

    {

    new keycar = PlayerInfo[playerid][pPcarkey2];

    if(keycar != 999)

    {

    new locked[256];

    locked = strtok(cmdtext, idx);

    new Float:X,Float:Y,Float:Z;

    GetVehiclePos(keycar,X,Y,Z);

    if(CarInfo[keycar][cLock] == 1)

    {

    format(string, sizeof(string), "~w~Masina ~g~Descuiata");

    GameTextForPlayer(playerid, string, 4000, 3);

    CarInfo[keycar][cLock] = 0;

    OnCarUpdate();

    return 1;

    }

    else if(CarInfo[keycar][cLock] == 0)

    {

    format(string, sizeof(string), "~w~Masina ~r~Incuiata");

    GameTextForPlayer(playerid, string, 4000, 3);

    CarInfo[keycar][cLock] = 1;

    OnCarUpdate();

    return 1;

    }

    }

    else

    {

    SCM(playerid, COLOR_2RED, "Nu ai o masina personala la Slot 2");

    return 1;

    }

    }

  4. if(strcmp(cmd, "/freeze", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /freeze [playerid/PartOfName]");

    return 1;

    }

    new playa;

    playa = ReturnUser(tmp);

    if(PlayerInfo[playa][pAdmin] > 0)

    {

    SendClientMessage(playerid, COLOR_GRAD2, "Admins can not be frozen");

    return 1;

    }

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

    {

        if(IsPlayerConnected(playa))

        {

            if(playa != INVALID_PLAYER_ID)

            {

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

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

    TogglePlayerControllable(playa, 0);

    format(string, sizeof(string), "%s Freezes %s",sendername,  giveplayer);

    printf("%s",string);

    format(string, sizeof(string), "%s was Frozen by %s",giveplayer ,sendername);

    ABroadCast(COLOR_LIGHTRED,string,1);

    }

    }

    }

    else

    {

    SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat sa folosesti aceasta comanda");

    }

    }

    return 1;

    }

  5. dai la AddStaticPickup si uitate cum este pickupu primele cifre trebuie sa fie de exemplu

    AddStaticPickup(1239, 23, 1737.05,-1862.71,13.58);

    si ai tu acolo AddstaticPickup (id pickup, 23, si coordonatele);

    si acolo la id pickup pui

    AddStaticPickup(1239, 23, si pui coordonatele);

  6. Salut,am si eu o problema deci am facut la casa sa apara:Owner: VoLuM3

    Rent: $5000

    Level: 10

    Scrie:/rentroom

    Ownerul aparea dar cum am pus rent,level,/rentroom apare doar Rent: $5000

    uitati aici

    if(HouseInfo[h][hOwned] == 1)

    {

    format(string, sizeof(string), "[OWNER]\n%s \nRent:%d \n Level:%d \n Scrie:/rentroom",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);

    Create3DTextLabel(string,0x006400FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15,0,1);

    AddStaticPickup(1239, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);

    //CreateMapIcon(32, 0, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);

    pickups++;

    }

    }

  7. am facut si eu comanda "/fine".Ea indeplineste functia de amendarea unui player care da un ad aiurea report aiurea

    adminu da "/fine" si ii da amenda uite aici comanda

    DAr apare doar.f

    ""format(string, 256, "~|{FF0000}AdmCmD: {FF0066}%s A Fost Amendat Suma De {CC00FF}%d De Un {00FFCC}Admin|~", giveplayer,money);""

    si eu vreau sa apara Si motiv uitati mai jos comanda

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

    {

    if(IsPlayerConnected(playerid))

    {

    tmp = strtok(cmdtext, idx);

    new playa;

    new result;

    new money;

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_ORANGE, "~|/fine [iD/NuME]/[suma]|~");

    return 1;

    }

    playa = ReturnUser(tmp);

    tmp = strtok(cmdtext, idx);

    money = strval(tmp);

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

    {

    if(IsPlayerConnected(playa))

    {

    if(playa != INVALID_PLAYER_ID)

    {

    //ConsumingMoney[playa] = 1;

    GivePlayerMoneyEx(playa, -money);

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

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

    format(string, 256, "~|{FF0000}AdmCmD: {FF0066}%s A Fost Amendat Suma De {CC00FF}%d De Un {00FFCC}Admin|~", giveplayer,money);

    ABroadCast( 0x05FAF3FF,string,1);

    }

    }

    }

    else

    {

    SendClientMessage(playerid, COLOR_2RED, "Nu esti autorizat sa folosesti aceasta comanda");

    }

    }

    return 1;

    }[/pawn]

  8. da dar acolo eu aveam alte save uitele:

    [pawn]if(PlayerToPoint(5.0,playerid,1529.6000,-1691.2000,13.3828) || PlayerToPoint(5.0,playerid,-2310.6301,-1638.3312,483.7031) || PlayerToPoint(5.0,playerid,-1416.9376,-296.1671,14.1484 || PlayerToPoint(5.0,playerid,-1973.0111,137.3701,27.6875 || PlayerToPoint(5.0,playerid,337.0858,-1781.2639,5.0973 || PlayerToPoint(5.0,playerid,89.3198,-1568.9939,8.6498 || PlayerToPoint(5.0,playerid,1548.3535,1521.2260,10.8469 || PlayerToPoint(5.0,playerid,1705.9506,1451.1368,10.8174))[/pawn]

    linia e ata dar cand rez erorile o inlocuiesc cu cea de mai sus

  9. C:\Users\Administrator\Desktop\blackpedia.pwn(36469) : error 001: expected token: ",", but found "-integer value-"

    C:\Users\Administrator\Desktop\blackpedia.pwn(36469) : warning 215: expression has no effect

    C:\Users\Administrator\Desktop\blackpedia.pwn(36469) : error 001: expected token: ";", but found ")"

    C:\Users\Administrator\Desktop\blackpedia.pwn(36469) : error 029: invalid expression, assumed zero

    C:\Users\Administrator\Desktop\blackpedia.pwn(36469) : fatal error 107: too many error messages on one line

  10. am facut si eu o comanda pentru admin mai exact pentru teleporturi,comanda este /agoto este un dialog in care admini dau dublu click pe locatia dorita si am facut comanda si nu mai stiu cum sa fac daca nu esti admin sati zica "Nu Ai Voie SA Folosesti aceasta comanda"

    uitati comanda:

    [pawn]

    if (strcmp(cmd, "/agoto", true) == 0)

    {

    if(PlayerToPoint(5.0,playerid,1582.5625,-1686.9138,6.218 || PlayerToPoint(5.0,playerid,242.6930,66.4504,1003.6 406) || PlayerToPoint(5.0,playerid,1565.1204,-1666.1179,28.3956))

    {

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

    {

    ShowPlayerDialog(playerid, agoto, DIALOG_STYLE_LIST, "..::: Goto BlackPedia :::..", "{FF1400}LoS Santos\n{FFB400}Mountain Chiliad\n{DCDCDC}Aeroport San Fierro\n{DCDCDC}Gara San Fierro\n{DCDCDC}Plaja Los Santos\n{DCDCDC}VAMA=LS-SF-LV\n{DCDCDC}Aeroport LaS VenTuRaS\n{DCDCDC}LaS VenTuRaS", "Apasa", "Iesi");

    return SendClientMessage(playerid,COLOR_GREEN,"Apasa pe locatia unde vrei sa te duci!");

    }

    }

    }[/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.