Jump to content

Asking for a script


Maleficul

Recommended Posts

  • 1 month later...

This is my aduty script

function giveblood (thePlayer) 
local account = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup("user." .. account, aclGetGroup("Admin,Moderator,Owner")) then  
         
        end            
    outputChatBox ("#1AFF00 Adminul "..getPlayerName(thePlayer).."#1AFF00 este on Duty",root,255,255,255,true) 
    setElementData(thePlayer, "blood",999999999)  
end 
addCommandHandler("aonduty", giveblood) 
  
function bloodback(thePlayer) 
local account = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup("user." .. account, aclGetGroup("Admin,Moderator,Owner")) then 
  
        end 
    outputChatBox ("#FF0000 Adminul "..getPlayerName(thePlayer).."#FF0000 este off Duty",root,255,255,255,true) 
    setElementData(thePlayer, "blood",12000)  
end 
addCommandHandler("aoffduty", bloodback) 

And for armabox

function tentdayz(thePlayer) 
accountname = getAccountName(getPlayerAccount(thePlayer)) 
if isObjectInACLGroup("user." .. accountname, aclGetGroup("Admin")) then 
do 
local x, y, z = getElementPosition(thePlayer) 
tent = createObject(3243, x , y +4 , z -1) 
setObjectScale(tent, 0.5) 
tentCol = createColSphere(x , y, z,  4) 
attachElements(tentCol, tent, 0, 0, 0) 
setElementData(tentCol, "parent", tent) 
setElementData(tent, "parent", tentCol) 
setElementData(tentCol, "tent", true) 
setElementData(tentCol, "vehicle", true) 
setElementData(tentCol, "MAX_Slots", 40000) 
setElementData(tentCol, "M4", 999) 
setElementData(tentCol, "M4 Mag", 999) 
setElementData(tentCol, "PDW", 999) 
setElementData(tentCol, "PDW Mag", 999) 
setElementData(tentCol, "Mp5", 999) 
setElementData(tentCol, "Mp5 Mag", 999) 
setElementData(tentCol, "Winchester 1866", 999) 
setElementData(tentCol, "1866 slug", 999) 
setElementData(tentCol, "Tent", 999) 
setElementData(tentCol, "Hatchat", 999) 
setElementData(tentCol, "Hunting Knife", 999) 
setElementData(tentCol, "Wirefence", 999) 
setElementData(tentCol, "Lee Enfield", 999) 
setElementData(tentCol, "Lee Enfield Mag", 999) 
setElementData(tentCol, "CZ 550", 999) 
setElementData(tentCol, "CZ 550 Mag", 999) 
setElementData(tentCol, "AK-47", 999) 
setElementData(tentCol, "AK Mag", 999) 
setElementData(tentCol, "Pizza", 999) 
setElementData(tentCol, "Milk", 999) 
setElementData(tentCol, "Coyote Backpack", 999) 
setElementData(tentCol, "Cooked Meat", 999) 
setElementData(tentCol, "Soda Bottle", 999) 
setElementData(tentCol, "Medic Kit", 999) 
setElementData(tentCol, "Morphine", 999) 
setElementData(tentCol, "Full Gas Canister", 999) 
setElementData(tentCol, "Engine", 999) 
setElementData(tentCol, "Tire", 999) 
setElementData(tentCol, "Tank Parts", 999) 
setElementData(tentCol, "Ghillie Suit", 999) 
setElementData(tentCol, "Map", 999) 
setElementData(tentCol, "GPS", 999) 
setElementData(tentCol, "Toolbox", 999) 
setElementData(tentCol, "Watch", 999) 
setElementData(tentCol, "M9 SD", 999) 
setElementData(tentCol, "M9 SD Mag", 999) 
setElementData(tentCol, "Grenade", 999) 
setElementData(tentCol, "O.S Pack", 999) 
setElementData(tentCol, "Camouflage Clothing", 999) 
setElementData(tentCol, "Civilian Clothing", 999) 
  
end 
else 
end 
end 
addCommandHandler("armabox", tentdayz) 

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...