Leaderboard
Popular Content
Showing content with the highest reputation on 14/01/17 in all areas
-
bool redirectPlayer ( player thePlayer, string serverIP, int serverPort, [ string serverPassword ] ) ._.2 points
-
2 points
-
ماخطر على بال شخص منكم ان الريتورن في اللوب يوقفه كله ؟ يعني فرضنا جاب اللاعبين ومسك لاعب م معه داتا على القاعدة, وش يصير يوقف اللوب كله على اللاعبين ؟ الزبدة انا هالمشكلة مرت عندي وتورطت فيها كثير لين عرفتها + تفضل جرب ذا dataName ="اسم الداتا" addEventHandler ("onResourceStart", resourceRoot , function ( ) local aPlayers = getElementsByType ( "player" ) if ( #aPlayers ~= 0 ) then for _ , v in ipairs ( aPlayers ) do local aPlayersSerial = getPlayerSerial( v ) local Select_ = executeSQLQuery ( 'SELECT * FROM `TABLE` WHERE serial=?', aPlayersSerial ) if ( type ( Select_ ) == 'table' and #Select_ ~= 0 ) then setElementData( v , dataName , Select_ [ 1 ][ 'point' ] ) end end end end ) ; addEventHandler ("onResourceStop", resourceRoot , function ( ) local aPlayers = getElementsByType ( "player" ) if ( #aPlayers ~= 0 ) then for _ , v in ipairs ( aPlayers ) do local aPlayersSerial = getPlayerSerial( v ) local aData = getElementData ( source , dataName ) if ( aData and aData ~= false ) then local Select_ = executeSQLQuery ( 'SELECT * FROM `TABLE` WHERE serial=?', aPlayersSerial ) if ( type ( Select_ ) == 'table' and #Select_ == 0 or not Select_ ) then executeSQLQuery ('INSERT INTO `TABLE` (serial,point) VALUES (?,?)', aPlayersSerial, aData) else executeSQLQuery ('UPDATE `TABLE` SET serial = ? , point = ?', aPlayersSerial , aData ) end end end end end ) ;1 point
-
1 point
-
1 point
-
اولا مهب للارقام فقط والله اعلم وهي للحساب نفس # تقريبا ثانيا مافي اي فرق بالاثنين ثالثا هي تطلعلك اياها بسرعه بدل ما تسوي tostring وكذا يعني سلاسل ارقام but only as a quick way to show a value لو ضغطت عليها بتشوف شرح مفصل لها بالموقع الرسمي @#_iMr,[E]coo1 point
-
1 point
-
تمت إزالة الردود السابقة بسبب انها خارج محتوي الموضوع وبما ان صاحب الموضوع لم يستفد بعد ، لن يتم إغلاق الموضوع1 point
-
function RemoveHEXColorCode( s ) return s:gsub( '#%x%x%x%x%x%x', '' ) or s end function toggleFRWindow() if isWindowOpen(wndMain) then showCursor(false) hideAllWindows() colorPicker.closeSelect() else showCursor(true) showAllWindows() setControlText(wndMain, 'name', RemoveHEXColorCode(getPlayerName(localPlayer))) end end1 point
-
ههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههه1 point
-
En 'animations.xml' todas las animaciones debe tener su id, por eso sale el Warning PD: Sino usa esté código si no quieres que todas tengan una 'nombre' personalizado function applyAnimation(leaf) if type(leaf) ~= 'table' then leaf = getSelectedGridListLeaf(wndAnim, 'animlist') if not leaf then return end end if leaf.id then server.setPedAnimation(g_Me, leaf.parent.name, leaf.id, true, true) else server.setPedAnimation(g_Me, leaf.parent.name, leaf.name, true, true) end end1 point
-
Creo que a esto referís :b Debes modificar el fr_client.lua y reemplazarlo por esto function applyAnimation(leaf) if type(leaf) ~= 'table' then leaf = getSelectedGridListLeaf(wndAnim, 'animlist') if not leaf then return end end server.setPedAnimation(g_Me, leaf.parent.name, leaf.id, true, true) end wndAnim = { 'wnd', text = 'Set animation', width = 250, x = -20, y = 0.3, controls = { { 'lst', id='animlist', width=230, height=290, columns={ {text='Animation', attr='name'} }, rows={xml='animations.xml', attrs={'name', 'id'}}, expandlastlevel=false, onitemdoubleclick=applyAnimation }, {'btn', id='set', onclick=applyAnimation}, {'btn', id='stop', onclick=stopAnimation}, {'btn', id='close', closeswindow=true} } } Y en el animation.xml debes usarlo así <group name="AIRPORT"> <anim name="animacion" id="thrw_barl_thrw"/> </group>1 point
-
1 point
-
Hi there. Oh, what is that? The holidays are here again? Yep, it looks like they are, so that means the usual stuff. We are going to give you guys & gals a heads up on what has been happening in MTA's world this whole year. And if you are one of those well informed types who does not need a recap, you still might want to give this post a read, as there will be more than that later on! 2016 in Recap Near the end of January, we released a bugfix release for MTA:SA 1.5.x - Multi Theft Auto: San Andreas 1.5.2. Among a few other things, that version had and improved the server app compatibility for Linux server hosters and fixed some desync issues. In July, we started offering a new way of promotion for server owners who wanted to gain more players quickly. Namely, one of the top positions in the ingame server browser for a week in an exchange for a small fee. We felt it was a good way to not only ensure that our Project's financial needs are balanced, but also to allow some smaller but ambitious servers to try and get the player base they were always seeking for. In August and September, we made significant changes to our forums, including a switch to a new forum software. There were a bunch of issues found afterwards (such as keeping the users login states), but we managed to fix most of them. Following that, we were featured in an article on the Rock Paper Shotgun, which was pondering the popularity of multiplayer mods for GTASA, even long after its original release. You can find the full article on the RPS website. And finally, on 20th of October, Multi Theft Auto: San Andreas 1.5.3 was released. This was a large release that could as well have been labelled as a next major release, but was not as it was still compatible with the 1.5 series. A bunch of interesting MTA:SA-related YouTube videos from this year Current player counts and version fragmentation statistics Type Amount of players Date / Time Recent peak number of concurrent unique players 27111 players 2016.12.23 (at 17.30 GMT) Highest recorded number of concurrent unique players 27111 players 2016.12.23 (at 17.30 GMT) Recent number of daily unique players 124981 players 2016.12.23 (Friday) Highest recorded number of daily unique players 142785 players 2016.09.04 (Sunday) Recent number of monthly unique players 554757 players November, 2016 Highest recorded number of monthly unique players 626167 players August, 2016 Yes, to our surprise, there was a new concurrent unique player count record set literally on the day we were gathering these stats for you. MTA:SA Version or series Percentage of players using that version or series as of 23rd of December, 2016 1.5.3 95.20% 1.5.2 1.5.1 1.5 3.60% 0.09% 0.09% 1.4.x 0.67% 1.3.x 0.28% 1.0.x + 1.1.x + 1.2.x 0.07% It looks like more people decided to use newer versions of the mod than the last year. *** As for the future, we have been working on the next release, which will contain mostly bugfixes and compatibility tweaks. However, we did some work on new features as well, such as Custom Train Tracks, which we hope to be finished soon. We also want to look into improving streaming, raising the limits and making it possible to add new IDs for things, but this will be tricky. Nonetheless, it would be great to see those features working in MTA:SA one day as, for example, they would allow server owners to use bigger and better custom maps with new vehicles working correctly for all players. That's it for now. Happy Holidays and Best Wishes for 2017 from the MTA Team!1 point
-
1 point
-
1 point