29.07.2011, 22:06
pawn Код:
CMD:close(playerid,params[])
{
for(new v=0; v<MAX_VEHICLES;v++)
{
new Float:z, Float:y, Float:z;
GetVehiclePos(v, x, y, z);
if(strmatch(Vehicleinfo[v][Carowner], GetPlayerNameEx(playerid)))
{
if(!IsPlayerInRangeOfPoint(playerid, 5.0, x, y, z))
{
SendClientMessage(playerid, -1, "no of your bought cars is close to you!");
return 1;
}
else
{
//close
}
}
}
return 1;
}