18.10.2010, 22:23
pawn Код:
if (strcmp(cmdtext, "/test", true)==0)
{
new carids = GetClosestCar(playerid);
new Float: dist = GetDistanceFromPlayerToVehicle(playerid, carids);
new stringa[256];
format(stringa, sizeof stringa, "Distancia a vehiculo mas cercano: %2.f Id:[%i]", dist, carids);
SendClientMessage(playerid, 0xCCFFDD56, stringa);
return 1;
}