-
Posts
6,097 -
Joined
-
Last visited
-
Days Won
218
Everything posted by IIYAMA
-
yes, but he define it: function assignNewTeam ( source, _, playername, teamname ) I would have written it as player, because a source can be a lot.
-
A sample how you can do it: local tickCount = 0 addCommandHandler("hey", function() if getTickCount() - tickCount >= 1000 then outputChatBox("hey") tickCount = getTickCount() end end)
-
WIKI getTickCount Client and Server function This function returns amount of time that your system has been running in milliseconds. By comparing two values of getTickCount, you can determine how much time has passed (in milliseconds) between two events. This could be used to determine how efficient your code is, or to time how long a player takes to complete a task. Clear?
-
You probably right, Then it seems he is at the wrong forum, let him use sa-mp editor if it ever exist. Stupid sa-mp users, I still don't understand why they play sa-mp, it triple sucks, it laggs like hell, low security for hackers, sa-mp scripting fails and they are using mta editor for their own benefit. thieves...
-
Why don't you quit gta san, it is boring.
-
I just did, you scripted that, then it won't be hard to add these few lines. else it isn't your script. ("motax: I just made a script") Good luck
-
Note: the player can leave while the timer is running. = warning/error setTimer (function () if isElement(source) then setControlState (source, "forwards", false) toggleAllControls (source, true) end end, 10000, 1) The source can be used with in the timer-function, the data stays within the block. It will be erased after everything has ended within the block. Block Btw: make sure there is an event else probably there won't be a source.
-
https://wiki.multitheftauto.com/wiki/GetTickCount local tickCount = 0 if getTickCount() - tickCount >= 1000 then tickCount = getTickCount() end Recommended to use this on client side cause of the trigger, it will save you some bandwidth.
-
hex code is counted as characters, even if the last argument is true.
-
Not really precisely, cause you only check the amount of fps from one pre-frame, not from a second. But the good thing about it, that it shows us direct big fps drops, I tried that part of you. It jumps from 66 t/m 56, my fps is stable and it makes changes with 10 fps. but it detect big fps drops directly:(I tried this) local updateTick,lastFPSUpdate = 0,0 addEventHandler ("onClientPreRender", root, function (dt) local fps = math.floor ( 1000 / dt ) if lastFPSUpdate-fps > 30 and (not updateTick or getTickCount () - updateTick > 500) then updateTick = getTickCount () outputChatBox("big fps drop") end lastFPSUpdate = fps end) @abxf, local counter = 0 local starttick local fps =0 addEventHandler("onClientRender",root, function() if not starttick then starttick = getTickCount() end counter = counter+1 if getTickCount() - starttick >= 1000 then fps = counter starttick,counter = false,0 end dxDrawText(""..fps.."", 898, 689, 1018, 736, tocolor(0, 255, 0, 255), 1.00, "default", "left", "top", false, false, true, false, false) end )
-
https://wiki.multitheftauto.com/wiki/BindKey https://forum.multitheftauto.com/viewtopic.php?f=91&t=62901 You already have an answer on that question.
-
It isn't, more handlers give more lagg. onClientRender is just fine, you don't need to calculate so much, for so little improvements with the correct timing. But it is nice that there is another way of doing.
-
Then you simply don't have rights for that, the server will ignore it and that will be visible in the debug.
-
https://wiki.multitheftauto.com/wiki/Dx ... rialLine3D
-
ah yes thank you, thank you, thank you I thought tocolor would convert also to hex numbers so I only had to add #.
-
why would you add more localPlayer? the source will be the player.
-
One of the last things I have to learn is working with strings, I still hate that part because I always make a lot of mistakes with it. local defaultColour = tocolor(255,255,255) outputChatBox(tostring("#" .. defaultColour) .. "hoi",255,255,255,true) I have simply no idea what is wrong. My brain is a little bit roasted, (it feels like that) result :
-
ah good idea, thx man
-
ah yes, you are right. But I have 1000+ fonts and most of them are otf.(I am studying for graphical designer) letters are ugly.... Pity
-
it is an OpenType-Lettertypefile Can't mta send every file?
-
http://img18.imageshack.us/img18/5720/zgn0.png meta.xml <file src="MrsEavesOT-Bold.otf"/> lua file addEventHandler("onClientResourceStart",resourceRoot, function () font = dxCreateFont( "MrsEavesOT-Bold.otf") end)
-
np. (I am just one guy )
