• Welcome to Vice City Multiplayer.
 

SetVehiclePos?!?!

Started by Robd, January 27, 2011, 10:43:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Robd

This function doesnt seem to be working in any of my scripts  :S
Can someone help me?
Hello, this is Robd from the past.
If you are seeing this I have either posted something stupid, forgotten something, started a stupid topic, or a combination of the three.

Please forgive us for this mistake.

Regards, management

aXXo

It is a lil bit bugged.
It only works if you didnt enter a car.

If you enter a car once, SetVehiclePos wont work for that car....until you restart the server.

Also GetVehiclePos coordinates are desynced. It doesnt update the Vehicle coordinates when someone drives it.
Example: If you drove a car from its spawnloc to some other place...the GetVehiclePos still displays its spawn loc.

Though, the vehicle coordinates can be manually synced using a timer, or from OnPlayerEnter/ExitVehicle() functions.

Robd

hmm, is there anyway around this?
something like maybe deleting the car and making an identical one

I've tried doing something like that but almost all car create functions appear to be bugged, any help appreciated, ty
Hello, this is Robd from the past.
If you are seeing this I have either posted something stupid, forgotten something, started a stupid topic, or a combination of the three.

Please forgive us for this mistake.

Regards, management

[GCK]KoFFe

its works when some one drives your car if you are owner you type !getcar bla bla id the server take u that car with driver on it  [mIRC/Pawn]  SetVehiclePos works i tryed it SO don't be noob

sseebbyy

#4
This is Solution  ;D

Credits: By Tato


SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z,Angle);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
RemovePlayerFromVehicle(playerid);
SetVehiclePos(SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z,Angle);

stormeus

Nice bump; this thread hasn't been replied to in months. ::)
Also:
Quote from: sseebbyy on April 21, 2011, 08:41:40 AM
This is Solution  ;D

Credits: By Tato


SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z,Angle);
SetVehiclePos(SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z,Angle);


He said SetVehiclePos doesn't work, so this code wouldn't work anyways.

sseebbyy

Have you even tried?

And for your information, setvehiclepos works only once!

But with this command whenever you want go !

tato

Quote from: sseebbyy on April 21, 2011, 08:41:40 AM
This is Solution  ;D

Credits: By Tato


SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z,Angle);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
RemovePlayerFromVehicle(playerid);
SetVehiclePos(SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z,Angle);

:O i made that XD?! :D





<!-- Facebook Badge START --><a href="http://es-es.facebook.com/eduardoeslindo" target="_TOP" style="font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-variant: normal; font-style: normal; font-weight: normal; color: #3B5998; text-decoration: none;" title="Eduardo Estrada">Eduardo Estrada</a><br/><a href="http://es-es.facebook.com/eduardoeslindo" target="_TOP" title="Eduardo Estrada"><img src="http://badge.facebook.com/badge/697470158.6069.1979465113.png" width="120" height="272" style="b

yazeen

Quote from: [GCK]KoFFe on January 30, 2011, 03:47:47 PM
its works when some one drives your car if you are owner you type !getcar bla bla id the server take u that car with driver on it  [mIRC/Pawn]  SetVehiclePos works i tryed it SO don't be noob

Maybe SetVehiclePos(id,GetPlayerPos(playerid);but SetVehiclePos(id,GetPlayerPos(playerid)x+3,y+3; Dosent work Got it i cant explain! But i got it

tato

try this
SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z,Angle);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
RemovePlayerFromVehicle(playerid);
SetVehicleToRespawn(vehicleid);
SetVehiclePos(SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z,Angle);





<!-- Facebook Badge START --><a href="http://es-es.facebook.com/eduardoeslindo" target="_TOP" style="font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-variant: normal; font-style: normal; font-weight: normal; color: #3B5998; text-decoration: none;" title="Eduardo Estrada">Eduardo Estrada</a><br/><a href="http://es-es.facebook.com/eduardoeslindo" target="_TOP" title="Eduardo Estrada"><img src="http://badge.facebook.com/badge/697470158.6069.1979465113.png" width="120" height="272" style="b

sseebbyy


BaSSMaN

Lol? It works well for me without edits, so this topic is kinda useless :/.

yazeen

Quote from: BaSSMaN on April 22, 2011, 02:27:20 PM
Lol? It works well for me without edits, so this topic is kinda useless :/.

WTF!? u mean More than 2 times like SetVehiclePos(id,blblablalba); Once the car is spawned u can spawn it again?

BaSSMaN

Oops, it works one time yeah xD.
Fail sorry lol.
But who on earth would use /c addveh? I just add vehicles into dini..

stormeus

I think we're starting to go a little off topic here. The topic creator hasn't been in this topic for three months, so it's safe to lock it.