DomesticCat Posted October 29, 2014 Share Posted October 29, 2014 salam, koi muje script de ga aise, jis tarha ki is meu hain, viewtopic.php?f=108&t=81961&p=748591#p748591, ''Vehicle God Mode", please muje ye chahiye........koi de ga code? Link to comment
Anubhav Posted October 29, 2014 Share Posted October 29, 2014 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
Bilal135 Posted October 29, 2014 Share Posted October 29, 2014 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 Posted October 29, 2014 Share Posted October 29, 2014 (edited) 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 October 29, 2014 by Guest Link to comment
Bilal135 Posted October 29, 2014 Share Posted October 29, 2014 Ohh, sorry, Mene sahi tarha se code ko dekha nahi tha. Link to comment
Evil# Posted October 29, 2014 Share Posted October 29, 2014 app to ye script community say bhe la sakta ho. Link to comment
$@!m HeRO Posted October 30, 2014 Share Posted October 30, 2014 when we have anubhav.... no need for community ! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now