[POMOC] Dni

Započeo Danisha, Oktobar 10, 2012, 19:10:00 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Ravnes Preradjeni
Detaljan opis problema:E ovako radio sam jednu kapiju i kad dodjem do nje da je otvorim pise da je otvaram ali nista
Dio skripte:
new danikuca1;

new danikuca;

danikuca = 0;

danikuca1 = CreateObject(2909,619.90002441,-1978.50000000,2.59999990,0.00000000,0.00000000,270.00000000); //zatvorena1
danikuca1 = CreateObject(2909,611.50000000,-1978.50000000,2.59999990,0.00000000,0.00000000,270.00000000); //zatvorena2
ovo su kordinate zatvorene
//CreateObject(2909,607.00000000,-1982.69995117,2.59999990,0.00000000,0.00000000,179.99450684); //otvorena2
//CreateObject(2909,624.59997559,-1982.80004883,2.59999990,0.00000000,0.00000000,179.99450684); //otvorena1
ovo su otvorene kordinate
if(!strcmp(cmdtext, "/dani", true)) // By Danisha
	{
  		if(PlayerInfo[playerid][pAdmin] >= 1338)
	    {
	        if(IsPlayerInRangeOfPoint(playerid, 15,619.90002441,-1978.50000000,2.59999990))
			{
			    if(danikuca == 0)
			    {
		      		MoveDynamicObject(danikuca1, 607.00000000,-1982.69995117,2.59999990, 3.0000);
		      		MoveDynamicObject(danikuca1, 624.59997559,-1982.80004883,2.59999990, 3.0000);
		      		GetPlayerName(playerid, sendername, sizeof(sendername));
		      		format(string, sizeof(string), "* %s uzima svoj daljinski i otvara kapiju.", sendername);
		      		ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
		      		danikuca = 1;
				}
				else
				{
		      		MoveDynamicObject(danikuca1, 619.90002441,-1978.50000000,2.59999990, 3.0000);
		      		MoveDynamicObject(danikuca1, 611.50000000,-1978.50000000,2.59999990, 3.0000);
		      		GetPlayerName(playerid, sendername, sizeof(sendername));
		      		format(string, sizeof(string), "* %s uzima svoj daljinski i otvara kapiju.", sendername);
		      		ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
		      		danikuca = 0;
				}
			}
	    }
	    return 1;
	}

Neke slike/video za lakse dobivanje pomoci(neobavezno):////

Da nije zato sto imas 2 komada
danikuca1 = CreateObject(2909,619.90002441,-1978.50000000,2.59999990,0.00000000,0.00000000,270.00000000); //zatvorena1
danikuca1 = CreateObject(2909,611.50000000,-1978.50000000,2.59999990,0.00000000,0.00000000,270.00000000); //zatvorena2


Probaj prvo 1 a drugo neka bude 2 i dole isto zameni.
Menjam Steam 1800+ igrica za Molten WoW -Ragnaros accl! PM!!

Ajd mi sada prepravi to na mojoj komandi da vidim kako ide i kod kordinata