Tekken Posted October 2, 2014 Share Posted October 2, 2014 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
Callum Posted October 3, 2014 Share Posted October 3, 2014 Did you really create this script? I think if you did, it would be very obvious. Link to comment
King12 Posted October 3, 2014 Share Posted October 3, 2014 Did you really create this script? I think if you did, it would be very obvious. It's DayZ which is made by 2 guys. Link to comment
Tekken Posted October 3, 2014 Author Share Posted October 3, 2014 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 Link to comment
Moderators IIYAMA Posted October 3, 2014 Moderators Share Posted October 3, 2014 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
Tekken Posted October 3, 2014 Author Share Posted October 3, 2014 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 Link to comment
King12 Posted October 3, 2014 Share Posted October 3, 2014 What you don't understand i create it for when type /vip to get this items but backpack have this problem is not usableLook: https://lh6.googleusercontent.com/-93QX ... iozdan.jpg You have to wear by yourself, right click and wear it. Link to comment
Tekken Posted October 3, 2014 Author Share Posted October 3, 2014 What you don't understand i create it for when type /vip to get this items but backpack have this problem is not usableLook: 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 Link to comment
crismar Posted October 3, 2014 Share Posted October 3, 2014 If MAX_Slots > Backpack Size then you won't be able to equip the backpack. Link to comment
Tekken Posted October 4, 2014 Author Share Posted October 4, 2014 If MAX_Slots > Backpack Size then you won't be able to equip the backpack. Thanks Link to comment
Tekken Posted October 4, 2014 Author Share Posted October 4, 2014 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
crismar Posted October 5, 2014 Share Posted October 5, 2014 DayZ doesn't come with 'Equip Backpack', you have to drop it and pick it up. Link to comment
Tekken Posted October 5, 2014 Author Share Posted October 5, 2014 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
crismar Posted October 6, 2014 Share Posted October 6, 2014 We provided all the needed functions, I had nobody to explain me these stuffs so you'll have to figure out yourself. Link to comment
Tekken Posted October 7, 2014 Author Share Posted October 7, 2014 We provided all the needed functions, I had nobody to explain me these stuffs so you'll have to figure out yourself. ok thanks 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