Jump to content

Monument

Members
  • Posts

    24
  • Joined

  • Last visited

Everything posted by Monument

  1. work but destroy last element only not all object
  2. hi now i have script when player press 1 will create this -- server local myobject = createObject (8873, myx, myy, myz) local mycol = createColSphere ( myx, myy, myz, 320 ) setElementData(mycol,'col',myobject) setElementData(mycol,'colplayer',plr) i want when player quit destroy all elements ( not last elements only ) created by him
  3. already i use it as temporary solution but i want when server restart the variable saved
  4. i know i have read all xml functions but how to take a value of variable ? as x = x or getElementData(localPlayer) --( x = 1 ) when i start script i want x = 1
  5. hello i have script but i want save variables in it for example i have x,y,z i want when script stop save x,y,z in file as xml and when script start if found x,y,z in file xml then use it in function
  6. Monument

    repet

    thx its work good thx for all
  7. Monument

    repet

    i try to do it as if T1 == "1" and T2 =="2" and T3 =="3" then the output only 1 message but i have alot of data in table i can't do all as if
  8. Monument

    repet

    it's in 1 function timer with table Table = { {"1","2","3"} } setTimer(function() for i,v in ipairs(Table) do if (T1== v[1] and T2 == v[2] and T3 == v[3]) then outputChatBox('true') return else outputChatBox('false') end end end,1000,1) reason is the ipairs but how fix it i don't know
  9. Monument

    repet

    done but same thing i want when output be without spam only 1 output now its with more 10 output
  10. Monument

    repet

    setTimer(function() for i,v in ipairs(Table) do if (T1== v[1] and T2 == v[2] and T3 == v[3]) then outputChatBox('true') else outputChatBox('false') end end end,1000,1) this is my code when first the condition will output 'true' but when output 'true' be repetitive any help to be 1 time only with out repet
  11. Monument

    sound

    but what function use in server side i can't find it in server side for trainhorns i wanaa when hit marker in client then make sound for player hit marker or for near players but i think for player hit marker only better
  12. Monument

    sound

    wanaa to make 3d sound can all beside it hear it for client side what need ?
  13. i have seen all topics but i don't know what argument to setElementPosition Use in your Code use posX,posY,posZ Right ?
  14. i mean get forward position for player how ?
  15. hello i want make when player press b create object forward player and can all players see it
  16. Monument

    Sporadic

    hello guys, i want to make Sporadic letters ( A,B,C ) what ever setElementData(localPlayer,"Text","Text") P1,P2,P3,P4,P5 = getElementData(localPlayer,"Text") -- that mean P1 = T , P2 = e , P3 = x
  17. Thank you but i don't know how to make it for a specific team only if Team " 1 " do someting if Team "2" do other someting i said outputchatbox for exmaple only
  18. addEventHandler("onColShapeHit", group, function (thePlayer) local team = getPlayerTeam( thePlayer ); -- Here Bad Arg if getElementType ( thePlayer ) == "player" then CN = getElementData(source, "name") for i = 1, #C do if source == C[i] then if getTeamName(team) == "1" then outputChatBox ("1", getRootElement(), 255, 0, 0, true ) else if getTeamName(team) == "2" then outputChatBox ("2", getRootElement(), 255, 0, 0, true ) end end end end end end end, true) this Function Start when player hit colshape i want when hit colshape Check if Player in Team "1" then outputChatBox "1" if player in Team "2" then outputChatBox "2" if not 1 or 2 then ourpurChatBox " 3 " Thx For @Tekken
  19. try use vehicle_fire instead of Vehicle_fire
  20. Monument

    String

    hello I have a value and its source ( Element Data ) And this value comes with String function requires the absence of it
  21. Monument

    Auto Spam

    the script make 10 object right ? for example i want getElementPosition to object number 2 but i can't because the element without name i try to do that Object[i] = createObject(..................) -- i = number from 1 to 10 In the example above getElementPosition(Object[2])
  22. Monument

    Auto Spam

    thx its work good can i make name for it ? maybe object and it number
  23. Monument

    Auto Spam

    Yeah right, that's what I'm trying to do Also with some change of coordinates
  24. Monument

    Auto Spam

    Hello i want to create Objects But in an organized way maybe Creation = 10 X Change = 5 Y Change = 6 when Creation = 10 then Automatically Create 10 Objects When Create 10 Objects The difference between each Object 1 and Object 2 = ' 5 x ' And in Y ' 6 y ' Thanks !
×
×
  • Create New...