Jump to content

KariiiM

Members
  • Posts

    1,312
  • Joined

  • Last visited

Everything posted by KariiiM

  1. KariiiM

    GUI

    Check your private message
  2. Simply there are two lua functions, 1st = converting to number and 2nd = converting to string tonumber tostring
  3. If im right you're in the wrong section, https://forum.multitheftauto.com/viewforum.php?f=103
  4. Yes, you've to use this function to let your gridlist clear and far of repetitions guiGridListClear(gridlistname) If you used this function correctly ,it won't remove all the rows in, it will just let your gridlist's data as it's ,if you didn't use this function then each time you open your gridlist you will find more rows and messy..
  5. Yes, it happen when you enter to some servers are not scripted professionally, you feel with the FPS drop each time, if the FPS dropped that mean the usage of CPU used alot
  6. triggerClientEvent Because of the high priority it can cause de-sync/time-outs when it is used frequently. (more than 30 per second, depending on your internet speed) As far as i know there's no relation between internet speed and trigger events ,the relation between them is the CPU and it's up to computer's processor
  7. KariiiM

    Helppp!!! :(

    weaponAmmoTable Table is empty that mean there's nothing inside it and you trying to loop data from it, logically it will return with errors.
  8. The wiki already explained everything
  9. Look nice , keep the great job
  10. Both of them are useful in my opinion, it's just up to which data you want to trigger
  11. Do you think a game will tell you stop from playing? I don't think so, a game need more players to play in..
  12. KariiiM

    Deleted

    What's wrong with this code?
  13. local spawnPositions = { {2465.6940917969,-1623.3167724609,795.76538085938}, {1626.8212890625,-1520.2774658203,1104.1354980469}, {-269.89398193359,-1720.0048828125,1001.3973999023}, {299.54275512695,-1971.3079833984,661.76312255859}, {2145.9211425781,-1171.0651855469,743.08264160156}, {1227.9801025391,51.075553894043,920.17932128906}, {933.91302490234,870.53814697266,858.53332519531}, {-540.12231445313,-130.12145996094,955.49230957031}, {-1490.7508544922,-358.21102905273,1074.5930175781}, {-2892.0844726563,-577.19842529297,1012.625793457}, {-2288.7478027344,750.94525146484,1048.4068603516}, {-1672.5749511719,2590.458984375,1219.0804443359}, {-414.70028686523,2141.4682617188,1081.384765625}, {1623.9525146484,2817.3923339844,1070.5574951172}, {-273.70892333984,1452.9465332031,1090.626953125}, {1686.5,-1607.1999511719,765.90002441406}, {2134.3000488281,1999.1999511719,1182.9000244141}, {-2221.6999511719,2424.1000976563,1172.6999511719}, {-2377.8000488281,153.69999694824,1336.6999511719}, {-1225.9000244141,-1730.8000488281,1130.8000488281}, } local playerDataTable = { {"alivetime"}, {"skin"}, {"MAX_Slots"}, {"bandit"}, {"blood"}, {"food"}, {"thirst"}, {"temperature"}, {"currentweapon_1"}, {"currentweapon_2"}, {"currentweapon_3"}, {"bleeding"}, {"brokenbone"}, {"pain"}, {"cold"}, {"infection"}, {"humanity"}, {"zombieskilled"}, {"headshots"}, {"murders"}, {"banditskilled"}, {"Wood Pile"}, {"Bandage"}, {"Water Bottle"}, {"Pasta Can"}, {"Beans Can"}, {"Burger"}, {"Box of Matches"}, {"Makarov Mag"}, {"M9 SD Mag"}, {".45 ACP"}, {"Makarov PM"}, {"M9 SD"}, {"Remington 870"}, {"PDW"}, {"Hunting Knife"}, {"Hatchet"}, {"Pizza"}, {"Morphine"}, {"Soda Bottle"}, {"Empty Gas Canister"}, {"Full Gas Canister"}, {"Roadflare"}, {"Milk"}, {"PDW Mag"}, {"Bizon SD Mag"}, {"30Rnd. AK"}, {"30Rnd. STANAG"}, {"Tear Gas"}, {"M67 Frag"}, {"Revolver"}, {"Sawn-Off Shotgun"}, {"M1014"}, {"Bizon PP-19 SD"}, {"Watch"}, {"Medic Kit"}, {"Heat Pack"}, {"M14 AIM"}, {"PDW"}, --{"TEC-9"}, {"AKS-74 Kobra"}, --{"M136 Rocket Launcher"}, {"Blood Bag"}, {"GPS"}, {"Map"}, {"Toolbox"}, {"Wire Fence"}, {"Tire"}, {"Engine"}, --{"M136 Rocket"}, {"DMR Mag"}, {"M14 Mag"}, {"M4A3 CCO"}, {"DMR"}, --{"Heat-Seeking RPG"}, {"Satchel"}, {"Infrared Goggles"}, {"Night Vision Goggles"}, {"Tent"}, {"Raw Meat"}, {"Cooked Meat"}, {"Camouflage Clothing"}, {"Ghillie Suit"}, {"Civilian Clothing"}, {"Survivor Clothing"}, {"Press Clothing"}, {"Sniper Skin Girl"}, {":O Clothing"}, {"Takistan Ghillie Suit"}, {"Civilian Clothing [F]"}, {"Takistan Army"}, {"Desert Ghillie suit"}, {"Brushwood Ghillie suit"}, {"Zombie Clothing"}, {"Jungle Solider"}, {"Desert Solider"}, {"New Solider"}, {"Parachute"}, {"Painkiller"}, {"Empty Water Bottle"}, {"Empty Soda Cans"}, {"Scruffy Burgers"}, {"8Rnd. Slugs"}, {"2Rnd. Slug"}, {"8Rnd. Pellet"}, {"Radio Device"}, {"Binoculars"}, {"Baseball Bat"}, {"Shovel"}, {"Golf Club"}, } local vehicleDataTable = { {"MAX_Slots"}, {"Tire_inVehicle"}, {"Engine_inVehicle"}, {"fuel"}, {"Wood Pile"}, {"Bandage"}, {"Water Bottle"}, {"Pasta Can"}, {"Beans Can"}, {"Burger"}, {"Box of Matches"}, {"Makarov Mag"}, {"Makarov PM"}, {"M9 SD"}, {".45 ACP"}, {"Remington 870"}, {"PDW"}, {"Hunting Knife"}, {"Morphine"}, {"Hatchet"}, {"Pizza"}, {"Soda Bottle"}, {"Empty Gas Canister"}, {"Full Gas Canister"}, {"Roadflare"}, {"Milk"}, {"PDW Mag"}, {"Bizon SD Mag"}, {"30Rnd. AK"}, {"30Rnd. STANAG"}, {"Tear Gas"}, {"M67 Frag"}, {"Revolver"}, {"Sawn-Off Shotgun"}, {"M1014"}, {"Bizon PP-19 SD"}, {"Watch"}, {"Medic Kit"}, {"Heat Pack"}, {"M14 AIM"}, --{"TEC-9"}, {"AKS-74 Kobra"}, --{"M136 Rocket Launcher"}, {"Blood Bag"}, {"GPS"}, {"Map"}, {"Toolbox"}, {"Wire Fence"}, {"Tire"}, {"Engine"}, --{"M136 Rocket"}, {"DMR Mag"}, {"M14 Mag"}, {"M4A3 CCO"}, {"DMR"}, --{"Heat-Seeking RPG"}, {"Satchel"}, {"Infrared Goggles"}, {"Night Vision Goggles"}, {"Tent"}, {"Raw Meat"}, {"Cooked Meat"}, {"Camouflage Clothing"}, {"Ghillie Suit"}, {"Civilian Clothing"}, {"Survivor Clothing"}, {"Press Clothing"}, {"Painkiller"}, {"Binoculars"}, {"Empty Water Bottle"}, {"Empty Soda Cans"}, {"Scruffy Burgers"}, {"8Rnd. Slugs"}, {"2Rnd. Slug"}, {"8Rnd. Pellet"}, {"Assault Pack (ACU)"}, {"Alice Pack"}, {"LHT Ghillie Pack"}, {"Soldier Pack"}, {"Military Vintage Backpack"}, {"Radio Device"}, {"Coyote Backpack"}, {"Czech Backpack"}, {"Baseball Bat"}, {"Shovel"}, {"Golf Club"}, } function spawnDayZPlayer(player) local number = math.random(table.size(spawnPositions)) local x,y,z = spawnPositions[number][1],spawnPositions[number][2],spawnPositions[number][3] spawnPlayer (player, x,y,z+0.5, math.random(0,360), 73, 0, 0) fadeCamera (player, true) setCameraTarget (player, player) playerCol = createColSphere(x,y,z,1.5) setElementData(player,"playerCol",playerCol) attachElements ( playerCol, player, 0, 0, 0 ) setElementData(playerCol,"parent",player) setElementData(playerCol,"player",true) local account = getPlayerAccount(player) setAccountData(account,"isDead",false) setElementData(player,"isDead",false) setElementData(player,"logedin",true) setElementData(player,"admin",getAccountData(account,"admin") or false) setElementData(player,"supporter",getAccountData(account,"supporter") or false) ---------------------------------- --Player Items on Start for i,data in ipairs(playerDataTable) do if data[1] =="Bandage" then setElementData(player,data[1],2) elseif data[1] =="Painkiller" then setElementData(player,data[1],1) elseif data[1] == "Parachute" then
  14. KariiiM

    outPutChatbox

    Yes i understand, he also must know what he do because as i see he is scripting but he don't know the meaning of some functions
  15. KariiiM

    outPutChatbox

    He already did that getElementType(hitElement) =="player" you can also use isPedInVehicle and isPedDead to check if the player who hit the marker is in the vehicle or not isPedDead used to check if the player is dead or no in this case you can do something by lua like that if not isPedDead ( hitElement) ) then
  16. Yes, i didn't read the topic correctly or maybe at all i just saw the image anyway, try something like that not tested but maybe it will give you a light to start rotation = rotation + 1 if rotation > 359 then rotation = 0 end setElementRotation(objectname,0,0,rotation)
  17. KariiiM

    outPutChatbox

    Who's thePlayer? onMarkerHit / onClientMarkerHit events are with two arguments the player who hit the marker and dimension function markerHit6(hitElement, matchingDimension) if getElementType(hitElement) =="player" and getPlayerTeam(hitElement) and getTeamName (getPlayerTeam(hitElement)) == "America" and isElement (GA6) then outputChatBox("Please,Stay 10 Secs in the area to capture it !",hitElement,255,109 ,109 ) timer6 = setTimer ( captureAreaA6, 4000, 1 ) else cancelEvent() if getElementType(hitElement) =="player" and getPlayerTeam(hitElement) and getTeamName (getPlayerTeam(hitElement)) == "German" and isElement (UA6) then outputChatBox("Please,Stay 10 Secs in the area to capture it !",hitElement,255,109 ,109 ) timer6 = setTimer ( captureAreaG6, 4000, 1 ) end end end addEventHandler("onMarkerHit", marker6, markerHit6)
  18. local rotation = 0 function yourFunction () dxDrawImage ( screenWidth/2 - 50, 0, 100, 240, 'image.png', rotation, 0, 0 ) rotation = rotation + 1 if ( rotation >= 359 ) then rotation = 0 end end addEventHandler("onClientRender",root,yourFunction)
  19. KariiiM

    NEED HELP

    Closed but it stay not your script
  20. KariiiM

    NEED HELP

    What's wrong with it? and open new topic if you have new problem By the way ,it's not your script , it's vave dayz server's script
  21. KariiiM

    NEED HELP

    Wirte those errors down
×
×
  • Create New...