Jump to content
  • 0

Porti Miscatoare


Guest Doctor_H3ll

Question

Guest Doctor_H3ll
Posted

Scz de topic ,iar daca e unul nasol stergeti-l.Vreau sa stiu cum pot face porti miscatoare prin o comanda /.....open si /.....close.

4 answers to this question

Recommended Posts

  • 0
  • Administrator
Posted

Pui asta la inceputul scriptului,dupa #include <a_samp>

new Gate;
Si asta mai jos de public OnFilterScriptInit()
public OnPlayerCommandText(playerid, cmdtext[])
{
//The Command you need to type to close te gate
if(strcmp(cmdtext, "/close", true) == 0)
{
    //It will move the object to this coordinates after the command.
MoveObject(Gate, coordonatele portii,inchisa); //Close
           return 1;
}
if(strcmp(cmdtext, "/open", true) == 0)
{
MoveObject(Gate, coordonatele portii,deschisa); //Open
                     return 1;
}
return 0;
}

Sper sa fie bine

logo.png

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

  • 0
Guest graffyk
Posted

Pui asta la inceputul scriptului,dupa #include <a_samp>

new Gate;
Si asta mai jos de public OnFilterScriptInit()
public OnPlayerCommandText(playerid, cmdtext[])
{
	//The Command you need to type to close te gate
	if(strcmp(cmdtext, "/close", true) == 0)
	{
	    //It will move the object to this coordinates after the command.
		MoveObject(Gate, coordonatele portii,inchisa); //Close
	           return 1;
	}

	if(strcmp(cmdtext, "/open", true) == 0)
	{
		MoveObject(Gate, coordonatele portii,deschisa); //Open
                     return 1;
	}
	return 0;
}
Sper sa fie bine
Mai trebuie ceva: Dupa ce ai pus obiectele
CreateObject(629, 1343.104492, -609.971436, 108.004822, 0.0000, 0.0000, 0.0000);//Exemplu
CreateObject(629, 1330.726196, -615.473145, 107.210403, 0.0000, 0.0000, 0.0000);//Exemplu
CreateObject(629, 1332.602173, -618.994019, 108.141785, 0.0000, 0.0000, 0.0000);//Exemplu
Mai trebuie sa pui dupa:
agate = CreateObject(987, 1276.191162, -617.870239, 101.660934, 0.0000, 0.0000, 25.2329);//Exemplu

  • 0
  • Administrator
Posted

Uite un tutorial bun aici

logo.png

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

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.