Turk-oghlan
Members-
Posts
22 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Turk-oghlan's Achievements
Civilian (7/54)
1
Reputation
-
سلام من خودم هیچی از برنامه نویسی بلد نیستم و فقط میتونم اسکریپت ها رو ادیت کنم ولی برات یه راهکار بگم. بهتره که سوالت رو به زبان انگلیسی ترجمه کنی و در بخش عمومی انجمن ام تی ای مطرح کنی. اینجوری زود به نتیجه میرسی.اینجا تو بخش فارسی، هیچ کس به سوالات جواب نمیدن
-
Replacing the command with the marker. Please help me!
Turk-oghlan replied to Turk-oghlan's topic in Scripting
Thanks- 7 replies
-
- 1
-
- command
- setcommand
-
(and 4 more)
Tagged with:
-
Replacing the command with the marker. Please help me!
Turk-oghlan replied to Turk-oghlan's topic in Scripting
Hi thank you for the guidance I made these changes but when I write the /bank the system is not activated. function MarkerHit( command, matchingDimension ) if ((getElementType(commands) == "player")) then local acc = getPlayerAccount (command) if (acc and not isGuestAccount (acc)) then local atmmi = getElementData (source,"atm") if (atmmi == true) then addCommandHandler(command, "bankaGuiAc", command) end end end end addCommandHandler("bank", MarkerHit) executeCommandHandler ( bank, player, matchingDimension ) Please very guide- 7 replies
-
- command
- setcommand
-
(and 4 more)
Tagged with:
-
Replacing the command with the marker. Please help me!
Turk-oghlan replied to Turk-oghlan's topic in Scripting
Can anyone help me?- 7 replies
-
- command
- setcommand
-
(and 4 more)
Tagged with:
-
HI guys I downloaded Bank System . The system is such that when the player enters the marker, the ATM becomes active. But, I want to get the ATM system activated here by writing a text(Command For Example: /Bank). And in the custom area. Server.Lua The part that defines ATM activation with the marker atmls1 = 2116, -1118.3000488281,24.89999961853,0,0,162 atmls2 = 1186.1999511719,-1374.3000488281, 13.199999809265 ,0,0,90 atmls3 = 1975.4000244141,-2176.1000976563, 13.199999809265 ,0,0,178 atmsf1 = -1571.0999755859,666.59997558594, 6.8000001907349 ,0,0,88 atmsf2 = -2655.8999023438,257.89999389648, 4 ,0,0,90 atmredcounty = -74.800003051758,1116.3000488281, 19.39999961853 ,0,0,90 atmlv1 = 1715.5999755859,1533.5, 10.39 ,0,0,92 atmlv2 = 2176.6000976563,2443.6999511719, 10.5 ,0,0,178 atmlv3 = 2159.5,950.79998779297, 10.699999809265 ,0,0,270 atmler = { { 2116, -1118.3000488281,24.89999961853,0,0,162 }, { 1186.1999511719,-1374.3000488281, 13.199999809265 ,0,0,90 }, { 1975.4000244141,-2176.1000976563, 13.199999809265 ,0,0,178 }, { -1571.0999755859,666.59997558594, 6.8000001907349 ,0,0,88 }, { -2655.8999023438,257.89999389648, 4 ,0,0,90 }, {-74.800003051758,1116.3000488281, 19.39999961853 ,0,0,90 }, { 1715.5999755859,1533.5, 10.39 ,0,0,92 }, { 2176.6000976563,2443.6999511719, 10.5 ,0,0,178 }, { 2159.5,950.79998779297, 10.699999809265 ,0,0,270 } } atm = {} function displayLoadedRes ( res ) for theKey,theAtm in ipairs(atmler) do atm[theAtm] = createObject ( 2942, theAtm [ 1 ], theAtm [ 2 ], theAtm [ 3 ], theAtm [ 4 ], theAtm [ 5 ], theAtm [ 6 ] ) atmx, atmy, atmz = getElementPosition (atm[theAtm]) atmMarker = createMarker ( atmx, atmy, atmz -1, "cylinder", 1.5, 100, 100, 200, 170 ) setElementData (atmMarker,"atm",true) atmBlip = createBlipAttachedTo ( atm[theAtm], 52 ) setBlipVisibleDistance (atmBlip,200) setElementCollisionsEnabled(atm[theAtm], false) end end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), displayLoadedRes ) function MarkerHit( hitElement, matchingDimension ) if ((getElementType(hitElement) == "player")) then local acc = getPlayerAccount (hitElement) if (acc and not isGuestAccount (acc)) then local atmmi = getElementData (source,"atm") if (atmmi == true) then triggerClientEvent(hitElement, "bankaGuiAc", hitElement) end end end end addEventHandler( "onMarkerHit", getRootElement(), MarkerHit ) please guide me Thanks
- 7 replies
-
- command
- setcommand
-
(and 4 more)
Tagged with:
-
HI guys I downloaded Bank System . The system is such that when the player enters the marker, the ATM becomes active. But, I want to get the system activated here by writing a text(Command Example: /Bank). And in the custom area. Server.Lua The part that defines ATM activation with the marker atmls1 = 2116, -1118.3000488281,24.89999961853,0,0,162 atmls2 = 1186.1999511719,-1374.3000488281, 13.199999809265 ,0,0,90 atmls3 = 1975.4000244141,-2176.1000976563, 13.199999809265 ,0,0,178 atmsf1 = -1571.0999755859,666.59997558594, 6.8000001907349 ,0,0,88 atmsf2 = -2655.8999023438,257.89999389648, 4 ,0,0,90 atmredcounty = -74.800003051758,1116.3000488281, 19.39999961853 ,0,0,90 atmlv1 = 1715.5999755859,1533.5, 10.39 ,0,0,92 atmlv2 = 2176.6000976563,2443.6999511719, 10.5 ,0,0,178 atmlv3 = 2159.5,950.79998779297, 10.699999809265 ,0,0,270 atmler = { { 2116, -1118.3000488281,24.89999961853,0,0,162 }, { 1186.1999511719,-1374.3000488281, 13.199999809265 ,0,0,90 }, { 1975.4000244141,-2176.1000976563, 13.199999809265 ,0,0,178 }, { -1571.0999755859,666.59997558594, 6.8000001907349 ,0,0,88 }, { -2655.8999023438,257.89999389648, 4 ,0,0,90 }, {-74.800003051758,1116.3000488281, 19.39999961853 ,0,0,90 }, { 1715.5999755859,1533.5, 10.39 ,0,0,92 }, { 2176.6000976563,2443.6999511719, 10.5 ,0,0,178 }, { 2159.5,950.79998779297, 10.699999809265 ,0,0,270 } } atm = {} function displayLoadedRes ( res ) for theKey,theAtm in ipairs(atmler) do atm[theAtm] = createObject ( 2942, theAtm [ 1 ], theAtm [ 2 ], theAtm [ 3 ], theAtm [ 4 ], theAtm [ 5 ], theAtm [ 6 ] ) atmx, atmy, atmz = getElementPosition (atm[theAtm]) atmMarker = createMarker ( atmx, atmy, atmz -1, "cylinder", 1.5, 100, 100, 200, 170 ) setElementData (atmMarker,"atm",true) atmBlip = createBlipAttachedTo ( atm[theAtm], 52 ) setBlipVisibleDistance (atmBlip,200) setElementCollisionsEnabled(atm[theAtm], false) end end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), displayLoadedRes ) function MarkerHit( hitElement, matchingDimension ) if ((getElementType(hitElement) == "player")) then local acc = getPlayerAccount (hitElement) if (acc and not isGuestAccount (acc)) then local atmmi = getElementData (source,"atm") if (atmmi == true) then triggerClientEvent(hitElement, "bankaGuiAc", hitElement) end end end end addEventHandler( "onMarkerHit", getRootElement(), MarkerHit ) please guide me
- 1 reply
-
- command help
- markers
-
(and 1 more)
Tagged with:
-
سلام سوال دارم لطفا هر کی بلده راهنماییم کنه یک مد وب بروزِر به صورت پیش فرض در پوشه ی سرور در ام تی ای وجود داره که در عکسِ پایین با دایره قرمز رنگ مشخصش کردم http://s7.picofile.com/file/8388100676/mta_screen_2020_02_13_19_46_03.jpg من میخوام این وب بروزِر رو به مدی که ساختم منتقل کنم من مدی ساختم و میخوام این وب بروزِ به جای اینکه همینجوری تو صفحه بازی (مثل عکسی که گذاشتم) ظاهر بشه، تو صفحه اون مدی که ساختم اونجا ظاهر بشه. کلا مدُی که میسازم شبیه دسکتاپ کامپیوتره و میخوام این وب بروزِ تو صفحه مُدم باشه نه همینجوری تو صفحه اول بازی!(که عکسش تو بالا هست) لطفا اگر یک کدی یا یک روشی وجود داره که بشه این وب بروزِر رو انتقال داد به صفحه یه مُد دیگه راهنمایی کنید با تشکر
-
سلام به دوستان سرعت ماشین های سرور رو از کجا تنظیم کنم؟
-
سلام واقعا ممنون که کمک کردید. اسکریپت درست کار کرد. این اسکریپت رو اصلا پیدا نمی کردم ولی شما مشکلم رو حل کردید. سپاس
-
Turk-oghlan started following Arshin
-
Thanks again to my friend Can other friends guide me?
-
It only works when the player is present on the server. I want this feature like the script to save money, weapons, skins and ... but with the difference that the player can not change the name. Please help if you can Thanku
-
Hello friends Is there a script that prevents the name from being changed on the server ?? For example, when the player registered on the server, there is no longer the possibility of renaming, and even if it changes its name in the MTA settings, it will again be arranged with the same previous name that was selected at the time of registration. Sorry. My English is poor Please help me.
-
ببخشـید فکر کنم شما متوجه نشدید. من تبلیغ نمی کنم. من فقط یه اسکریپت لازم دارم که اگه کسی داره بده.. وگرنه بنده نه سروری رو تبلیغ کردم و نه چیز دیگه.
-
سلام دوستان من یک اسکریپت لازم دارم که به این صورت باشه: وقتی بازیکن وارد سرور شد و ثبت نام کرد،زمانی که وارد سرور بشه نامش با همون نامی باشه که تو سرور با هاش ثبت نام کرده. در کل یعنی وقتی که تو تنظیات ام تی ای اسمش رو تغییر داد تو سرور وقتی وارد میشه با همون نامی که قبلا تو سرور ثبت نام کرده بود مشخص بشه. نه اینکه همش اسمش رو تغییر بده. دوستان هرکی اسکریپتی با این شرایط داره لطفا اینجا بگذارید. با تشکر
-
Turk-oghlan started following Jalapeno
-
Very Thanks @Jalapeno Worked well. But I want some weapons to change for Coin, not all of them. Now the price of all the weapons has changed to the coin, but I want to change some weapons to coins. please guide me Thanks