04.07.2012, 19:55
Hello well i have this thing with IsPlayerInArea and i dont know where to put it
I pretty much want to check if a truck has not got a trailer attached to it and it enters a certain point it will respawn the truck...
Please help
If you need any more code just ask
Please help
Thanks
I pretty much want to check if a truck has not got a trailer attached to it and it enters a certain point it will respawn the truck...
Please help
pawn Код:
forward IsPlayerInArea(playerid, x1, x2, y1, y2);
pawn Код:
forward IsPlayerInArea(playerid, x1, x2, y1, y2);
public IsPlayerInArea(playerid,x1, x2, y1, y2)
{
new Float:xx, Float:yy, Float:zz; GetPlayerPos(playerid, xx, yy, zz);
if(xx > x1 && xx < x2 && yy > y1 && yy < y2) return 1;
else return 0;
}
Please help
Thanks