Jump to content

vehicle god mode script chahiye.


Recommended Posts

  
myoutput = { 
    ['true'] = '#FF0000[NOTE] #FFFFFFVehicle god mode turned on!', 
    ['false'] = '#FF0000[NOTE] #FFFFFFVehicle god mode turned off!' 
} 
  
function mode(player) 
    local veh = getPedOccupiedVehicle( player ) 
    if veh then 
        if isVehicleDamageProof( veh ) then 
            if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Admin")) then 
                outputChatBox(myoutput[tostring(not isVehicleDamageProof( veh ))], player, 255, 255, 255, true) 
                setVehicleDamageProof( veh, not isVehicleDamageProof( veh ) ) 
            end 
        end 
    end 
end 
addCommandHandler("vehmode", mode) 
  

Link to comment

Anubhav, Shaid ap aik cheez ko bhool gai, "/vehgodoff"

function vehicleG(Player) 
         if not isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(Player)), aclGetGroup ( "Admin" ) ) then  
         return outputChatBox("ACL: Access Denied (This Command Is Only For Admin Group)", Player, 255, 0, 0) 
end 
         if isPedInVehicle(Player) then 
         local veh = getPedOccupiedVehicle(Player) 
         setVehicleDamageProof(veh, false) 
         outputChatBox("#FF0000[NOTE] #FFFFFFVehicle God Mode Turned Off!", Player, 255, 255, 255, true) 
else 
         return outputChatBox("You're Not In A Vehicle, Please Sit In A Vehicle And Try Again!", Player, 255, 0, 0) 
end 
end 
addCommandHandler("vehgodoff", vehicleG) 

Link to comment
Anubhav, Shaid ap aik cheez ko bhool gai, "/vehgodoff"
function vehicleG(Player) 
         if not isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(Player)), aclGetGroup ( "Admin" ) ) then  
         return outputChatBox("ACL: Access Denied (This Command Is Only For Admin Group)", Player, 255, 0, 0) 
end 
         if isPedInVehicle(Player) then 
         local veh = getPedOccupiedVehicle(Player) 
         setVehicleDamageProof(veh, false) 
         outputChatBox("#FF0000[NOTE] #FFFFFFVehicle God Mode Turned Off!", Player, 255, 255, 255, true) 
else 
         return outputChatBox("You're Not In A Vehicle, Please Sit In A Vehicle And Try Again!", Player, 255, 0, 0) 
end 
end 
addCommandHandler("vehgodoff", vehicleG) 

You only need to use one command in my code, (better than multiple commands). Better see my code properly.

SEE MY CODE PROPERLY! I DIN'T FORGET ANYTHING. Sorry for caps, I'm not in mood as I'm injured.

Edited by Guest
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...