Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Rouzbeh

  1. no there isn't any problem inside the code I mentioned it in last posts, its something related to windows i think...
  2. 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?
  3. 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 on i 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?
  4. E5-2680 V2 (Turbo Not Enabled) 500 SSD 32GB Ram ECC
  5. 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...
  6. Rouzbeh

    Lag Shot

    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
  7. Rouzbeh

    Lag Shot

    hi i have big problem in my own server. all players have lag shot!!! why?
  8. Rouzbeh

    Weapon Bug!

    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?!
  9. 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
  10. For Example You Write: "my ip is 110 229 10 30" OR say "ip is 180", i want it be detected
  11. 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?!!!
  12. 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?
  13. 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...
  14. 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
  15. i saw that in a MTA RP Server! and was very cool system i already tried increase mass of vehicle but not work....
  16. 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...
  17. ow very thanks, finally... u got my means
  18. 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
  19. 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)
  20. 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]
  21. 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?
  • Create New...