Vehicle and Gate problem
#1

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.
Reply
#2

You have to show your pwn code otherwise noone can help you!
Reply
#3

Which code?
The gate moving or what?
Reply
#4

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
Reply
#5

yes let me have a look into your code
Reply
#6

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.)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)