Jump to content

Fanta

Membru
  • Posts

    126
  • Joined

  • Last visited

Posts posted by Fanta

  1. Problema intalnita (descriere): Nu se opreste radio-ul cand ma dau jos din masina. Mai exact am pus comanda /radio sa mearga doar cand esti in vehicle, iar cand cobori sa se opreasca automat fara sa dai /radio si select stopradio. Merge comanda /radio foarte bine cand esti in masina dar cand ma dau jos nu se opreste automad, decat daca dau /radio si stopradio. Help please!
    Ero(area / rile) / warning-(ul / urile): -
    Liniile de cod / sursa / script-ul(obligatoriu):

    Pwn de la radio : http://pastebin.com/iKQT8may

    Poza de la stop radio: asddsadsadsadsadsadsad.png
    Ati incercat sa rezolvati singur?:da

  2. Problema intalnita (descriere): Cand pun ultima versiune de streamer v 2.7.5.2 imi da o erroare la compilarea gamemod-ului

    Ero(area / rile) / warning-(ul / urile):  

    pawnoincludestreamer.inc(173) : error 017: undefined symbol "OBJECT_MATERIAL_SIZE_256x128"

    Liniile de cod / sursa / script-ul(obligatoriu):-

    Imagini / Video (optional):-

    Ati incercat sa rezolvati singur?: Da am incercat sa iau alt streamer dar la fel se intampla

     

  3. Problema intalnita (descriere):Am pus radio-ul sa porneasca doar atunci cand intri in masina si sa se opreasca atunci cand iesi din veh. Totul bine si frumos am tastat /radio cand eram in masina am dat pe link, mergea radio-ul, dar cand ma dau jos din masina radio-ul ramane pornit pana dau comanda /stopradio si normal trebuie sa se opreasca atunci cand ma dau jos din masina. Help pls
    Ero(area / rile) / warning-(ul / urile): - 
    Liniile de cod / sursa / script-ul(obligatoriu): http://pastebin.com/W2PXsybN
    Imagini / Video (optional): - 
    Ati incercat sa rezolvati singur?:da

  4. Problema intalnita (descriere): Vreau sa scot masinile de la dealer, iar cand sterg masinile din cars,la celelalte masini dupa server(ex:masinile de la factiuni) trebuie sa le dau /v buy. 
    Ero(area / rile) / warning-(ul / urile): -
    Liniile de cod / sursa / script-ul(obligatoriu): 
    Imagini / Video (optional): - 
    Ati incercat sa rezolvati singur?: da! Am 4 .cfg cu masini la dealer si anume wopscars, moto, defaultcars si cars. Am incercat sa scot pe rand masinile de la fiecare cfg si degeaba...

  5. Problema intalnita (descriere): Nu imi mai apar obiectele adaugate.

    Ero(area / rile) / warning-(ul / urile): Nu am

    Liniile de cod / sursa / script-ul: 

     

    CreateDynamicObject(2942,1632.4400000,-2335.5900000,13.1000000,0.0000000,0.0000000,179.8200000); 

    CreateDynamicObject(1340,1803.5400000,-1863.6300000,13.6100000,0.0000000,0.0000000,90.9400000); 
    CreateDynamicObject(1340,1812.2900000,-1590.6700000,13.5100000,0.0000000,0.0000000,359.6800000); 
    CreateDynamicObject(1341,1812.1100000,-1586.2500000,13.4700000,0.0000000,0.0000000,1.1800000); 
    CreateDynamicObject(2942,1831.6800000,-1172.0500000,23.8000000,0.0000000,0.0000000,360.0000000); 
    CreateDynamicObject(1340,1839.2900000,-1172.2500000,23.7900000,0.0000000,0.0000000,268.9000000); 
    CreateDynamicObject(1340,1051.8600000,-945.4200000,42.9100000,0.0000000,0.0000000,279.1600000); 
    CreateDynamicObject(1341,1049.0900000,-945.7300000,42.7000000,0.0000000,0.0000000,280.6700000); 
    CreateDynamicObject(1340,758.8100000,-1041.1600000,23.8000000,0.0000000,0.0000000,286.4000000); 

    Imagini / Video (optional): 

    sa_mp_003.png

    Ati incercat sa rezolvati singur?: Da. Am inteles ca ar trebui upload la streamer.. Am facut si upload si degeaba!

  6. Problema intalnita : Cum pot scoate cashboxu ?
    Ero(area / rile) / warning-(ul / urile):

     

    Toate comenzile care contin cashbox.. :

    ====================================================================================================

    #define CashboxModel 1210   // Briefcase-model
    #define MinCashboxValue 500
    #define MaxCashboxValue 20000

     

    =====================================================================================================

    new CashboxPickup;
    new CashboxOwner = INVALID_PLAYER_ID;
    new CashboxValue;
    new Float:CashboxX;
    new Float:CashboxY;
    new Float:CashboxZ;
    new IsCashboxPickedUp;
     
    ====================================================================================================
    new Float:CashboxLocations[][3] =
    {
    {2227.74, 1516.43, 10.82},
    {-724.44, 1402.81, 13.07},
    {-1940.61, 1086.14, 53.09},.........
     
    =====================================================================================================
     
    {
    if(CashboxOwner == INVALID_PLAYER_ID)
    {
       if(mode == 1)
          {
           SetPlayerCheckpoint(playerid, CashboxX, CashboxY, CashboxZ, 1);
    }
    }
    }
     
     
     
    =====================================================================================================
     
     
     
    if(playerid == CashboxOwner)
    {
       new str[128], pName[MAX_PLAYER_NAME];
       GetPlayerPos(playerid, CashboxX, CashboxY, CashboxZ);
       GetPlayerName(playerid, pName, sizeof(pName));
       format(str, 128, "Cashbox-Owner %s (ID: %d) has left the server and droped the cashbox!", pName, playerid);
       SendClientMessageToAll(0xFFD700AA, str);
    CashboxPickup = CreatePickup(1210, 3, CashboxX, CashboxY, CashboxZ);
    CashboxOwner = INVALID_PLAYER_ID;
    if(mode == 1)
    {
           for(new i; i<MAX_PLAYERS; i++)
    {
       if(IsPlayerConnected(i))
       {
        SetPlayerCheckpoint(i, CashboxX, CashboxY, CashboxZ, 1);
    }
    }
    }
    }
     
    ================================================================================================
     
    if(playerid == CashboxOwner)
    {
       new str[128], pName[MAX_PLAYER_NAME];
       GetPlayerPos(playerid, CashboxX, CashboxY, CashboxZ);
       GetPlayerName(playerid, pName, sizeof(pName));
       format(str, 128, "Cashbox-Owner %s (ID: %d) has died and droped the cashbox!", pName, playerid);
       SendClientMessageToAll(0xFFD700AA, str);
    CashboxPickup = CreatePickup(1210, 3, CashboxX, CashboxY, CashboxZ);
     
    CashboxOwner = INVALID_PLAYER_ID;
    if(mode == 1)
    {
           for(new i; i<MAX_PLAYERS; i++)
    {
       if(IsPlayerConnected(i))
       {
        SetPlayerCheckpoint(i, CashboxX, CashboxY, CashboxZ, 1);
    }
    }
    }
    }
    =================================================================================================
     
    if(playerid == CashboxOwner)
    {
       PlayerPlaySound(playerid, 1054, 0, 0, 0);
       KillTimer(DropValueTimer);
       new str[128], pName[MAX_PLAYER_NAME];
    if(mode == 1)
    {
        DisablePlayerCheckpoint(playerid);
    }
       CashboxOwner = INVALID_PLAYER_ID;
    GetPlayerName(playerid, pName, sizeof(pName));
    format(str, 128, "%s (ID: %d) has delivered the cashbox and won $%d", pName, playerid, CashboxValue);
    SendClientMessageToAll(0xFFD700AA, str);
    GivePlayerCash(playerid, CashboxValue);
            format(str, 128, "~y~Congratulations! ~n~ You won ~n~~g~$%d", CashboxValue);
    GameTextForPlayer(playerid, str, 4000, 3);
    SendClientMessageToAll(0xFFD700AA, "A new game will start in 3 minutes!");
    SetTimer("StartNewCashboxGame", 180000, 0);
    IsGameStarted = 0;
    if(IsTextdrawCreated == 1)
    {
    TextDrawDestroy(ValueText);
    IsTextdrawCreated = 0;
    }
    }
     
    =======================================================================================================
    if(pickupid == CashboxPickup)
    {
       PlayerPlaySound(playerid, 1150, 0, 0, 0);
       new str[128], pName[MAX_PLAYER_NAME];
       DestroyPickup(CashboxPickup);
       IsCashboxPickedUp = 1;
    CashboxOwner = playerid;
    GetPlayerName(playerid, pName, sizeof(pName));
    format(str, 128, "%s (ID: %d) has picked up the cashbox! Kill him before he reaches the droplocation!", pName, playerid);
    SendClientMessageToAll(0xFFD700AA, str);
    if(mode == 1)
    {
       for(new i; i<MAX_PLAYERS; i++)
       {
           DisablePlayerCheckpoint(i);
    }
    }
    SetPlayerCheckpoint(playerid, DropLocation[0], DropLocation[1], DropLocation[2], 3);
    }
    return 1;
     
     
    ============================================================================================================
     
    forward StartNewCashboxGame();
    public StartNewCashboxGame()
    {
        IsGameStarted = 1;
    new str[128];
    new rand = random(sizeof(CashboxLocations));
    CashboxValue = MinCashboxValue+random(MaxCashboxValue-MinCashboxValue);
        CashboxPickup = CreatePickup(1210, 3, CashboxLocations[rand][0], CashboxLocations[rand][1], CashboxLocations[rand][2]);
        CashboxX = CashboxLocations[rand][0];
        CashboxY = CashboxLocations[rand][1];
        CashboxZ = CashboxLocations[rand][2];
        format(str, 128, "O noua valiza in valoare de: %d $ a fost aruncata din avion ! [/chint] ", CashboxValue);
        SendClientMessageToAll(0xFFD700AA, str);
        SendClientMessageToAll(0xFFD700AA, "Obiectivul tau este sa o gasesti si sa o zdrobesti ! !");
    for(new i; i<MAX_PLAYERS; i++)
    {
       if(IsPlayerConnected(i))
       {
           if(mode == 1)
    {
       SetPlayerCheckpoint(i, CashboxLocations[rand][0], CashboxLocations[rand][1], CashboxLocations[rand][2], 1);
    }
    else if(mode == 2)
    {
       SendClientMessage(i, 0x0E68CAA, "You can see this location again using /chint");
    }
    }
    }
    DropValueTimer = SetTimer("DropCashboxValue", 1000, 1);
    }
     
    forward DropCashboxValue();
    public DropCashboxValue()
    {
    if(IsTextdrawCreated == 1)
    {
    TextDrawDestroy(ValueText);
    IsTextdrawCreated = 0;
    }
    new TextString[40];
    if(CashboxValue > 0)
    {
       format(TextString, 40, "~y~CashBox: ~n~~y~$%d", CashboxValue);
    }
    if(CashboxValue <= 0)
    {
    CashboxValue = 0;
       SendClientMessageToAll(0xFFD700AA, "The cashbox has no value anymore!");
       format(TextString, 40, "~y~CashBox: ~n~~r~$%d", CashboxValue);
       KillTimer(DropValueTimer);
    }
    if(UseTextdraw == 1)
    {
    ValueText = TextDrawCreate(540, 410, TextString);
    IsTextdrawCreated = 1;
    TextDrawLetterSize(ValueText, 0.4, 1.2);
    TextDrawSetShadow(ValueText, 0);
    TextDrawUseBox(ValueText, 1);
    TextDrawBoxColor(ValueText, 0x000000AA);
    TextDrawShowForAll(ValueText);
    }
    }
     
    ==========================================================================================
     
     
     
     
     
     

    Liniile de cod / sursa / script-ul(obligatoriu):
    Imagini / Video (optional): sa_mp_001.png
    Ati incercat sa rezolvati singur?: Da am incercat sa scot pe rand fiecare script ce contine cashbox dar primesc errori

  7. Джо inteleg suficient si nu ii sar in cap nimanui, dar am postul activ de 2 zile si nimeni nu vine cu nicio rezolvare .... Pentru multi stiu ca e o banalitate ce am postat aici, dar macar pot avea bun simt si sa ma ajute.... Am pus link de pastebin sus. Este un filescript de sistem vip.
×
×
  • 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.