11.11.2011, 11:10
CMD:fix(playerid,params[])
{
try this, it should work
{
PHP код:
if(!IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438)return SendClientMessage(playerid,RED,"You need to be in stunt area to use this command");
if(IsPlayerInAnyVehicle(playerid))
{
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, GREEN, "Your vehicle has been successfully repaired!");
}
else
{
SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");
}
return 1;
}