-
Posts
6,097 -
Joined
-
Last visited
-
Days Won
218
Everything posted by IIYAMA
-
It isn't about the server, it is about the upload from the players. Some players do have very very slow internet. Since the player is the one that need to upload to the server and the download from the server is always doing almost very less, it could reduce some lagg. New players: and the pity is that the new players, who going to play mta, (+economical crisis) don't have enough money for good internet/ pc's. My server is getting full with people with bad ping's, most of them Spanish. They join with 300/400+ ping, that is just unfit able for the only good stealth server. 0.4 seconds their connection + instable ping that cause lots of teleportation. The only thing that can kill them is my own version of syncro..... all death-match servers are fucked up. The worse thing is that most of them can't even speak a word English.
-
Will there come a function that can set this camera update on and off per player? because sending data from client to server, when I don't use camera matrix(or other function that require this), it will be a wastage of the bandwidth. It can also be done by triggering, only I am not sure if that will give more lagg/bandwidth.
-
If I don't use this, can I set it to 1 sec per update time?
-
local weapon = createWeapon("mp5",0,0,0) --Create a Mp5 at the Cordinates 0,0,0 function fireWeapon () setWeaponState ( weapon,"firing") end
-
local pX, pY, pZ = getElementPosition (vehicle) local xR,yR,zR = getElementRotation (vehicle) math.pi () -- or 3.141592653 math.cos () math.sin ()
-
camera_sync_interval Source wiki mta: How often to tell the server of any client side changes to the local players camera position and target. Probably this function will use this: (getcameraMatrix) at server side. (not client) https://wiki.multitheftauto.com/wiki/GetCameraMatrix What important functions are using this, because I don't know why I should need this. It is only taking bandwidth. I even get the feeling it is some sort of spy camp.
-
https://wiki.multitheftauto.com/wiki/Get ... onProperty
-
I reply this because of andrel his reply. Maybe you want this. addEventHandler("onPickupHit",root,function(player) local theType = getPickupType ( source ) if theType == 2 then giveWeapon ( player, getPickupWeapon ( source ), getPickupAmmo ( source ), false ) elseif theType == 1 then setPedArmor ( player, getPedArmor ( player ) + getPickupAmount ( source )) elseif theType == 0 then setElementHealth ( player,getElementHealth ( player) + getPickupAmount ( source )) end cancelEvent() end) -- the maximum health is 200 and only able to reach that with full skill level. It will probably set to the highest possible health(depends on the skill level). (armor is 100)
-
no, everything server. Gui of course client etc.
-
50P setWeaponProperty(30, "pro", "damage", 1) setWeaponProperty(30, "std", "damage", 1) setWeaponProperty(30, "poor", "damage", 1) -- "poor","std" and "pro" The reason why it did not work in the first place is that all weapons in freeroam(probably) start with differed skill levels. When you change the weapon damage, it will also change the damage vs peds and players. It is possible to reduce it without change the default value, but that will require much and much more scripting skills. I made it, but of course I won't give it to you, because it cost me lots of time.
-
sx,sy = guiGetScreenSize() font = dxCreateFont("tsw.ttf", 20) local screenWidth,screenHeight = guiGetScreenSize() local messagesList = { "LOL MESSAGE", "Server Owner: Sex*", "Have Fun!"--, 1 to much. >>>>>>>>>>>>>>>>>>>>>>>> } local currentMessage = 0 function toggleHideAll() startTimess = getTickCount() addEventHandler("onClientRender",getRootElement(),mapwindowa) end addEventHandler ( "onClientPlayerWasted", localPlayer, function ( ) toggleHideAll ( ) end ) function mapwindowa() local pX, pY, pZ = getElementPosition ( source ) local hours = getRealTime() .hour local minutes = getRealTime() .minute local seconds = getRealTime() .second local sec = getTickCount() / 1 local rotate = math.ceil(sec) * 0.20 deltaTime = (getTickCount()) - startTimess if deltaTime <= 1000 then beta = sy - ((deltaTime/1000)*100) elseif (deltaTime > 1000) and (deltaTime < 4000) then beta = sy-100 end dxDrawRectangle((sx-1400)/2,beta,1400,110,tocolor ( 0, 0, 0, 225 )) dxDrawImage ( screenWidth/1-200, screenHeight/1-100, 140, 100, 'load.png', rotate, 0, 0 ) dxDrawText("Time:"..hours..":"..minutes..":"..seconds,125+(sx-400)/2,beta+50,((sx-400)/2)+400,beta+99,tocolor(255,255,255),2,"default-bold","left","top",true,true,true) dxDrawText(messagesList[currentMessage + 1], screenWidth - 400, 6, screenWidth - 400, 16, tocolor(0, 255, 0, 255), 1, "font", "center", "top", false, false, false) end ) function updateMessage() if (currentMessage == 4) then currentMessage = 0 else currentMessage = currentMessage + 1 end end setTimer(updateMessage, 5000, 0) addEvent (":O", true) addEventHandler (":O", root, function () removeEventHandler ("onClientRender", root, mapwindowa) removeEventHandler ( "onClientPlayerSpawn", getLocalPlayer(), mapwindowa) end ) I found one bug in your table: "Have Fun!", = to "Have Fun!" This small comma is so sneaky, I also forget to add and remove them. If it still does not work, do what mat+ said and tell us the other errors.
-
aha, Well it works very good, I haven't seen hackers since circa 2009.(I am not sure if that is the right year, maybe 2008 too)
-
Will the new detections require more data transfer? Or is it full client side?
-
This should work... How many times does this function get executed? function showBox(text, r, g, b, t) if not r or not g or not b then r, g, b = 255, 255, 255 end if not t then return end local color = tocolor(r, g, b, 255) or -1 if t > 100 then playSoundFrontEnd ( 13 ) boxes[id] = {text, color} timers[id] = setTimer(destroyBox,t,1,id) id = id + 1 outputChatBox("executed!" ) end end
-
and it still does not stop? -- and this? local remove = boxes[ids] remove[1] = nil remove[2] = nil boxes[ids] = nil
-
Did you try to debug your code? /debugscript 3 and add some outputDebugString("....") it is much easier to find the bug. The code looks fine, try: function destroyBox(ids) boxes[ids] = nil outputDebugString(ids .. " is nil") end
-
Well maybe then I should first check your export..... ("test", root,255,0,1000) local R,G,B = 255,0,0 --[[ is it: ]] ("test", root,R,G,B)--? (B can't be higher then 255) --or local time = 2000 local Repeated = 1 local R = 255 --[[ is it: ]] ("test", root,R,Repeated--[[(0= infinity, 1=1x, 2=2x, etc)]],time)--? You can't expect that I know how this hud export fits.
-
Client: https://wiki.multitheftauto.com/wiki/OnC ... ourceStart server: https://wiki.multitheftauto.com/wiki/OnPlayerJoin
-
I normaly don't help my competitors who hosting the same gamemode as me, but here you can download my map: https://community.multitheftauto.com/ind ... ls&id=5643
-
lol the 'vehicle' -_-" I am stupid....
-
To know if the script has been executed the only thing you have to do is: outputChatBox("Works" ) Outside the function. So easy as hell....
