[POMOĆ] Kapija

Započeo ¤EG¤Ovca.ini, Januar 09, 2012, 13:35:54 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: Moj mod od 0
Detaljan opis problema: ovako ja idem napravit sebi kapiju za jedan parking, i sve radi samo kad idem /adminkucao onda se otvori kapija prema gore a istovremeno ostane zatvorena, i jos se rotira O_O, znaci stvori se jos jedna koja je gore i koja je dolje, evo kod, pa ako neko moze da fixa, hvala :D
Dio skripte:
adminskuca = CreateObject(980,3056.80004883,-70.19999695,22.79999924,0.00000000,0.00000000,270.00000000);

CMD:adminkucao(playerid, params[])
{
MoveObject(adminskuca, 980, 3056.80004883, -70.19999695,15.0,0.0,0.0,0.0); //15 je brzina
return 1;
}
CMD:adminkucaz(playerid, params[])
{
MoveObject(adminskuca, 980, 3056.80004883, -70.19999695,15.0,0.0,0.0,0.0); //isto ko gore..
return 1;
}


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

Join us today! 176.57.128.4:7793

Moji radovi:
[MAP] Burg - http://balkan-samp.com/forum/index.php?topic=28297
[MAP] Salon Brodova i Dock: http://balkan-samp.com/forum/index.php?topic=28260.0

3056.80004883,-70.19999695,22.79999924 trebas tri x,y,z i posle brzinu i onda one tri nule ili kako vec samo u mta izmapaj otvorenu pa zatvorenu i onda znas dalje valjda :D

ma ne, sve radi ali mi ostane zatvorena i još ostane otvorena, nije do toga da se ne želi otvoriti...

Join us today! 176.57.128.4:7793

Moji radovi:
[MAP] Burg - http://balkan-samp.com/forum/index.php?topic=28297
[MAP] Salon Brodova i Dock: http://balkan-samp.com/forum/index.php?topic=28260.0

Evo samo si ubaci z kordinatu...
CMD:adminkucao(playerid, params[])
{
MoveObject(adminskuca,3056.80004883, -70.19999695,z kordinata,15.0,0.0,0.0,0.0); //15 je brzina
return 1;
}
CMD:adminkucaz(playerid, params[])
{
MoveObject(adminskuca,3056.80004883, -70.19999695,z kordinata,15.0,0.0,0.0,0.0); //isto ko gore..
return 1;
}

Do move objecta je  rotaciju ne stavljas tu stavljas
MoveObject(objectid,x,y,z,speed);
http://wiki.sa-mp.com/wiki/MoveObject
Rotaciju stavljas
SetObjectRot(objectid,x,y,z);
http://wiki.sa-mp.com/wiki/SetObjectRot