Jump to content

S0rcerer

Members
  • Posts

    19
  • Joined

  • Last visited

S0rcerer's Achievements

Square

Square (6/54)

0

Reputation

  1. Ok Ok . but one problem - my clients cant download resources , at the moment i send them by Email to my friends is empty as i say
  2. Sample server function joinHandler() local x,y,z x = 1959.55 y = -1714.46 z = 16 spawnPlayer(source, x, y, z, 0, 68) createPickup ( x, y, z, 0, 100, 1) createBlipAttachedTo ( source, 0, 2, r, g, b, 140 ) giveWeapon ( source , 32 , 500 ) giveWeapon ( source , 42, 2000 ) giveWeapon ( source , 24, 100 ) giveWeapon ( source , 9, 1 ) createVehicle ( 522 , 1944.7, -1710.08, 13.3, 0, 0, 180 ) fadeCamera(source, true) outputChatBox("W 46!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!W 46!!!!!!!!!!!!!!!", source) end addEventHandler('onPlayerJoin', getRootElement(), joinHandler) in this server players get into the vehicles and fight by weapons , but sometimes it works and sometimes not , i mean that sometimes vehicles didnt take any damage.Can you explain it to me?
  3. THANKYOU!THANKYOU!THANKYOU!THANKYOU!THANKYOU!THANKYOU!
  4. then i must change UDP to TCP\UDP in the NAT paramets of router?
  5. Help please i do these things: 1 In the router setup Advanced setup -> NAT -> Add .Then Server Name: Custom Server: "MTA Server", Server IP Address: 192.168.1.3 External port start: 22006 ,External port end: 22006, Protocol: UDP , Internal port start: 22006 ,Internal port end: 22006. And second for ASE Server Name: Custom Server: "MTA Server", Server IP Address: 192.168.1.3 External port start: 22129 ,External port end: 22129, Protocol: UDP , Internal port start: 22129 ,Internal port end: 22129. 2 IN Firewall setup I add program MTA Server and port: Name:Multi Theft Auto.exe Port: 22006 Port UDP 3 In mtaserver.conf Server Name: MTA Server Server Ip is empty Server port: 22006 httpserver: 1 httpport: 22006 httpdownload: 1 httpdownloadurl is empty ase : 1 In this paramets server is not seeing in ASE , in game-monitor with registration ,and i can not connect on another computer "connection timeout"
  6. How to convert sring to intenger or intenger to string?
  7. event "onClientMarkerHit" doesnt work this is my scripts server function consoleCreateMarker ( thePlayer, commandName ) if ( thePlayer ) then local x, y, z = getElementPosition ( thePlayer ) -- get the player's position -- create a cylindrical marker next to the player: createMarker ( x + 2, y + 2, z, "cylinder", 1.5, 255, 255, 0, 170 ) if ( theMarker ) then -- check if the marker was created successfully outputConsole ( "Marker created successfully", thePlayer ) else outputConsole ( "Failed to create marker", thePlayer ) end end end addCommandHandler ( "createmarker", consoleCreateMarker ) function joinHandler()--скинуть игрока local x,y,z x = 1959.55 y = -1714.46 z = 16 spawnPlayer(source, x, y, z, 0, 114) createPickup ( x, y, z, 0, 100, 1) createBlipAttachedTo ( source, 0, 2, 255, 0, 0, 140 ) giveWeapon ( source , 32 , 500 ) giveWeapon ( source , 42, 2000 ) giveWeapon ( source , 24, 100 ) giveWeapon ( source , 9, 1 ) fadeCamera(source, true) outputChatBox ("Welcome to hell", source) end addEventHandler('onPlayerJoin', getRootElement(), joinHandler) it is example from Wiki and client script function MarkerHit ( hitPlayer, matchingDimension ) outputChatBox ( getPlayerName(hitPlayer) .. " entered a marker" ) end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) help please
  8. And how remove this problem? Can you edit my script, please
  9. I have this problem again: function skinner ( ) wdwLogin = guiCreateWindow(5, 55, 4, 3, "Please Log In", false) end addEventHandler ( "onPlayerVehicleEnter", getRootElement ( ), skinner ) server log writes this [17:47:31] ERROR: ...server/mods/deathmatch/resources/myserver/script.lua:333: attempt to call global 'guiCreateWindow' (a nil value)
  10. I create the script but i dont know why functions "giveWeapon ( ThePlayer, 24, 100 )","utputChatBox ("You portaled to mount", ThePlayer )" work, but "spawnplayer ( ThePlayer, -2351.5, -1630.8 , 483.6)" or "killplayer ( ThePlayer)" doesn't work.Read script and help me please. function portal ( ThePlayer, matchingDimension ) outputChatBox ("You portaled to mount", ThePlayer ) createBlipAttachedTo ( ThePlayer, 0, 2, 6, 0, 0, 140 ) giveWeapon ( ThePlayer, 32 , 500 ) giveWeapon ( ThePlayer, 42, 2000 ) giveWeapon ( ThePlayer, 24, 100 ) giveWeapon ( ThePlayer, 1, 1 ) killplayer ( ThePlayer) end addEventHandler("onMarkerHit", getRootElement (), portal )
  11. Sorry, i didnt say that it is my server) I my new conf file is <config> <!-- This parameter specifies the name of the server, visible in the ingame server browser or in ASE. It's a required parameter. --> <servername>Sorcerer's</servername> <!-- Apears to be 192.168.1.33. This parameter specifies the IP address on which the server. It's useful for servers which have multiple IP addresses attached to them. If left blank, it will default to server's standard local IP. --> <serverip></serverip> <!-- This parameter specifies the Maximum Transmission Unit or maximum packet size that the server will use. This will depend on the nature of your clients, as well as the network medium your server is connected to. --> <mtusize>1264</mtusize> <!-- This parameter specifies the UDP port on which the server will be accepting incoming player connections; default value: 22003. It's a required parameter. --> <serverport>22004</serverport> <!-- This parameter specifies the number of maximum player slots available on the server; default value: 32. It's a required parameter. --> <maxplayers>32</maxplayers> <!-- This parameter specifies whether the builtin http server is going to be used. Values: 0 - disabled , 1 - enabled ; default value: 1. Optional parameter. --> <httpserver>1</httpserver> <!-- This parameter specifies the TCP port on which the server will be accepting incoming http connections. It can be set to the same value as <serverport>. It's a required parameter if <httpserver> is set to 1. --> <httpport>22005</httpport> <!-- This parameter specifies whether connecting players will be able to download needed resources for them from an external site rather than from the server. 0 - disabled , 1 - enabled; default value: 0. --> <httpdownload>1</httpdownload> <!-- If set, this parameter specifies the external URL from which clients will be able to download needed resources ingame. Required parameter if <httpdownload> is set to 1. --> <httpdownloadurl></httpdownloadurl> <!-- This parameter can be used to make the server report to ASE master servers, allowing it to be visible in the ingame server browser. An additional UDP port needs to be available for this to work (value from <serverport> + 123 , so on a default <serverport> value 22003 the right port will be 22126 ). Available values: 0 - disabled , 1 - enabled. Optional parameter, defaults to 0. --> <ase>1</ase> <!-- If set, players will have to provide a password specified below, before they can connect to the server. If left blank, server doesn't require a password from them. --> <password></password> <!-- Specifies a location and name of the main server log file. If left blank, server won't be saving this file. --> <logfile>logs/server.log</logfile> <!-- This parameter specifies a location and name of the Access Control List settings file. If left blank, server will use acl.xml file. --> <acl>acl.xml</acl> <!-- Specifies a location and name of the debugscript log file. If left blank, server won't be saving this file. --> <scriptdebuglogfile>logs/scripts.log</scriptdebuglogfile> <!-- Specifies a level of the debugscript log file. Available values: 0, 1, 2, 3. When not set, defaults to 0. --> <scriptdebugloglevel>0</scriptdebugloglevel> <!-- Specifies a level of the html debug. Available values: 0, 1, 2, 3. When not set, defaults to 0. --> <htmldebuglevel>0</htmldebuglevel> <!-- Specifies the module(s) which are loaded with the server. To load several modules, add more <module> parameter(s). Optional parameter. --> <!-- <module>sample_win32.dll</module> --> <!-- <module>sample_linux.so</module> --> <!-- Specifies resources that are loaded when the server starts and/or which are protected from being stopped. To specify several resources, add more <resource> parameter(s). --> <resource src="admin" startup="1" protected="0"/> <resource src="helpmanager" startup="1" protected="0"/> <resource src="mapcycler" startup="1" protected="0"/> <resource src="mapmanager" startup="1" protected="0"/> <resource src="resourcebrowser" startup="1" protected="1" default="true"/> <resource src="resourcemanager" startup="1" protected="1"/> <resource src="scoreboard" startup="1" protected="0"/> <resource src="spawnmanager" startup="1" protected="0"/> <resource src="votemanager" startup="1" protected="0"/> <resource src="webadmin" startup="1" protected="0"/> <resource src="freeroam" startup="1" protected="0"/> <resource src="bombshopadv" startup="1" protected="0"/> <resource src="givemecash_by_nitos" startup="1" protected="0"/> <resource src="deathpickups" startup="1" protected="0"/> <resource src="welcome_window" startup="1" protected="0"/> <resource src="kchaticon" startup="1" protected="0"/> </config> I can connect only with 127.0.0.1 , but another players cannot connect using my IP from http://www.whatismyip.com And i cannot find my server in Game-monitor.com (
  12. How to change server ?What do you mean?
  13. S0rcerer

    petrol tank

    In general GTA SA if you shot in the petrol tank , vehicle blows.How to create the script to do the same thing in the MTA?
  14. I want to create server to play with my friends by internet, i read WIki but i have some questions: 1 what ip i must write to mtaserver.conf? 2 When i quick join to server what IP i must write?
  15. I write the script to spawn the player ,when he enters the command in the console.But it is not good.Can someone help me to create the script to spawns the player after he died
×
×
  • Create New...