#1

Hi guys... I have a server (still in test version) which is about to open in a few days. And everythingwas going well I have done everything well. I run a test everything was working UNTILL I saw gates!!! So the thing is when I want to open a gate it doesnt opet corectly it rotate for 90 degree and closes just like that. Somethinmes it happens that it flips for 360 (it happens to gates that opens up). They flip to the air. I checket the script and map and everything seemed well but gates wont open. Please HELP i need to make this work......
Reply
#2

It happened to me and i stayed 1 month for one to help me ! anyways use the latest streamer plugin and include and re-compile IF THE GATES ARE INCLUDED IN THE SCRIPT
Reply
#3

Well I tried that but then server wont start
Reply
#4

Post your
Createobject
And
moveObject
Reply
#5

i have the same problem, here's my code (create and move object). how to fix this unwanted rotation?

Код:
shv = CreateObject(11102, -1546.1063232422, 548.17993164063, 8.3417224884033, 0, 0, 90);
^ create gates (from init file)

Код:
if(playerDB[playerid][byrka] || playerDB[playerid][specialybe] == 0 || playerDB[playerid][byrka])
	   	{
	   	if (!strcmp("/alinceg", cmdtext, true)) return MoveObject(shv, -1546.10546875, 548.1796875, 3.0917224884033, 3, 0, 0, 0);
//open ^
	   	if (!strcmp("/ulinceg", cmdtext, true)) return MoveObject(shv, -1546.1063232422, 548.17993164063, 8.3417224884033, 3, 0, 0 ,0);
//close^
        }
^ gate commands (from gamemode)
Reply
#6

new lspdg3;
lspdg3 = 0;


else if(IsPlayerInRangeOfPoint(playerid, 15,1643.3337402344, -1715.1926269531, 16.382766723633))
{
if(lspdg3 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Kapija je vec otvorena"); return 1; }
MoveDynamicObject(policijaftw,1643.3337402344, -1715.1926269531, 10.382766723633,3.0);
SetTimer("zatvori", 5000, 0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima svoj daljinski i otvara kapiju PD garaze br.2.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,CO LOR_CHAT5);
lspdg3 = 1;
}
}


public zatvori()
{
MoveDynamicObject(policijaftw, 1643.3337402344, -1715.1926269531, 16.382766723633, 3.0);
lspdg3 = 0;
return 1;
}

forward zatvori();

here could somebody try to fix it.... Laguage of the script is not english its bosnian but i think mistake should be on english. Please helppppp
Reply
#7

MoveDynamicObject(policijaftw,1643.3337402344, -1715.1926269531, 10.382766723633,3.0);

you have to write rotation coordinates

MoveDynamicObject(policijaftw,1643.3337402344, -1715.1926269531, 10.382766723633,3.0,float:rx,float:ry,float:rz);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)