Fix Command.
#3

pawn Код:
CMD:fix(playerid, params[]) {
    new
        vehicleid = GetPlayerVehicleID(playerid);
    if(gTeam[playerid] == ASSISTANCE) {
        if(IsPlayerInVehicle(playerid, vehicleid)) {
            RepairVehicle(vehicleid);
            SendClientMessage(playerid, COLOR_WHITE, "You have successfully repaired the vehicle.");
        }
        else SendClientMessage(playerid, RED, "ERROR: You are not in a vehicle!");
    }
    return 1;
}
Try that.
Reply


Messages In This Thread
Fix Command. - by guitarmandanny - 28.10.2012, 21:23
Re: Fix Command. - by SwisherSweet - 28.10.2012, 21:38
Re: Fix Command. - by Eric - 28.10.2012, 21:38
Re: Fix Command. - by guitarmandanny - 28.10.2012, 21:41

Forum Jump:


Users browsing this thread: 1 Guest(s)