Jump to content

Et-win

Members
  • Posts

    1,390
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Et-win

  1. Et-win

    Table problem

    Oops, nvm what I said :3
  2. I think you can't send the timer. (Not sure)
  3. function jumper () local playerpos = getLocalPlayer() local x, y, z = getElementPosition ( playerpos ) setElementPosition ( getLocalPlayer(), x, y, 100 ) end addCommandHandler ( "jump", jumper )
  4. Et-win

    Table problem

    function ceateJobLocations() for index, val in pairs(jobsLocation) do marker = createMarker(val.x, val.y, val.z-0.5, "cylinder", 1.5, val.r, val.g, val.b, 255) name[marker] = val.job setElementDimension (marker , val[1][8] ) setElementInterior (marker , val[1][9]) addEventHandler("onMarkerHit", marker, enteredMarker) end end addEventHandler("onResourceStart", resourceRoot, ceateJobLocations)
  5. Post the Image URL link, because why we should have to download it?
  6. if (( weaponID == 17) or (weaponID == 18 )) and ( getTeamName ( source ) == "zombies" )
  7. addEventHandler ("onMarkerHit", HouseRobC, Otro) HouseRocC is not given before the script reads the event handler. (If the script starts, it reads this event handler, he checks it but can't find HouseRobC, because that marker gets created later. Add the event handler in the function when you create that marker.
  8. Et-win

    Team Chat

    type="misc" has to be script btw.
  9. Et-win

    Team Chat

    Where is the client file in meta?
  10. createMarker onMarkerHit moveObject isObjectInACLGroup
  11. Et-win

    Team Chat

    Hij wil het ook niet, dit is alleen maar bedelen. Yup.
  12. /bind <key> debugscript 3 You mean
  13. Et-win

    Weapon tables

    table = {{anothertable}} Example: table1 = { {"NamePlayer1", "Weapon", ammo}, {"NamePlayer2", "Weapon", ammo}, } EDIT: To insert that, use: table.insert(table1, {"MyName", "AK-47", 11})
  14. Et-win

    Team Chat

    We have helped you with 2 scripts for teamchat already and still you don't know it? Look into the scripts we have 'helped' you with and go understand it. I think you are not even taking time to look into it.
  15. 'classmembers' is not defined
  16. Because an Admin of MTA (Correct me if I'm wrong) closed it due unsave stuff? e.e
  17. function indit() setElementData(source, "zsaksz", 0) end addEventHandler ( "onPlayerJoin", getRootElement(), indit ) function pakolas(thePlayer) if getElementData(thePlayer,"zsaksz") == 0 then if (exports.global:hasItem(thePlayer, 158) ) then setElementData(thePlayer, "zsaksz", 1222) exports.global:takeItem(thePlayer, 158) exports.global:giveItem(thePlayer, 159, 1) setElementInterior(ped, 1) burger = createObject(1550,0,0,0) setElementDimension(burger, 19) setElementInterior(burger, 1) exports.bone_attach:attachElementToBone(burger,thePlayer,3,0,-0.25,0,0,50,180) -- triggerClientEvent(thePlayer, "guielo", thePlayer) else outputChatBox("Elöbb kéne egy zsák amibe pakolhatsz...", thePlayer, 255,100,0) end else outputChatBox("Már van rajtad egy táska. Egyszerre nem bírsz el többet." .. zsakrajta .. " ", thePlayer, 255,100,0) end end addEventHandler ( "onMarkerHit", getRootElement(), pakolas)
  18. function indit(thePlayer) setElementData(thePlayer, "zsaksz", 0) end addEventHandler ( "onResourceStart", getRootElement(), indit ) Event 'onResourceStart' can't send 'thePlayer' lol. That's why it doesn't work. You have to give up the player...
  19. 'pakol' is not defined? Change it to getRootElement() otherwise. Also I would change: addEventHandler ( "onResourceStart", getRootElement(), indit ) To: addEventHandler ( "onResourceStart", getResourceRootElement(), indit ) Because it is otherwise starts the function everytime a resource starts. (Except is you want that, then leave it how it is)
  20. if tonumber(getElementData(thePlayer,"zsaksz")) == 0 then It will be saved as a string, so get it as number (Correct me if I'm wrong) EDIT: You are not starting the function 'pakolas'?
  21. We give help if the script isn't stolen. Nor we don't have any proof or this is really bought by you. I would be glad to help, but you have to take and put time into the code aswell, trying to fix it by yourself.
  22. I'm not going to download anything. Also, I ain't going to totally fully repair your script. You should contact the owner of the script if it isn't yours. This is also probably why nobody is replying to this topic.
  23. Change getWantedLevel to getPlayerWantedLevel. And I don't keep fixing your stuff if you don't even try it by yourself.
×
×
  • Create New...