Jump to content

Vip Items Problem


Tekken

Recommended Posts

Posted

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) 

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

Posted
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

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

  • Moderators
Posted
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 :?::!:

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted
What you don't understand i create it for when type /vip to get this items but backpack have this problem is not usable

Look:

https://lh6.googleusercontent.com/-93QX ... iozdan.jpg

You have to wear by yourself, right click and wear it.

You think, I did not know this, but not working

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

Posted

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

Contact me if you are looking for a Web Developer.

3rd of October 2014 - Founder of RomaniaZ

Posted
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) 

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

Posted

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

Contact me if you are looking for a Web Developer.

3rd of October 2014 - Founder of RomaniaZ

Posted
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

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

Posted

We provided all the needed functions, I had nobody to explain me these stuffs so you'll have to figure out yourself.

Contact me if you are looking for a Web Developer.

3rd of October 2014 - Founder of RomaniaZ

Posted
We provided all the needed functions, I had nobody to explain me these stuffs so you'll have to figure out yourself.

ok thanks :)

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

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