Jump to content
  • 0

Problema


Shake

Question

Problema intalnita (descriere): Pai m-am gandit sa fac o comanda unde o poti folosti doar intr-o anumita arena . Am mers in jos am mers intr-un colt am dat /save apoi am mers in coltul apus am dat /save , apoi am pus coordonatele x,y si x,y in 

if(IsPlayerInArea(playerid, x,y,x,y)) dar nu merge cand scriu accea comanda nu imi arata mesajul cand sunt nici cand nu sunt in arena.

PS: Am incercat si cu Scripting Machine.
Ero(area / rile) / warning-(ul / urile): Nu sunt.
Liniile de cod / sursa / script-ul(obligatoriu):

CMD:arena(playerid,params[])
{
	if(IsPlayerInArea(playerid, x,y,x,y))
	{
		SCM(playerid,COLOR_WHITE,"Esti in arena");
		
	}
	else
	{
		SCM(playerid,COLOR_WHITE,"Nu esti in arena");
	}
	return 1;
}


Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Am incercat . Astept o rezolvare daca se poate. 

Multumesc!

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 1

nu imi apareacasuta de postare :|

if(IsPlayerInArea(playerid, -163.8351,-1301.3862, -574.6359,-1506.4525))

incearca asa ai pus pe dos coordonatele

 

if(IsPlayerInArea(playerid, -1301.3862,-163.8351, -1506.4525,-574.6359))

 

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0

Posteaza cele doua coordonate si public isplayerinarea

Pentru ca mai milt ca sogur ai pus gresit parametrii

Edited by Mister
NU POT POSTA NIMIC NICI LA EDIT, NU APARE CASUTA DE POSTARE

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0
AddPlayerClass(0,-163.8351,-1301.3862,3.6619,287.0028,0,0,0,0,0,0); // pos
AddPlayerClass(0,-574.6359,-1506.4525,9.6310,152.2448,0,0,0,0,0,0); // pos 2


// 
if(IsPlayerInArea(playerid, -163.8351,-1301.3862, -574.6359,-1506.4525))

 

Link to comment
Share on other sites

  • 0

stock IsPlayerInAZone(playerid, Float:minX, Float:minY, Float:maxX, Float:maxY)  {

     new Float: X, Float: Y, Float Z;

     GetPlayerPos(playerid, X, Y, Z);

      if (  (X >= minX && X <= maxX) && (Y >= minY && Y <= maxY)   )

           return 1;

      return 0;

}

 

private void Copiati_asta(Plagiatori p)
{
      if(p.name != "unknown")
      {
           Cursor.Hide();
           MessageBox.Show("Daca copiezi, esti considerat un zeu iar daca muncesti este consderat un nimic");
           MessageBox.Show("Cei ce muncesc sunt criticati mai aspru decat cei care copiaza, fiindca de la cei care muncesc se asteapta performante..");
           MessageBox.Show("Ofera acelei persoane care a muncit, macar un multumesc fiindca el e cel care-ti aduce tie laudele pe care el ar trebui sa le primeasca.");
           MessageBox.Show("Poti mintii o lume intreaga dar nu te poti minti pe tine.");
           MessageBox.Show("Sper ca acest mesaj sa-ti intre bine in cap, reputatie negativa imi va dovedi ca nu ai inteles nimic");
           MessageBox.Show("Multumesc....");
           Program.close();
      }
}
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.