Monument
Members-
Posts
24 -
Joined
-
Last visited
Everything posted by Monument
-
work but destroy last element only not all object
-
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
-
already i use it as temporary solution but i want when server restart the variable saved
-
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
-
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
-
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
-
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
-
i have seen all topics but i don't know what argument to setElementPosition Use in your Code use posX,posY,posZ Right ?
-
i mean get forward position for player how ?
-
hello i want make when player press b create object forward player and can all players see it
-
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
-
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
-
try use vehicle_fire instead of Vehicle_fire
-
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])
-
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 !