Jump to content

kidvnet

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by kidvnet

  1. well, look like u got wrong idea. what I mean is that I guess MTA:SA only bind one ip address with HTTP server, which does not respond the request from other IP address. because the technician told me they did not block any connection.
  2. my server have two ip carry by two totally different ISP, only one ip address can access to internal http server to download file or management. if a player can only connect to the other one and he cannot access to the main ip, the result is he cannot download file from the main ip address.
  3. i tried a few of maps, which work perfect in rotation. maybe test more later If I find a problem I will fix it. by the way can u consider about the new suggestion about client fetchremote function. because I really need this function
  4. well, figured it out..I put it on wiki, there is the link https://wiki.multitheftauto.com/wiki/Quaternion hope it is helpful for you guys
  5. What do you mean? You could use your clients to target someone and send constant requests. The actual reason for the limitation is security. how about adding a ip address which is defined by external URL ( ) from mtaserver.conf. if this URL does not belong to me, the resources donwload wouldn't work
  6. hey, there Recently I have script a automatic mod loader,which need to summary files detail (by php without meta.xml)from remote ftp server and download all of files from ftp server. it doesnt work, because the client cant fetch remote anything from remote server. due to the limit of host bandwidth,I dont want to player download any file from host. so can u update this function to allow client download file from remote? thank so much!
  7. I tried to copy some maps from GTA SA, due to there is no function support to create a object by quaternions rotation. as we all know that IPL file from mtasa is based on quaternions for rotation. I have tried lots of algorithm but I failed. So I hope the mtasa can provide a function which can create a object based on quaternions rotation Thanks a lot !
  8. on client resource started check is player join the server first time, which I have give you a example above if so, create a AT-400 local plane = createVehicle( id, x,y,z) -- create a AT-400 --create a camera to plane cam = getCamera() setElementPosition( cam, 0,0,0 ) -- Clear camera target attachElements( cam, plane , 0,-4,2, -20,0,0 ) -- set camera focus on the plane -- let the plane fly local origX, origY, origZ = getElementPosition ( plane ) --get the origanal position local newZ = origZ + 100 -- make a new z position, so on for x,y moveObject ( theObject, 10000, newX, newY, newZ ) --move the object to this position in 10 seconds. the camera will focus on the plane when the plane is flying. after that you can set a 10s timer to destory all of those elements and shows up your login panel.
  9. https://community.multitheftauto.com/in ... ls&id=8064 here is a example, inside some function, which meet your requirements. hope it is helpful
  10. is this a server side script? if so, of course it will remove the colshape for all of players. because the hillarea is a server side element which sync to all of players
  11. kidvnet

    Question

    I think the getPedSkin function have already been removed in mtasa 1.4. try to use getElementModel and setElementModel
  12. kidvnet

    Question

    spawnPlayer (source, 1182.04358, -2223.13159, 43.62173, math.random(0,360),tonumber(playerSkin),0, 0, nil) replace line 5
  13. kidvnet

    Question

    outputChatBox("playerAccount is:"..tostring(playeraccount).."Skin is"..tostring(playerSkin),source,0,255,0,true) put this on line 6, and see what will happen
  14. Error shows up on client 1.4, the last force update
  15. kidvnet

    SQL Question

    well, there should be some way to do that. but I do not know. what I can say ,based on my personal understanding about database,is that the process what you talking about is meanness.the row is a kind of count,not a element or a location of database. so u cannot do anything to the the 'row' you got from 'select' query. however mysql_fetch_assoc function can make a data table from the row which u got from select query. which is fantastic, isn't it
  16. look like you get wrong idea, your script will never work. first, the timer will start when you call the function payMoneyTimer(), if you dont call the function, no timer. second in the function payMoney(), who is the source, you did not declare that. third if this is a client script. givePlayerMoney() does not change the money on serverside I am going show you a quick example, hope that is helpful for server, you need create a script to handle a event for adding money to player function onPlayerWant24Money () givePlayerMoney(source,10000) end addEvent( "onPlayerWant24Money", true ) addEventHandler( "onPlayerWant24Money", root, onPlayerWant24Money) for client, you need create a script to set a timer for player to call a server event to add money for him every 24 hours function require24Money () triggerServerEvent ( "onPlayerWant24Money", localPlayer) end setTimer( require24Money,86400000,0) the timer will be set on clinet after player join in, and disappeared after player quit or disconnected
  17. the target is a string follow your command(/getp xxxxx) which is not a element, if the string is a player name. u need do getPlayerFromName ( string playerName ) first. function getPlayerPoints (player, cmd, target) if saveMethod == "database" then if target then local serial = getPlayerSerial(getPlayerFromName(target)) local points = executeSQLSelect ( "Punktesystem", "points","serial = '" .. serial .. "'") outputChatBox ( points, target, 255, 0, 0, true ) if points then return tonumber(points[1]["points"]) else outputDebugString("Pointsystem - getPlayerPoints (Db Problem") end else outputChatBox("Error: /getp [player name]", player, 255, 0, 0) end end end addCommandHandler("getp", getPlayerPoints)
  18. kidvnet

    SQL Question

    actually, I did not totally understand what is your question. But the reason why we usually looking for the row before we update value is to avoid to update value for some rows have the same condition(WHERE blabla). you can do the way u said ,UPDATE `myTable` SET `myColumn` WHERE blabla. just make sure that 'where' condition only get one single row.
  19. I check your other topic on https://forum.multitheftauto.com/viewtopic.php?f=106&t=79144 from the third one debug info I can see that you may have lots of vehicles or tents in server. and the data saving took very very long time. there is a function on login.lua called doBackup() , which is use to save some data such as vehicles and tents. it will have lots of loop function to find those elements in server and to save them in database one by one. WARNING: Long execution (DayZ) this means there are lots of loop function. from your server log, the obviously things is your server took about 2 mins minutes to stop resources and 12 minutes for data saving. if your hard drive is working fine that is impossible. Only thing I can tell you is that you have too many vehicles and tents in your server! only solution is to clear your database. or diable the backup timer by set gameplayVariables["backupenabled"] = false in editor_server.lua
  20. I have same experience. what I did is to read the dump file. even it was encrypted. finally I found some information just above the hardware description. there is a resource name, which was a dayZ addon for anti-corpse-copy. I guess maybe some variables or data table overflow. so later I write a script to restart that resource every half hour. now the server is never crash
  21. the opinion 2 is a kind of jokes, because so far what I known is that LUA script only running on a single processor. doesn't matter how many cores how big ram you have, which is meaningless. From the info you provide to me. it look like the zombie didnot spawn correctly. and there are lots of timer in the script of "slotbot" delete many element which didnot exist. which could cause a huge lag for player, but this cannot be a major issues which lead to disconnection there is the wiki page for error code: https://wiki.multitheftauto.com/wiki/Error_Codes in most of situation. disconnection is caused by some script freeze, too many players load resources and firewall setting. for deep-step troubleshooting 1. search "flood" in your server.log to check is there any one attack you server 2. install some app such as "iptraf" or "iftop" to monitor your bandwidth usage 3. disable the firewall by "service iptables stop" 4. check dump file if server crash or freeze 5. update your mtasa server version 6. monitor the performance of mtasa through web control panel if you can, upload your server log in dropbox.
  22. also u can change the zombie spawn rate by editing editor_server.lua gameplayVariables["playerzombies"] the max zombies spawn for single player gameplayVariables["amountzombies"] the max zombies spawn once my setting is 6 and 3. which cost 60% cpu usage when about 80 player, if network is bad will need more cpu usage to sync zombie movement to player
  23. well I think you should post the debug info during kicking player
×
×
  • Create New...