People crash with any object help.
#2

Crashed means he hit the object? Check if the player is extremely near the object by getting the objects position using
pawn Код:
GetObjectPos(objectid, x, y, z);
Then get the co-ordinates of the object, add it in this function
pawn Код:
IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)
Or use this function
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;
}
Reply


Messages In This Thread
People crash with any object help. - by Magic_Time - 29.12.2012, 05:19
Re: People crash with any object help. - by Faisal_khan - 29.12.2012, 05:27
Re: People crash with any object help. - by Tamer - 29.12.2012, 05:35
Re: People crash with any object help. - by Faisal_khan - 29.12.2012, 05:39

Forum Jump:


Users browsing this thread: 3 Guest(s)