29.12.2012, 05:27
Crashed means he hit the object? Check if the player is extremely near the object by getting the objects position using
Then get the co-ordinates of the object, add it in this function
Or use this function
pawn Код:
GetObjectPos(objectid, x, y, z);
pawn Код:
IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)
pawn Код:
stock IsPlayerNearObject(playerid, objectid)
{
new Float:X, Float:Y, Float:Z;
GetObjectPos(objectid, X, Y, Z);
if(IsPlayerInRangeOfPoint(playerid, 0.1, X, Y, Z)) return 1;
return 0;
}