Jump to content

Sol

Coders
  • Posts

    117
  • Joined

  • Last visited

  • Days Won

    16

Everything posted by Sol

  1. et.ClientNumberFromString works indeed so, there is mistake in doscs. something like shrubbot file but for lua, because shrubbot would be have errors probably yes?
  2. G_ClientNumberFromString is bugged, you can do it by yourself or just search algorithm for it. this is my small API ( http://mygamingtalk.com/forums/topic/2018-small-lua-server-api/?do=findComment&comment=8157 ) a lot of easier with it but you can also use et.trap_SendServerCommand( clientnum, 'print "text"' ) it's exactly what do you want "print" printing text into client's console. It's possible to use shrubbot into LUA too, but its some work to do then you have to prase it and use it.
  3. Its waste of time, better to get it from ( sess.sessionTeam ent ) a lot of faster and easier.
  4. Here you are: http://code.google.com/p/acqu-etsdk-codebase/source/browse/tags/luascripts/wsi.lua You have to add silent's weapons def, didn't test it but believe that it will work.
  5. Yes, it's true. But I can't working on it longer cuz the project went in diff way as I expected. Additionally we can't share it cuz there are a lot of TB's tracking method things. We contacted on the licensing of Q3engine, but we got no reply ( its really sad ). Anyway, IRATA discourages peoples to use it and he blocks the possibility to run it on his mod. I revived the ETENG project cuz I want to help this lovely game and I learning at the same time.
  6. it will be fixed completely in my next version of ETENG, ( its already fixed ), but I can't release it now cuz my server is dead ( still waiting for recovery ). ETENG new version will include a few new optimizations and built-in server facade.
  7. Sol

    Requests

    It's good idea! I also wanted to edit it on your server, but its ofc not accessible from LUA level. weaponDef configuration is a good solution like in NQ.
  8. Yep, its not possible to send "easy" custom information via ui cmd to server.
  9. http://screenshooter.net/data/uploads/oh/nx/uiku.jpg I can't explain it better.
  10. Hello, I searched the source code, UI macross and I didn't find any UI Macro with empty execute cmd. Generally I mean that it would be very usefull to create UI's custom cmds for LUA. I want to create UI frame with string and I want to send string to server, and I can't do it, because I can send it only by callvotes. This should be look like this else if ( Q_stricmp( name, "customcmd" ) == 0 ) { trap_Cmd_ExecuteText( EXEC_APPEND, va( "%s\n", trap_Cvar_VariableValue( "ui_customcmd" ) ) ); } Then you can send everything by this and catch it by LUA. It is very helpful in making many kinds of UI frames for clients.
  11. Yes, it improves prediction a little. Yes, as Dragon said 'when doing strafe jumps' then its lagging because of prediction. It is fully fixed a long time ago on etpro and jaymod also, but etrun fix it too. More informations: ( https://github.com/boutetnico/ETrun )
  12. If you are using Linux It will be just ./etded +set dedicated 2 +set net_ip <your_ip> +set net_port <your_port> +set fs_game silent +set fs_basepath <path to your server> +set fs_homepath <path to your server> +exec silent.cfg while one the windows, just etded instead of ./etded command
  13. http://filebase.trackbase.net/et/server/et300_README.txt
  14. This was to be fixed in this version but we were forced to release version without this because it fix one of the critical bug. As Gaoesa said this is the problem of the engine and 'mod' can't fix it
  15. Yes, by extract ( password ) from client's userinfo. If the client is a private then password will be equal to privatepassword. Server automatically reserves slots for private_clients, from 0 slot to ( sv_privateClients - 1 ), clients connecting to non-private slots server automatically puts them to any free slot from ( sv_privateClients - 1 ) slot_numer.
  16. Like Dragon said, its probably by QMM. I had similar problems with QMM, better to use et300 instead of QMM. We fixed a few bugs similar like in QMM
  17. I am pleased to present my small API library that i use in my scripts on my server. Purpose of my API is a shortening of the long additions to server and simplify their. The API is entirely written by me, any questions or suggestions, please write here. If you want to use it, just simply type in your script require("server_api") server_api.zip
  18. This will be fixed in new version of ET 3.00. ( 0.6.5 version ).
  19. sess.aWeaponStats doesn't exists and its impossible to get player's stats
  20. I didn't test it yet, probably doesn't work because of et.trap_SendServerCommand() func. try to replace et.trap_SendServerCommand( num, string.format("c %s ^wis from %s", et.gentity_get(target, "pers.netname"), countries[uci]) ) to et.trap_SendConsoleCommand( et.EXEC_APPEND, string.format("chat %s ^wis from %s\n", et.gentity_get(target, "pers.netname"), countries[uci]))
  21. This will only work if the uci numbers = Countries table -- Author Sol countries = { [0]= "Unknown", [1]= "Asia/Pacific Region", [2]= "Europe", [3]= "Andorra", [4]= "United Arab Emirates", [5]= "Afghanistan", [6]= "Antigua and Barbuda", [7]= "Anguilla", [8]= "Albania", [9]= "Armenia", [10]= "Netherlands Antilles", [11]= "Angola", [12]= "Antarctica", [13]= "Argentina", [14]= "American Samoa", [15]= "Austria", [16]= "Australia", [17]= "Aruba", [18]= "Azerbaijan", [19]= "Bosnia and Herzegovina", [20]= "Barbados", [21]= "Bangladesh", [22]= "Belgium", [23]= "Burkina Faso", [24]= "Bulgaria", [25]= "Bahrain", [26]= "Burundi", [27]= "Benin", [28]= "Bermuda", [29]= "Brunei Darussalam", [30]= "Bolivia", [31]= "Brazil", [32]= "Bahamas", [33]= "Bhutan", [34]= "Bouvet Island", [35]= "Botswana", [36]= "Belarus", [37]= "Belize", [38]= "Canada", [39]= "Cocos (Keeling) Islands", [40]= "Congo-Kinshasa", [41]= "Central African Republic", [42]= "Congo-Brazzaville", [43]= "Switzerland", [44]= "Cote D'Ivoire", [45]= "Cook Islands", [46]= "Chile", [47]= "Cameroon", [48]= "China", [49]= "Colombia", [50]= "Costa Rica", [51]= "Cuba", [52]= "Cape Verde", [53]= "Christmas Island", [54]= "Cyprus", [55]= "Czech Republic", [56]= "Germany", [57]= "Djibouti", [58]= "Denmark", [59]= "Dominica", [60]= "Dominican Republic", [61]= "Algeria", [62]= "Ecuador", [63]= "Estonia", [64]= "Egypt", [65]= "Western Sahara", [66]= "Eritrea", [67]= "Spain", [68]= "Ethiopia", [69]= "Finland", [70]= "Fiji", [71]= "Falkland Islands (Malvinas)", [72]= "Micronesia", [73]= "Faroe Islands", [74]= "France", [75]= "France, Metropolitan", [76]= "Gabon", [77]= "United Kingdom", [78]= "Grenada", [79]= "Georgia", [80]= "French Guiana", [81]= "Ghana", [82]= "Gibraltar", [83]= "Greenland", [84]= "Gambia", [85]= "Guinea", [86]= "Guadeloupe", [87]= "Equatorial Guinea", [88]= "Greece", [89]= "South Georgia and the South Sandwich Islands", [90]= "Guatemala", [91]= "Guam", [92]= "Guinea-Bissau", [93]= "Guyana", [94]= "Hong Kong", [95]= "Heard Island and McDonald Islands", [96]= "Honduras", [97]= "Croatia", [98]= "Haiti", [99]= "Hungary", [100]= "Indonesia", [101]= "Ireland", [102]= "Israel", [103]= "India", [104]= "British Indian Ocean Territory", [105]= "Iraq", [106]= "Iran", [107]= "Iceland", [108]= "Italy", [109]= "Jamaica", [110]= "Jordan", [111]= "Japan", [112]= "Kenya", [113]= "Kyrgyzstan", [114]= "Cambodia", [115]= "Kiribati", [116]= "Comoros", [117]= "Saint Kitts and Nevis", [118]= "North Korea", [119]= "South Korea", [120]= "Kuwait", [121]= "Cayman Islands", [122]= "Kazakhstan", [123]= "Laos", [124]= "Lebanon", [125]= "Saint Lucia", [126]= "Liechtenstein", [127]= "Sri Lanka", [128]= "Liberia", [129]= "Lesotho", [130]= "Lithuania", [131]= "Luxembourg", [132]= "Latvia", [133]= "Libya", [134]= "Morocco", [135]= "Monaco", [136]= "Moldova", [137]= "Madagascar", [138]= "Marshall Islands", [139]= "Macedonia", [140]= "Mali", [141]= "Burma", [142]= "Mongolia", [143]= "Macau", [144]= "Northern Mariana Islands", [145]= "Martinique", [146]= "Mauritania", [147]= "Montserrat", [148]= "Malta", [149]= "Mauritius", [150]= "Maldives", [151]= "Malawi", [152]= "Mexico", [153]= "Malaysia", [154]= "Mozambique", [155]= "Namibia", [156]= "New Caledonia", [157]= "Niger", [158]= "Norfolk Island", [159]= "Nigeria", [160]= "Nicaragua", [161]= "Netherlands", [162]= "Norway", [163]= "Nepal", [164]= "Nauru", [165]= "Niue", [166]= "New Zealand", [167]= "Oman", [168]= "Panama", [169]= "Peru", [170]= "French Polynesia", [171]= "Papua New Guinea", [172]= "Philippines", [173]= "Pakistan", [174]= "Poland", [175]= "Saint Pierre and Miquelon", [176]= "Pitcairn Islands", [177]= "Puerto Rico", [178]= "Palestinian Territory", [179]= "Portugal", [180]= "Palau", [181]= "Paraguay", [182]= "Qatar", [183]= "Reunion", [184]= "Romania", [185]= "Russian Federation", [186]= "Rwanda", [187]= "Saudi Arabia", [188]= "Solomon Islands", [189]= "Seychelles", [190]= "Sudan", [191]= "Sweden", [192]= "Singapore", [193]= "Saint Helena", [194]= "Slovenia", [195]= "Svalbard and Jan Mayen", [196]= "Slovakia", [197]= "Sierra Leone", [198]= "San Marino", [199]= "Senegal", [200]= "Somalia", [201]= "Suriname", [202]= "Sao Tome and Principe", [203]= "El Salvador", [204]= "Syria", [205]= "Swaziland", [206]= "Turks and Caicos Islands", [207]= "Chad", [208]= "French Southern Territories", [209]= "Togo", [210]= "Thailand", [211]= "Tajikistan", [212]= "Tokelau", [213]= "Turkmenistan", [214]= "Tunisia", [215]= "Tonga", [216]= "Timor-Leste", [217]= "Turkey", [218]= "Trinidad and Tobago", [219]= "Tuvalu", [220]= "Taiwan", [221]= "Tanzania", [222]= "Ukraine", [223]= "Uganda", [224]= "United States Minor Outlying Islands", [225]= "United States", [226]= "Uruguay", [227]= "Uzbekistan", [228]= "Holy See (Vatican City State)", [229]= "Saint Vincent and the Grenadines", [230]= "Venezuela", [231]= "Virgin Islands, British", [232]= "Virgin Islands, U.S.", [233]= "Vietnam", [234]= "Vanuatu", [235]= "Wallis and Futuna", [236]= "Samoa", [237]= "Yemen", [238]= "Mayotte", [239]= "Serbia", [240]= "South Africa", [241]= "Zambia", [242]= "Montenegro", [243]= "Zimbabwe", [244]= "Anonymous Proxy", [245]= "Satellite Provider", [246]= "Other", [247]= "Aland Islands", [248]= "Guernsey", [249]= "Isle of Man", [250]= "Jersey", [251]= "Saint Barthelemy", [252]= "Saint Martin", [255]= "Localhost", } function et_ClientCommand( num, cmd ) if cmd ~= "say" then return end if et.trap_Argv(1) == "!country" then local target = tonumber(et.trap_Argv(2)) local uci = et.Info_ValueForKey(et.trap_GetConfigstring( et.CS_PLAYERS + target ), "uci") et.trap_SendServerCommand( num, string.format("c %s ^wis from %s", et.gentity_get(target, "pers.netname"), countries[uci]) ) end end
  22. Sol

    chat

    Here you are, this is my simple script which I use it on my server. logname = "chatlog.log" function et_ClientCommand( num, cmd ) if cmd == "say" or cmd == "say_team" or cmd == "say_buddy" then if et.trap_Argc() > 1 then local msg = "" local name = et.Q_CleanStr(et.gentity_get(num, "pers.netname")) for i = 1, et.trap_Argc() - 1 do msg = string.format("%s %s", msg, et.Q_CleanStr(et.trap_Argv( i ))) end WriteToFile(logname, string.format("[%s]-[%s]: %s\n", os.date(), name, msg )) else local name = et.Q_CleanStr(et.gentity_get(num, "pers.netname")) local msg = string.format("[%s]-[%s]: %s\n", os.date(), name, et.Q_CleanStr(et.trap_Argv(1))) WriteToFile(logname, msg) end end end function WriteToFile( filename, str ) fd, len = et.trap_FS_FOpenFile( filename, et.FS_APPEND ) et.trap_FS_Write( str, string.len(str), fd ) et.trap_FS_FCloseFile( fd ) end
  23. Yes, it certainly help you alot.
  24. Sol

    Moving slots?

    @BECK so, seems it's not possible it can be done by new et300 but I think that it's not really necessary
×
×
  • Create New...