Jump to content

Vip Items Problem


Tekken

Recommended Posts

I create this script for vip items and i want to add an backpack how to do ?

Script

function kitvip ( player )      
 local accName = getAccountName ( getPlayerAccount (player) )      
  if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) )  
   then    
setElementData(player, "Map",1)          
setElementData(player, "GPS",1)                
setElementData(player, "M9 SD",1)         
setElementData(player, "M9 SD Mag",30)          
setElementData(player, "M4 Mag",90)              
setElementData(player, "M4",1)                       
setElementData(player, "CZ 550",1)                               
setElementData(player, "CZ 550 Mag",37)                                      
setElementData(player, "Water Bottle",5) 
setElementData(player, "Camouflage Clothing",1) 
setElementData(player, "Czech Backpack",1)                                                  
setElementData(player, "Pizza",5)                                                                                                      
setElementData(player, "MAX_Slots",100)              
setElementData(player, "Infrared Goggles",1)                                                         
setElementData(player, "Night Vision Goggles",1) 
setElementData(thePlayer, "MAX_Slots",26)                     
outputChatBox("Iteme VIP selectate!", player, 0, 255, 0, false)     
  end 
end 
addCommandHandler("vip",kitvip) 

Link to comment
  • Moderators
Did you really create this script? I think if you did, it would be very obvious.

I know it's already added but i cant use it i don't know why it's there like an item and i kent put on back

Then you lied, didn't you :?::!:

Link to comment
If MAX_Slots > Backpack Size then you won't be able to equip the backpack.

Thanks

Still not working :(

function kitvip ( player )      
 local accName = getAccountName ( getPlayerAccount (player) )      
  if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) )  
   then    
setElementData(player, "Map",1) 
setElementData(player, "Toolbox",1)  
setElementData(player, "Box Of Matches",1) 
setElementData(player, "Watch",1)  
setElementData(player, "Morphine",1) 
setElementData(player, "Medic Kit",1) 
setElementData(player, "Blood Bag",1)         
setElementData(player, "GPS",1)                
setElementData(player, "M9 SD",1)         
setElementData(player, "M9 SD Mag",60)          
setElementData(player, "M4 Mag",200)              
setElementData(player, "M4",1)                       
setElementData(player, "CZ 550",1)                               
setElementData(player, "CZ 550 Mag",50)                                      
setElementData(player, "Water Bottle",5) 
setElementData(player, "Camouflage Clothing",1)                                                  
setElementData(player, "Pizza",5)                                                                                                      
setElementData(player, "Coyote Backpack",1)              
setElementData(player, "Infrared Goggles",1)                                                         
setElementData(player, "Night Vision Goggles",1)                    
outputChatBox("Iteme VIP selectate!", player, 0, 255, 0, false)     
  end 
end 
addCommandHandler("vip",kitvip) 

Link to comment
DayZ doesn't come with 'Equip Backpack', you have to drop it and pick it up.

Sory for spiking in Romanian

Sall, deci as vrea sa se faca ca pe sv tau(sa apara singur) dar cand scriu /vip pur si simplu mi-l pune ca pe un item si nu-l pot folosi chiar daca il dau jos si il i-au dupaia

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