Vehicle and Gate problem -
The God - 25.02.2012
Hi!
I have a RP server. And there are 2 problems...i have no idea why or how to fix this.
1. When you exit a vehicle after several seconds it respawns to the place where you took it. -What's wrong? How to make it that it would it stay in the place where you left it until it is destroyed?
2. When i enter a gate command (example: /open) it moves (opens) but....how to say this.... look:
A closed gate | .
but then it opens it becomes like this \ . It moves sideways then it must move vertical/horizontal.
I've checked the coordinates of closed and opened position and everything is ok, but it still won't work as it has to. Only about 2-3 gates work as they must. -What's wrong here?
Please help me. I'll try to make a video to show the broken gates and cars that respawn for no reason.
AW: Vehicle and Gate problem -
dalkgamler - 25.02.2012
You have to show your pwn code otherwise noone can help you!
Re: Vehicle and Gate problem -
The God - 25.02.2012
Which code?
The gate moving or what?
Re: Vehicle and Gate problem -
niels44 - 25.02.2012
yeah and have you used the moveobject(objectid, float: x, float: y, float: z, float: speed, float: rx, float: ry, float: rz);
??
(rx = rotation x, ry = rotation y, rz = rotation z)
most ppl use only the first 5 but if you want to rotate it then you have to use the others too
AW: Vehicle and Gate problem -
dalkgamler - 25.02.2012
yes let me have a look into your code
Re: Vehicle and Gate problem -
The God - 25.02.2012
This is what i use
Код:
if(playerDB[playerid][admin] || playerDB[playerid][specialybe] == 17 || playerDB[playerid][byrka] )
{
if (!strcmp("/ugrove", cmdtext, true)) return MoveObject(ugrove, 2461.00000000,-1659.09997559,15.10000038, 3);
if (!strcmp("/agrove", cmdtext, true)) return MoveObject(ugrove, 2461.00000000,-1648.09997559,15.19999981, 3);
if (!strcmp("/ugrove2", cmdtext, true)) return MoveObject(ugrove2, 2480.89990234,-1721.00000000,15.30000019, 3);
if (!strcmp("/agrove2", cmdtext, true)) return MoveObject(ugrove2, 2490.60009766,-1720.69995117,15.30000019, 3);
}
But it rotates and dont want it to rotate.
(you may think that my system is weird or wrong, but its not an english server and...well other people like me do it this way too)
-------------------------------------------------------
And what about vehicles? I dont think that i have a code for them. (Only like Policeman can use only Police cars, Grove Street can use only Grove cars.)