08.04.2011, 03:49
Hello!
I have made a simple cmd to only use at special coords.
But i dont know how to define if a player is at the positions
i put this before the coords, i know its wrong, but just so you get my point.
And i hope i made the coords the right way to?
Code
I have made a simple cmd to only use at special coords.
But i dont know how to define if a player is at the positions
i put this before the coords, i know its wrong, but just so you get my point.
pawn Код:
if IsPlayerAtPos(playerid,
Code
pawn Код:
CMD:repair(playerid, params[])
{
new vehicleid = GetPlayerVehicleID(playerid);
if IsPlayerAtPos(playerid, 405.1276,2453.0115,16.5000 || 1619.4607,1337.4252,10.8095 || 1874.7584,-2288.3972,14.2586 || -1363.8220,-488.4260,14.8779);
RepairVehicle(GetPlayerVehicleID(playerid));
SetVehicleHealth(vehicleid, 1000.0);
SendClientMessage(playerid, COLOR_GREEN, "The vehicle has been repaired.");
return 1;
}