07.12.2014, 17:07
Hi guys , i made a showroom for my server with a lot of cars but my next problem is that players can move them away.
So i tried to make a timer who checks if vehicle pos coresponds with the vehicle pos from database but it's not working.
320 - vehicle id from my sql db, and the coordinates are the 320 car's coordinates.
So i tried to make a timer who checks if vehicle pos coresponds with the vehicle pos from database but it's not working.
pawn Код:
public DealerCars()
{
new Float:x, Float:y, Float:z;
new vehpos = GetVehiclePos(320, x, y, z);
if(1043.8596,1586.1318,-17.1108 != vehpos)
{
SetVehicleToRespawnEx(320);
}
}