Jump to content
  • 0

Cerere Tutorial Comanda Vama/gate


Viorel

Question

Salut All

Sper sa ma puteti ajuta

Am cautat peste tot un tutorial in care sa explice bine cum sa pui o vama cu comanda pe un server sau un gate

Am incercat in toate felurile dar nu merge comanda sa se deschida

As dori putin ajutor PLZ ??? ??? ???

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

Mie imi trebue un tutorial cum sa fac  comenzi la gate sau vama am luat programu-l ala si am facut una dar nu stiu cum sa pun comenzi :D:P Si deaia spun ca imi trebue un tutorial sau sa ma ajute cineva sa pun comenzi la gate sau vama :( :(

Link to comment
Share on other sites

Guest mihai97

la inceput sub #iclude <a_samp> pui new gate;

la public OnGameModeInit/FilterScriptInit pui:

gate = CreateObject(Gateid, X, Y, Z, X_Rot, Y_Rot, Z_Rot);

La public OnPlayerCommandText pui:

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

{

  MoveObject(gate, new_X, new_Y, new_Z, Float:Speed);

  return 1;

}

if(strcmp(cmdtext, "close", true) ==0)

{

  MoveObject(gate X, Y, Z, Float:Speed);

  return 1;

}

Dictionar:

X, Y, Z sunt coordonatele unde se creaza obiectul;

X_Rot, Y_Rot, Z_Rot este rotatia obiectului cand e creat;

new_X, new_Y, new_Z este locul unde o sa ajunga poarta dupa deschidere;

Speed este viteza cu care se duce la noul loc;

la comanda close pui aceleasi coordonate ca la creerea obiectului

Sper ca ai inteles,Iar daca nu am sa incerc sa explic mai bine.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.