Jump to content
  • 0

Problema comanda


Eklips

Question

Nick: Eklips

Problema: cand dau /barrier nu merge cand dau orice alta comanda merge

Erori / warnings: nu

Lini/script:

Ai incercat sa rezolvi singur ?: da

[pawn]if(strcmp(cmdtext, "/barrier", true) == 0)

{

if(PlayerToPoint(3.0, playerid, 63.0148,-1524.9260,4.9184))

    {

  MoveObject(vama1,54.190098, -1529.675781, 5.085436, 2.5);

        MoveObject(vama2,52.703281, -1540.749634, 5.067452, 2.5);

        MoveObject(vama1,54.231167, -1529.687012, 9.320637, 3.5);

        SetTimer("GateClosse", 4000, 0);

        GivePlayerMoney(playerid, -500);

    SendClientMessage(playerid, COLOR_1GREEN, "Vama a fost deschisa si ai platit 500$.");

        return 1;

}

}

else if(PlayerToPoint(3.0, playerid, 43.9277,-1540.1890,5.2053))

{

  MoveObject(vama2,52.695782, -1540.765869, 9.255125, 3.5);

  SetTimer("GateClosse", 4000, 0);

  GivePlayerMoney(playerid, -500);

  SendClientMessage(playerid, COLOR_1GREEN, "Vama a fost deschisa si ai platit 500$.");

  return 1;

  }

else if(PlayerToPoint(5.0, playerid, 1734.4246,548.4321,26.5624))

{

MoveObject(vama3, 1735.363892, 541.511719, 23.052874, 3.5);

SetTimer("GateClossse", 4000, 0);

GivePlayerMoney(playerid, -500);

SendClientMessage(playerid, COLOR_1GREEN, "Vama a fost deschisa si ai platit 500$.");

return 1;

}

else if(PlayerToPoint(5.0, playerid, 1752.8773,524.2502,27.5999))

{

MoveObject(vama4, 1752.032959, 534.572021, 23.052874, 3.5);

SetTimer("GateClossse", 4000, 0);

GivePlayerMoney(playerid, -500);

SendClientMessage(playerid, COLOR_1GREEN, "Vama a fost deschisa si ai platit 500$.");

return 1;

}

    else

{

SendClientMessage(playerid, COLOR_GRAD1, "You are not at barrier");

}[/pawn]

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

OFF: Mai tin minte cum si eu eram tupeist si ce s-a ales de mine?:))Nimic,iti spun eu,lasa naibii tupeul ca cineva incearca sa te ajute nu ca repede sari ca nu stie si pentru posturi.

PS:Sincer,daca ti-e tie mai bine rog adminul daca vrea si el sa imi stearga posturile daca consideri tu ca postez numai pentru posturi,nu ca un om vrea sa te ajute cu problema ta.Asta e treaba ta ce gandesti tu,nimeni nu te poate schimba.

Asta e ultimul meu post pe cererea de ajutor a ta,nu vreau sa ne certam dupa sa ne huiduim sau altceva,daca reusesti bine daca nu nu,Salut.

ON:Ti-am spus sa cauti in tot modul faza cu move poate ai si in alta comanda daca nu ai puso tu unde nu trebuie de ce te bagi aiurea?

 

 

Link to comment
Share on other sites

OFF:Tu Adrian sa taci nu stii sa faci nimic, nici sa rezolvi o problema. Sigurul lucru care il faci pe acest forum este sa enervezi de membri. Daca erai asa de pricepu iti dadeai seama ce avea comanda. Si nu o sa iti sterg postul, o sa primesti un mute deoarece in toate posturile ai zis numai prostii care nu au ajutat pe nimeni.

ON: Deci fii atent la comanda ai doua paranteze

    return 1;
	}
	}
Una inchide functia PlayerToPoint iar cealalta comanda, dar in continuare exista si acele else. Deacuma cand faci o comanda sau o editezi incearca sa fii mai atent.
if(strcmp(cmdtext, "/barrier", true) == 0)
{
	if(PlayerToPoint(3.0, playerid, 63.0148,-1524.9260,4.9184))
    {
		MoveObject(vama1,54.190098, -1529.675781, 5.085436, 2.5);
		MoveObject(vama2,52.703281, -1540.749634, 5.067452, 2.5);
		MoveObject(vama1,54.231167, -1529.687012, 9.320637, 3.5);
		SetTimer("GateClosse", 4000, 0);
		GivePlayerMoney(playerid, -500);
		SendClientMessage(playerid, COLOR_1GREEN, "Vama a fost deschisa si ai platit 500$.");
		return 1;
	}
	else if(PlayerToPoint(3.0, playerid, 43.9277,-1540.1890,5.2053))
	{
		MoveObject(vama2,52.695782, -1540.765869, 9.255125, 3.5);
		SetTimer("GateClosse", 4000, 0);
		GivePlayerMoney(playerid, -500);
		SendClientMessage(playerid, COLOR_1GREEN, "Vama a fost deschisa si ai platit 500$.");
		return 1;
  	}
	else if(PlayerToPoint(5.0, playerid, 1734.4246,548.4321,26.5624))
	{
		MoveObject(vama3, 1735.363892, 541.511719, 23.052874, 3.5);
		SetTimer("GateClossse", 4000, 0);
		GivePlayerMoney(playerid, -500);
		SendClientMessage(playerid, COLOR_1GREEN, "Vama a fost deschisa si ai platit 500$.");
		return 1;
	}
	else if(PlayerToPoint(5.0, playerid, 1752.8773,524.2502,27.5999))
	{
		MoveObject(vama4, 1752.032959, 534.572021, 23.052874, 3.5);
		SetTimer("GateClossse", 4000, 0);
		GivePlayerMoney(playerid, -500);
		SendClientMessage(playerid, COLOR_1GREEN, "Vama a fost deschisa si ai platit 500$.");
		return 1;
	}
    else
	{
		SendClientMessage(playerid, COLOR_GRAD1, "You are not at barrier");
	}
	return 1;
}

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

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.