Jump to content
  • 0

Va rog sa imi ziceti si mie cum sa pun vami in sa-mp


Guest rat

Question

Am gasit niste explicatii pe acest forum in legatura cu vamile dar am incercat si nu a au mers toate m-ar interesa vamile care sunt puse direct in GM nu in FS ca alea in fs dau warning....... >:(

Link to comment
Share on other sites

20 answers to this question

Recommended Posts

as vrea un exemplu cum sa creezi o vama adik chestiile alea cu,comenzi la porti sau bariere sa plateasca omul ca sa treaca si codul necesar sa pui obiectele de coordonate nu imi fac griji ca alea le aflu am mai facut o vama eu si daca o puneam pe aia imi disparea alta vama nush dc ???....intelegi ce vreau sa zik ;)

Link to comment
Share on other sites

Foloseste un streamer de obiecte. Poti adauga un numar maxim de obiecte intr-un server. Cu streamerul poti adauga mai multe obiecte. Uite o lista aici de streamere. Iar pentru mutarea obiectelor, vezi tutorialul asta.

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

"VYOREL" te rog zimi si mie un cod de script ceva sau program nush......cu,care sa pui bizzuri si case si inca ceva sa pui iconite pe server cum se face...si id de la iconite care este ....mss mult daca ma poti ajuta cu ce am cerut ;)

Link to comment
Share on other sites

"VYOREL" te rog zimi si mie un cod de script ceva sau program nush......cu,care sa pui bizzuri si case si inca ceva sa pui iconite pe server cum se face...si id de la iconite care este ....mss mult daca ma poti ajuta cu ce am cerut ;)

Nu devia de la subiect (nu face Off Topic). Pentru chestia asta, cauta si daca nu gasesti posteaza in Probleme Godfather.

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

