Jump to content

DREFTHUN

Members
  • Posts

    35
  • Joined

  • Last visited

Everything posted by DREFTHUN

  1. --Clientside: if getElementData(getPedTarget(localPlayer), "antigravitygun") then return end --It has to look like this: if isElement(ggun_obj) and isTimer(buildupTimer) then --(Row: 30) if not isElement(ggun_obj) then ggun_obj = getPedTarget(localPlayer) end --(Row: 31) if getElementData(getPedTarget(localPlayer), "antigravitygun") then return end --(Row: 32) Though, others can still lift the vehicle you are sitting in.
  2. Here is a video demostrating my problem: My friend doesn't disappear, he just gets desynced... function setdim(thePlayer, cmd, targetPlayer, num) num = tonumber(num) targetPlayer = getPlayerFromName(targetPlayer) setElementDimension(targetPlayer, num) outputChatBox("Succesfully set dimension to "..num,root, 255, 255, 255, true) end addCommandHandler("setdim", setdim, false, false)
  3. You should use this: --Add this to the serverfile: function antigravitygun(player) if not getElementData(player, "antigravitygun") then setElementData(player, "antigravitygun", true) outputChatBox("You have succesfully turned off 'Gravity Gun'!",player,255,0,0) else setElementData(player, "antigravitygun", false) outputChatBox("You have succesfully turned on 'Gravity Gun'!",player,0,255,0) end end addCommandHandler("antigg", antigravitygun) --And this to the client: if getElementData(localPlayer, "antigravitygun") then return end --This one has to be between these two: if not getControlState("aim_weapon") or isElementInWater(localPlayer) then return end --(Row: 23) local ggun_obj = getElementData(localPlayer,"ggun_taken") --(Row: 24) --So it should look like this: if not getControlState("aim_weapon") or isElementInWater(localPlayer) then return end --(Row: 23) if getElementData(localPlayer, "antigravitygun") then return end --(Row: 24) local ggun_obj = getElementData(localPlayer,"ggun_taken") --(Row: 25)
  4. I used this, but even the simple setElementDimension is bugged out somehow... function setdim(thePlayer, cmd, targetPlayer, szam) if getElementData(thePlayer, "acc:admin") > 0 then if not targetPlayer or not szam then outputChatBox("#ff9000[Usage]: #FFFFFF/"..cmd.." [ID / Name] [Dimension]", thePlayer, 0, 0, 0, true) return end szam = tonumber(szam) targetPlayer = findPlayer(thePlayer, targetPlayer) if not getElementData(targetPlayer, "loggedin") then outputChatBox("#D64541[Error]: #FFFFFFThe player you are trying to use the command on isn't logged in yet!", thePlayer, 0, 0, 0, true) return end setElementDimension(targetPlayer, szam) outputChatBox("Succesfully set "..getPlayerName(targetPlayer).."'s dimension to "..szam,thePlayer, 0, 0, 0, true) else outputChatBox("#D64541[Error]: #FFFFFFAcces denied!", thePlayer,0,0,0,true) end end addCommandHandler("setdim", setdim, false, false) --Before that, the spawning is used with spawnPlayer, and even this way it is bugged out. I will provide video later on...
  5. Hello! My problem is, that if I set my dimension to, let's say 2, and I set my friend's dimension to 1, I can still see him, but it is very much desynced... His position only gets updated every one second, etc. I really need to get this bug fixed, cause at the moment, I can't use interiors, etc. I made a modification to the mtaserver.conf file: <!-- Player sync interval. Default: 100 --> <player_sync_interval>50</player_sync_interval> But this is all.
×
×
  • Create New...