-
Posts
72 -
Joined
-
Last visited
Posts posted by Rouzbeh
-
-
7 minutes ago, DiSSGen said:
tell your players install HTML Debugger
maybe your problem will be solved
i'll give it a try
-
29 minutes ago, Fire Monkey said:
No, I have a trick to load the login page for all players.
If you give me your code, I can help you.
No
Anyone Else? -
3 minutes ago, Fire Monkey said:
Please show me your code
no there isn't any problem inside the code
I mentioned it in last posts, its something related to windows i think...
-
1 hour ago, Fire Monkey said:
You probably have an event for trigger load login panel ?!
yes, its a custom event
-
19 hours ago, Patrick said:
What is the error in debugscript?
as i said that doesn't work for some players not all, and for me it's just ok
and there is no debug error, becuz it's client-side for those players
i think there must be something on windows apps/settings they are using? is it possible?
-
Hii
i have a weird problem with gui-Browser, i'm using [HTML/CSS/JavaScript] in Login Panel, but browser simply doesn't show up for some players so they can't login and so oni used this:
local screenWidth, screenHeight = guiGetScreenSize() local page = "http://mta/local/index.html" initBrowser = guiCreateBrowser(0, 0, screenWidth, screenHeight, true, true, false) theBrowser = guiGetBrowser(initBrowser) screenW, screenH = guiGetScreenSize() addEventHandler("onClientBrowserCreated", theBrowser, function() loadBrowserURL(source, page)
what can cause this?
-
On 13/05/2020 at 00:11, Knot Host said:
Please provide your CPU details including RAM,SSD,Processor, CPU Core etc.
3.9 GHz + will be perfect for gameservers.
E5-2680 V2 (Turbo Not Enabled)
500 SSD
32GB Ram ECC
-
Hi There
i don't know if this article is good for my Topic or not...
But What CPU Information Is Important For Mta Server Performance? Clock Speed And Cache or What? and Which is More Important ?
my Scripts Are Optimized, But In My Experience, 2.8Ghz Is Not Very Good For 400 Players...
-
Lag shots like lag spikes where players freeze and the fps drops for a few milliseconds/seconds? that's a typical sign of a CPU intensive task, either your scripts are :~ or your host is :~, if you think it's the last then upgrade to something better otherwise check your scripts and look for heavy :~.
Cpu(s): 9.9%us, 2.1%sy, 0.0%ni, 86.3%id, 1.0%wa, 0.3%hi, 0.3%si, 0.0%st
Mem: 1020124k total, 924948k used, 95176k free, 148540k buffers
Swap: 2097148k total, 28256k used, 2068892k free, 329600k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
26346 root 20 0 1108m 294m 5536 S 11.6 29.6 4111:29 mta-server64
-
-
hi
sometimes giveweapon not sysnce for all players and players doesn't get damage...
for example player 1 shoot player 2 with deagle but player 2 not damage and see player 1 boxing with free hands!
sometimes is okay and sometimes bug!
whats the problem?!
-
You can't do that as you will also detect "I need 25 $". Dude you are going too far with that Anti-ip advertisement ! And "My ip is 180" is not an IP so how can it be an advirtisement ?
You are going to ban all numbers on your server.
Trust me , i had sa-mp server for many years and saw players advertise like this:
ip: 185
87
183
90
(press enter instead of '.' or write ip without '.'
i dont want ban numbers, i just wanna it report it to admins
-
What do you mean by detect when a text contains numbers higher than 10? You could loop through text and count numbers (or do you want to know how long the string is?)
For Example You Write: "my ip is 110 229 10 30" OR say "ip is 180", i want it be detected
-
hello guys.
i am looking for best way to detect ip in strings
and also i want it detect when a text contains numbers higher than 10
help plz?!!!
-
hi again
i need some idea for make vehicles undamagable or damage proof while vehicle is empty
i had tried cancelEvent on 'onVehicleDamage' and its okay , vehicle health does'nt change, BUT vehicle's appearance take damage like doors hood glasses and etc...
this is important for me cuz im working on RPG Server...
any idea how to prevent that?
-
yes i did tried dealman's way and i have an idea:
i have a car alert system and i can add and put ped in vehicle when player lock his/her vehicle from outside and remove when unlock...
so players can't push personal vehicles when that vehicle locked ...
i think this is best way...
-
It's a bit of an weird way to do it, but I guess you could get the position and set it everytime it changes but it'll be too server or client intensive I guess.
hmm, this way have problems like when an another car hit or accident to the car will not move.... and maybe more bugs happend...
as i know that rp server did'nt freeze car... server name was: Owl-Gaming
-
I'm not sure if that is possible, I'm afraid. You could try to mess around with the vehicle handling, though I never got any decent successes.
i saw that in a MTA RP Server! and was very cool system
i already tried increase mass of vehicle but not work....
-
Hi, im working on a rpg server. i want when a player do handbrake then players can't Push that vehicle (just players, not other vehicles),
i have vehicle system include handbrake and etc , just need an idea for how to make this 'Anti Vehicle Pushing'?
i did tried freeze vehicle, but this is not good idea and socks for RPG...
-
The best way to do it is probably to create a command that saves data (maybe stopping work and afk resource first?) and then closes the server.
Something like this:
local resourcesToWaitFor = { "work", "afk" } local waitingForResources = {} local doShutdown = false addCommandHandler("safeshutdown", function(player) outputChatBox("Safely shutting down the server...") for k, resourceName in ipairs(resourcesToWaitFor) do local resource = getResourceFromName(resourceName) if(resource)then waitingForResources[resource] = true end end doShutdown = true for resource, resourceWaitState in pairs(waitingForResources) do stopResource(resource) end end, true, false) addEventHandler("onResourceStop", root, function(stoppedResource) if(doShutdown and waitingForResources[stoppedResource])then waitingForResources[stoppedResource] = false for resource, resourceState in pairs(waitingForResources) do if(resourceWaitState)then return false end end shutdown("The server has safely been shutdown.") end end)
Make sure the resource has the rights to use the shutdown function, etc.
ow very thanks, finally... u got my means
-
Are you sure it's named 'sql' and it is running for sure? The error message clearly states it isn't running.
come on!!!...
i Said when i shutting Down Server so all resources stop ...
i add "onResourceStop" event to save data to database, im not noob at all, but i just looking for a way can set a resource stop at last as others when i shut down mta server!
Server stopped! [2016-01-03 03:06:15] Stopping resources................................................. [2016-01-03 03:06:19] ERROR: work\server.lua:27: exports: Call to non-running server resource (sql) [string "?"] [2016-01-03 03:06:19] ERROR: afk\Server.lua:49: exports: Call to non-running server resource (sql) [string "?"] [2016-01-03 03:06:27] Closing SQLite3 database
here sql resource stoped before 'work' and 'afk' resources so "onResourceStop" could'nt do export.sql:something()...
i want set 'sql' Resource close after all resources
-
Try This:
function render() if isPedInVehicle(localPlayer) then local vehicle = getPedOccupiedVehicle (localPlayer) local occupants = getVehicleOccupants(vehicle) local PlayerName = getPlayerName(localPlayer) local VehicleName = getVehicleName (vehicle) local cnt = 0 for i=0, 3 do if occupants[i] and isElement(occupants[i]) then cnt = cnt + 1 else break end dxDrawText(" #FF0000PASSAGEIROS: #FFFFFF" .. tostring(cnt) .. "/4 ", x*870, y*640, x*716, y*351, tocolor(255, 255, 255), x*1.7, "default-bold", "center", "top", false, false, false, true) end end end addEventHandler("onClientRender", root, render)
-
You must start sql resource.
sql is running on server, i need when i shut down server, sql resource close at last and after all resources
[This was Happend because sql resource closed before those resources]
-
hi
i have this problem when shutting down server:
ERROR: work\server.lua:27: exports: Call to non-running server resource (sql) [string "?"] ERROR: afk\Server.lua:49: exports: Call to non-running server resource (sql) [string "?"]
i am using mysql saving system and in sql resource connect to mysql...
so how i can prevent this error?
[Help] gui-Browser load Problem
in Scripting
Posted
no