Pff an incercat sa fac dupa tutorialul tau chestia aia cu vama cu porti care se misca si nu a mers nush ce naiba are,te rog nu ai un filescript cu asha ceva sa mil dai ca model..... :'( :'( :'(

Link to comment
Share on other sites

care ma ajutati la un filescript plss

am facut o vama si imi da 6 warnings stiu cam pe unde am gresit da nu stiu ce sa ii fac

numa da ca ma contactati pe mes sa va arat ce vreau sa zik

adresa mea e scorpionul_negru78 sau cu teamwiever sa va zic ce vreau sa fac si voi sa incercati sa imi aratati dc imi arata warnings...pls

Link to comment
Share on other sites

eroarea mi-o da aici  MoveObject(vamatr, -86.682,-909.653,17.673,0.0,0.0,-21.486, 2); // bariera sus    si aici  MoveObject(vamatr, -86.682,-909.653,17.673,0.0,0.0,-21.486, 2); //bariera sus  ma gandesc ca nu am bagat bine coordonatele cand e ridicata da le-a mbagat sau nu trebe toate cordonatele bagate nush va rog sa imi ziceti restul e bun tot

Link to comment
Share on other sites

asta imi este codul pawn de la vama va rog sa imi ziceti dc nu mi se ridica bariera cand scriu comanda greseala imi zice ca e la liniile

21 si 45 da nush ce sa ii fac

21=> MoveObject(vamatr,-86.682,-909.653,17.673,0.0,0.0,-21.486);

45=> MoveObject(vamatr,-86.682,-909.653,17.673,0.0,0.0,-21.486);

si coordonatele la bariera sunt

bariera ridicata=> -86.682,-909.653,17.673,0.0,0.0,-21.486

bariera coborata=> -86.682,-909.577,17.648,-0.859,91.960,-25.783

care este greseala?

Link to comment
Share on other sites

NiKoR17" post="19296" timestamp="1253568860"]

Ce Warnings Iti Da?

Fi Mai Explicit:|

21=> MoveObject(vamatr,-86.682,-909.653,17.673,0.0,0.0,-21.486);

45=> MoveObject(vamatr,-86.682,-909.653,17.673,0.0,0.0,-21.486);

Mda NiKoR daca aveai putin habar pawno stiai ca alea sunt gresite.

Incearca asta rat sau cum te-o chema:

21=> MoveObject(vamatr,-86.682,-909.653,17.673, 3);

45=> MoveObject(vamatr,-86.682,-909.653,17.673, 3);

Data viitoare tine minte: MoveObject(obiect, x, y, z, viteza);

Si apropo rat, ce esti asa disperat de faci triple post? da in puii mei edit.

ir2tc1.png [url=http://forum.sa-mp.ro/filter-scripts-and-gamemode
Link to comment
Share on other sites

uite codul pawn de la vama,acuma nu mi se deschid barierele va rog sa imi ziceti unde am gresit

aici sunt coordonatele de la bariera

bariera jos=> CreateObject(968,-86.682,-909.577,17.648,-0.859,91.960,-25.783);

bariera sus=> CreateObject(968,-86.682,-909.653,17.673,0.0,0.0,-21.486);

si aici codul pawn

/*

vamatr-----------by BuBu_ro

*/

#include <a_samp>

#define COLOR_LIGHTRED 0xFF6347AA

#define FILTERSCRIPT

forward GateClose();

new vama2;

public OnFilterScriptInit()

{

    CreateObject(3881,-88.308,-907.237,17.983,0.0,0.0,154.062);

CreateObject(966,-86.716,-909.642,16.614,0.0,0.0,154.844);

CreateObject(968,-86.682,-909.577,17.648,-0.859,91.960,-25.783);

CreateObject(1237,-78.796,-912.982,16.658,0.0,0.0,0.0);

CreateObject(1237,-79.876,-912.674,16.676,0.0,0.0,0.0);

CreateObject(3666,-78.794,-912.987,18.436,0.0,0.0,0.0);

CreateObject(3666,-79.896,-912.708,18.451,0.0,0.0,0.0);

CreateObject(3666,-87.873,-911.860,17.353,0.0,0.0,0.0);

CreateObject(3666,-84.775,-905.373,16.729,0.0,0.0,0.0);

print("\n--------------------------------------");

print(" Vamatr--------by BuBu_ro ");

print("--------------------------------------\n");

return 1;

}

public OnFilterScriptExit()

{

print("\n--------------------------------------");

print("Vamatr--------by BuBu_ro");

print("--------------------------------------\n");

return 1;

}

public OnPlayerCommandText(playerid, cmdtext[])

{

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

    {

    SetObjectRot(vama2,-86.682,-909.653,17.673, 3);

        SetTimer("GateClose", 5000, 0);

    SendClientMessage(playerid, COLOR_LIGHTRED, "Orasul San Fierro iti doreste o zi buna");

        return 1;

    }

return 0;

}

public GateClose()

{

   

    SetObjectRot(vama2, -86.682,-909.577,17.648);

    return 1;

}

Link to comment
Share on other sites

#include <a_samp>

#define COLOR_LIGHTRED 0xFF6347AA
#define FILTERSCRIPT
forward GateClose();


new vama2;
public OnFilterScriptInit()
{
    CreateObject(3881,-88.308,-907.237,17.983,0.0,0.0,154.062);
    CreateObject(966,-86.716,-909.642,16.614,0.0,0.0,154.844);
    vama2 = CreateObject(968,-86.682,-909.577,17.648,-0.859,91.960,-25.783);
    CreateObject(1237,-78.796,-912.982,16.658,0.0,0.0,0.0);
    CreateObject(1237,-79.876,-912.674,16.676,0.0,0.0,0.0);
    CreateObject(3666,-78.794,-912.987,18.436,0.0,0.0,0.0);
    CreateObject(3666,-79.896,-912.708,18.451,0.0,0.0,0.0);
    CreateObject(3666,-87.873,-911.860,17.353,0.0,0.0,0.0);
    CreateObject(3666,-84.775,-905.373,16.729,0.0,0.0,0.0);

    print("\n--------------------------------------");
    print(" Vamatr--------by BuBu_ro ");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    print("\n--------------------------------------");
    print("Vamatr--------by BuBu_ro");
    print("--------------------------------------\n");
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/vamatr", true)==0)
    {
        SetObjectRot(vama2,-86.682,-909.653,17.673, 5);
        SetTimer("GateClose", 5000, 0);
        SendClientMessage(playerid, COLOR_LIGHTRED, "Orasul San Fierro iti doreste o zi buna");
        return 1;
    }
    return 0;
}

public GateClose()
{
    SetObjectRot(vama2, -86.682,-909.577,17.648, 5);
    return 1;
}

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

ms de ajutor da tot nu merge bariera la ce ai modificat tu nu se deschide pff ce mama masii sa ii fac??

#include <a_samp>

#define COLOR_LIGHTRED 0xFF6347AA
#define FILTERSCRIPT
forward GateClose();


new vama2;
public OnFilterScriptInit()
{
    CreateObject(3881,-88.308,-907.237,17.983,0.0,0.0,154.062);
    CreateObject(966,-86.716,-909.642,16.614,0.0,0.0,154.844);
    vama2 = CreateObject(968,-86.682,-909.577,17.648,-0.859,91.960,-25.783);
    CreateObject(1237,-78.796,-912.982,16.658,0.0,0.0,0.0);
    CreateObject(1237,-79.876,-912.674,16.676,0.0,0.0,0.0);
    CreateObject(3666,-78.794,-912.987,18.436,0.0,0.0,0.0);
    CreateObject(3666,-79.896,-912.708,18.451,0.0,0.0,0.0);
    CreateObject(3666,-87.873,-911.860,17.353,0.0,0.0,0.0);
    CreateObject(3666,-84.775,-905.373,16.729,0.0,0.0,0.0);

    print("\n--------------------------------------");
    print(" Vamatr--------by BuBu_ro ");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    print("\n--------------------------------------");
    print("Vamatr--------by BuBu_ro");
    print("--------------------------------------\n");
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/vamatr", true)==0)
    {
        SetObjectRot(vama2,-86.682,-909.653,17.673, 5);
        SetTimer("GateClose", 5000, 0);
        SendClientMessage(playerid, COLOR_LIGHTRED, "Orasul San Fierro iti doreste o zi buna");
        return 1;
    }
    return 0;
}

public GateClose()
{
    SetObjectRot(vama2, -86.682,-909.577,17.648, 5);
    return 1;
}

Link to comment
Share on other sites

Inseamna ca sunt incurcate coordonatele, adica puse invers. Incearca asa:

#include <a_samp>

#define COLOR_LIGHTRED 0xFF6347AA
#define FILTERSCRIPT
forward GateClose();


new vama2;
public OnFilterScriptInit()
{
    CreateObject(3881,-88.308,-907.237,17.983,0.0,0.0,154.062);
    vama2 = CreateObject(966,-86.716,-909.642,16.614,0.0,0.0,154.844);
    CreateObject(968,-86.682,-909.577,17.648,-0.859,91.960,-25.783);
    CreateObject(1237,-78.796,-912.982,16.658,0.0,0.0,0.0);
    CreateObject(1237,-79.876,-912.674,16.676,0.0,0.0,0.0);
    CreateObject(3666,-78.794,-912.987,18.436,0.0,0.0,0.0);
    CreateObject(3666,-79.896,-912.708,18.451,0.0,0.0,0.0);
    CreateObject(3666,-87.873,-911.860,17.353,0.0,0.0,0.0);
    CreateObject(3666,-84.775,-905.373,16.729,0.0,0.0,0.0);

    print("\n--------------------------------------");
    print(" Vamatr--------by BuBu_ro ");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    print("\n--------------------------------------");
    print("Vamatr--------by BuBu_ro");
    print("--------------------------------------\n");
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/vamatr", true)==0)
    {
        SetObjectRot(vama2,-86.682,-909.653,17.673, 5);
        SetTimer("GateClose", 5000, 0);
        SendClientMessage(playerid, COLOR_LIGHTRED, "Orasul San Fierro iti doreste o zi buna");
        return 1;
    }
    return 0;
}

public GateClose()
{
    SetObjectRot(vama2, -86.682,-909.653,17.673, 5);
    return 1;
}

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

ms de ajutor...da nu merge nici asha pfff nush ce sa ii fac o las drk de treaba da e pacat ca e faina vama deci nush ce sa ii mai fac am incercat toate solutiile pe care le stiu eu ..... poate stie un scripter avansat.......va rog care stiti sa imi ziceti ce naiba are de nu se deschide bariera ;)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Similar Content

    • By Pinky-Samp
      [move]VAMA ![/move]
      Buna ziua eu sunt Pinky iara ! si mia venit o idee ! hai sa fac o vama in romana !
      INCEPEM... 
      E o vama simpla nu e facuta de mine! e doar tradusa Sper sa va placa

      Download >>http://www.2shared.com/file/wbyZEZB3/vama.html >> AMX
      Download >>http://www.2shared.com/file/5ljzWp17/vama.html >> PWN
    • By AlexCelTare
      stie cineva vreun fs sau cum sa fac sa nu se mai reseteze banii la playeri cand dau relog? va rog
    • By Cosminus
      https://imgur.com/a/kD89e3e 
      Cum pot face si eu asa cum e in poza? Gen 'Manager' 'Scripter', tutorial explicat daca se poate, multumesc.
    • By Liviu Adrian
      Salut, am facut ca in tutorial lui 
       nu am avut nicio eroare, am rezolvat erorile sau warning-urile care erau legat ca uitasem ; sa dau o acolada sau etc. Cand intru pe server din localhost, nu apare nimic, doar sa dau spawn. Mai ziceau unii sa fac update la include, dar nu inteleg ce si cum. Daca ma puteti ajuta pls.
      EDIT: Dupaia cand las sscanf2 in gamemode si la plugins in server.cfg apare asta pe samp-server    
         Error: Function not registered: 'SSCANF_Init'
         Error: Function not registered: 'SSCANF_IsConnected'
         Error: Function not registered: 'SSCANF_Join'
         Error: Function not registered: 'SSCANF_Leave'
      Conexiunea la baza de date gamemode a esuat ---> Server Inchis ~~~
    • By Rby Robert
      Am un gamemode de la un prieten la care a lucrat el acum mi la dat mie sa lucrez eu pe el am facut ceea ce am stiu am dar ma bate ceva cand dau in /v nu imi apare despawn car ma poate ajuta cineva aici aveti comanda 
      CMD:v(playerid, params[])
      {
          if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi prima data.");
          if(VehiclesCount(playerid) == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu ai vehicule personale.");
          new str2[1500],str[200],id[50],vip[30],title[35],rainbow[30],premium[30], stage[30];
          strcat(str2, "Model\tStatus\tUpgrades\tID\n");
          for(new x = 0; x < PlayerInfo[playerid][pSlots]; x++) {
              if(PlayerInfo[playerid][pCarKey][x] != 0) {
                  new ide = veh_ArrayID(PlayerInfo[playerid][pCarKey][x]);
                  if((playerCarsSpawned[playerid][x]) == true ) format(id,50,"%d",CarInfo[ide][cInGameID]); else format(id,50,"{ffffff}not spawned");
                  if(CarInfo[ide][cVip] == true) format(vip, 30, "{FFE802}[VIP] "); else format(vip,3,"");
                  if(CarInfo[ide][cHaveRainBow] == true) format(rainbow, 30, "{791DD5}[R] "); else format(rainbow,3,"");
                  if(CarInfo[ide][cPremium] == 1) format(premium, 30, "{F28644}[P] "); else format(premium,3,"");
                  if(CarInfo[ide][cStage] > 0) format(stage, sizeof(stage), "{509AE4}[S: %d/3]", CarInfo[ide][cStage]); else format(stage,3,"");
                  format(str, 200, "%s\t%s\t%s%s%s%s \t%s\n",aVehicleNames[playerCarsModel[playerid][x] - 400],(playerCarsSpawned[playerid][x]) ? ("{33AA33}[spawned]") : ("{9D0000}[despawned]"),vip,rainbow,premium,stage,id);
                  strcat(str2,str);
              }
              else strcat(str2,"\n[ empty ]\n");
          }
          format(title,sizeof title,"Your vehicles [%d/%d]",VehiclesCount(playerid),PlayerInfo[playerid][pSlots]);
          ShowPlayerDialog(playerid,DIALOG_VEHSPAWN,DIALOG_STYLE_TABLIST_HEADERS, title, str2, "Select","Exit");
          return 1;
      }
  • Recently Browsing   0 members

    No registered users viewing this page.

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