10.06.2015, 12:00
Jimmi you need this: https://sampforum.blast.hk/showthread.php?tid=486060
and change Float:X, Float:Y, Float:Z with another name( ES. Float:vX )
and change Float:X, Float:Y, Float:Z with another name( ES. Float:vX )
PHP код:
if(strcmp(cmd, "/repair", true) == 0)
{
new
Float:vX,
Float:vY,
Float:vZ,
vehicleid = GetNearestVehicle();
GetVehicleHood(vehicleid, vX, vY, vZ);
if(IsPlayerInRangeOfPoint(playerid, 1.5, X, Y, Z))
{
ApplyAnimation(playerid,"CAR", "Fixn_Car_Loop",4.1,1,1,1,1,10000);
SetVehicleHealth(vehicleid, 1000.0);
RepairVehicle(vehicleid);
}
else SendClientMessage(playerid, -1, "You're not near vehicle's hood.");
return 1;
}