LeeR Posted August 11, 2012 Share Posted August 11, 2012 function nos(source) accountname = getAccountName (getPlayerAccount(source)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then if isPedInVehicle(source) then for i,player in ipairs(getElementsByType("player")) do addVehicleUpgrade(getPedOccupiedVehicle(player),1010) end setTimer(outputChatBox,50,1,"#ABCDEF[#ffffffNitro#ABCDEF] #ffffff"..getPlayerName (source) .. " #ffffffhas been added nitro all players!",getRootElement(),171,205,239,true) end else outputChatBox("#ABCDEF* You are not a admin.",source,171,205,239,true) end end addCommandHandler("nos",nos) function fix(source) accountname = getAccountName (getPlayerAccount(source)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then if isPedInVehicle(source) then for i,player in ipairs(getElementsByType("player")) do fixVehicle(getPedOccupiedVehicle(player)) end setTimer(outputChatBox,50,1,"#ABCDEF[#ffffffFix#ABCDEF] #ffffff"..getPlayerName (source) .. " #ffffffhas been fixed all players!",getRootElement(),171,205,239,true) end else outputChatBox("#ABCDEF* You are not a admin.",source,171,205,239,true) end end addCommandHandler("fix",fix) One could modify this script to give life & vest? Link to comment
Castillo Posted August 11, 2012 Share Posted August 11, 2012 You want us to make two commands to give health and armour? Link to comment
Castillo Posted August 11, 2012 Share Posted August 11, 2012 Use: setElementHealth setPedArmor 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