18.04.2013, 22:29
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:
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.
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;
}
just a idea and mumble of me.