01.04.2009, 18:57
I forgot to mention what is wrong with this.. Well it just doesn't work. It sends the ClientMessage, thats all.
Now I adjusted the code a little bit.. And it still doesn't work.
cInfo[carid][Vehicle] is the CreateVehicle line, pInfo[playerid][OwnCar] can be seen as the car id. Same problem as above.
Now I adjusted the code a little bit.. And it still doesn't work.
Код:
new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid,X,Y,Z); SetVehiclePos(cInfo[pInfo[playerid][OwnCar]][Vehicle],X,Y,Z); SendClientMessage(playerid,c_green,"You have teleported your car to your position.");