Vehicle In Water
#7

I have one idea but i not test it much :
if you be able to fallow i will wrote it here and you test it and let me know is it working.

Car is in water , OnVehicleDeath is called,Car coordinates are still,and this in chat not position coordinate

Car stay out of water,Car coordinate are still ,but look in chat (explained will be below)

Code of chat:
pawn Код:
public OnPlayerUpdate(playerid)
{
new Float:w,Float:x,Float:y,Float:z;
new text[128];
if(IsPlayerInAnyVehicle(playerid))
{
GetVehicleRotationQuat(GetPlayerVehicleID(playerid),w,x,y,z);
format(text,sizeof(text),"w: %f x: %f y: %f z: %f",w,x,y,z);
SendClientMessage(playerid,0xFFFFFFFF,text);
}
return 1;
}
And if you check is OnVehicleDeath is called , and this things go wild may be you able to detect.
just a idea and mumble of me.
Reply


Messages In This Thread
Vehicle In Water - by Abreezy - 18.04.2013, 18:47
Re: Vehicle In Water - by MP2 - 18.04.2013, 19:00
Re: Vehicle In Water - by Pottus - 18.04.2013, 19:04
Re: Vehicle In Water - by MP2 - 18.04.2013, 19:06
Re: Vehicle In Water - by Abreezy - 18.04.2013, 21:52
Re: Vehicle In Water - by Pottus - 18.04.2013, 22:21
Re: Vehicle In Water - by Azazelo - 18.04.2013, 22:29
Re: Vehicle In Water - by Pottus - 18.04.2013, 22:33
Re: Vehicle In Water - by Azazelo - 18.04.2013, 22:39

Forum Jump:


Users browsing this thread: 1 Guest(s)