Jump to content

mihaibr

Membru
  • Posts

    268
  • Joined

  • Last visited

    Never

Posts posted by mihaibr

  1. if(!strcmp(cmdtext, "/adminarea", true))
       {
    if(GetPlayerLevel(playerid) > 1)
         {
           ShowPlayerDialog(playerid, 22, DIALOG_STYLE_LIST, "Admin area by [ITS]StatickShock commands:", "Teleport to admin area\nOpen entrance\nClose entrance\nOpen garage\nClose garage\nElevator up\nElevator down\nOpen airport gate\nClose airport gate\nCLOSE ALL GATES", "Execute", "Cancel");
    }       
    return 1;
       }
       return 0;
    }
    
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(response)
        {
        switch(dialogid)
            {
          case 22:
               {
                  switch(listitem)
               {
                   case 0:
                   {
                  
                   SetPlayerPos(playerid, -3371.0908,1222.2296,6.9189);
                   SendClientMessage(playerid, Yellow, "You have been teleported to the admin area");
                   SetPlayerVirtualWorld(playerid, 0);
                   }
                   case 1:
                   {
                       
                   MoveObject(ea, -3355.6848144531,1243.4134521484,8.6985263824463, 5.0);
                   SendClientMessage(playerid, RED, "entrnce opened!");
                   }
                   case 2:
                   {
                  
                   MoveObject(ea, -3354.75122070,1232.32897949,8.69852638, 5.0);
                   SendClientMessage(playerid, RED, "entrnce closed!");
                   }
                   case 3:
                   {
                 
                   MoveObject(ga, -3425.98046875,1296.77734375,14.36235714, 5.0);
                   SendClientMessage(playerid, RED, "garage opened!");
                   }
                   case 4:
                   {
                    
                   MoveObject(ga, -3426.04956055,1296.58166504,8.68735600, 5.0);
                   SendClientMessage(playerid, RED, "garage closed!");
                   }
                   case 5:
                   {
                   
                   MoveObject(els, -3560.98681641,963.13415527,44.49432373, 3.5);
                   SendClientMessage(playerid, RED, "Elevator up!");
                   }
                   case 6:
                   {
                   
                   MoveObject(els, -3561.09082031,963.08203125,5.09434509, 3.0);
                   SendClientMessage(playerid, RED, "Elevator down!");
                   }
                   case 7:
                   {
                      
                   MoveObject(pa, -3251.34692383,1376.25195312,63.37866211, 15.0);
                   MoveObject(pa2, -3251.34692383,1376.25195312,63.37866211, 15.0);
                   SendClientMessage(playerid, RED, "airport gate opened!");
                   }
                   case 8:
                   {
                   
                   MoveObject(pa, -3462.64453125,1374.72460938,63.37866211, 15.0);
                   MoveObject(pa2, -3462.64453125,1374.72460938,63.37866211, 15.0);
                   SendClientMessage(playerid, RED, "airport gate closed!");
                   }
                   case 9:
                   {
                   
                      MoveObject(ea, -3354.75122070,1232.32897949,8.69852638, 3.0);
                      MoveObject(ga, -3426.04956055,1296.58166504,8.68735600, 3.0);
                   MoveObject(pa, -3462.64453125,1374.72460938,63.37866211, 15.0);
                   MoveObject(pa2, -3462.64453125,1374.72460938,63.37866211, 15.0);
                   MoveObject(els, -3561.09082031,963.08203125,5.09434509, 3.0);
                   SendClientMessage(playerid, Yellow, "All gates of base are been closed!");
                   }
               }
               }
       }
        }
    return 1;
    }
    

    vezi daca merge

  2. Ma, de unde sti ca nu ii de mine, sti ce iti dau iti dau un *** aia iti dau ok? Nu ai GM si il vrei pe al meu ;)

    lolololol

    eu vroiam doar sa te ajut

    nu ai nevoie nu imi pasa atunci

    eu nu am nevoie de alt RSS edit,prefer sa scriu eu GM-ul chit ca imi ia luni si ca il sec pe stuntman da asa e mai bine :)

    sry for offtopic :undecided:

  3. adauga la sfarsitul gm-ului

    stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
    {
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -x);
    tempposy = (oldposy -y);
    tempposz = (oldposz -z);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
    return 1;
    }
    return 0;
    }

    sper sa mearga[am gasit asta pe .com]

    warning 217: loose indentation

    e doar o avetizare pe care poti sa o ignori

    inseamna ca ai pierdut "asezarea" scriptului

  4. Ruben" post="78521" timestamp="1308569556"]

    Pune si ala in script!

    ruben el a folosit DestroyPickup(pickup);

    dar el nu are in gm pickup = CreatePickup..... el are direct CreatePickup

    daca face cum ai zis tu nu se intampla nimic[depinde cum a pus el]

    pune codul aici[nu tot gm-ul]

    unde ai creat pickup-ul ai CreatePickup

    pui asa

    new pickup = CreatePickup(ce ai tu);

    daca nu te descurci pune aici codul

×
×
  • 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.