Leaderboard
Popular Content
Showing content with the highest reputation on 01/01/17 in all areas
-
Lua - Vb.net كيف حالكم ان شاء الله بخير , اليوم رجعت بمشروع يرتبط بلغتين من البرمجة طبعا المشروع من زمان مسويه وكل يوم انتظر الوقت المناسب لـ طرحه واتكاسل عن طرحه ولاكن اليوم جاء الوقت المناسب المشروع عبارة عن اخر مدة سجل فيها الاعب دخوله db مع اسم حسابه وسرياله والوقت والتاريخ , ويحفظ بقاعدة بيانات طبعا فكرة السكربت او المشروع بالنسبة لي جديدة ولا احد سواها ولا اعلم ان كان في احد سواها قبلي ولا لا , نشوف صور للمشروع نبدأ اول شي عن السكربت ومن ثم عن البرنامج صورة للسكربت موضحه للمعلومات اعلاه طبعا راح ينشأ قاعدة بيانات بمجلد السكربت نفسه , ولايستحسن تغيير اسم قاعدة البيانات طبعا نحتاج القاعدة الي فوق عشان نربطها بالبرنامج الان نأتي لـلبرنامج طريقة فتحه وطريقه استخدامه اول ماتفتح البرنامج راح تجيك الرسالة هذي اضغط موافق , راح تجيك نافذة بهذا الشكل الان نختار قاعدة البيانات , طبعا اذا كنت حاطها على سيرفر استضافة حملها وحطها بسطح المكتب او اي مكان واربطها بالنافذة الي فوق صورة توضح Open بعد مانضغط على Open الان نضغط على بتفتح لنا لوحة فيها المعلومات الي كانت محفوظة بقاعدة البيانات صورة توضح طبعا البرنامج لايقبل الا القاعدة التي انشأها السكربت ولاراح يشتغل اذا غيرت اسم قاعدة البيانات فائدة البرنامج بعض اصحاب السيرفرات ماوده يدخل سيرفره ويراقب الي داخل والي منقطع فـ احسن مايدخل السيرفر ويفتح السكربت والى اخره فقط يحمل قاعدة البيانات ويفتحها بالبرنامج وصلى الله وسلم settings.lua بالنسبة للسكربت فيه خصائص او اعدادات له في ملف تقدر تخلي اللوحة تفتح لاكثر من قروب , وتقدر تحط قروبات لمراقبة اخر مره دخل فيها الاعب aGroups بمعنى تحط اسماء القروبات في الجدول وعند مايسجل دخوله الاعب وكان في احدى القروبات المسجلة راح يتم حفظه بقاعدة البيانات طبعا هذه النسخة من البرنامج مجانية , وراح تكون نسخة اخرى مختلفة عن هذه كثير ولاكن راح تكون نسخة مدفوعة , اي اسئلة او استفسارات ضعها في الرد : الاهدائات Boyka , Mr.Saad ,Mr.Tn6el , Mr.CoR , خلف , iPrestege طبعا السكربت والبرنامج مشفرين تماما : لـ تحميل السكربت سبحان الله : لـ تحميل البرنامج استغفر الله playerEnd_Pro طبعا لفتح البرنامج اضغط دبل كلك على اذا كان لديك ملاحظات او اضافات للاصدار القادم فضعها بالتعليق وهذا وصلى الله وسلم على نبينا محمد4 points
-
انشهد أنك مبدع صراحة# أهنيك على المشروع ، وواصل ي بطل# مع أنك تكرهني -,-2 points
-
no sir okay motherf*ckers I finnaly did it: local missionMarker = createMarker(2153, -1799, 12.5, "cylinder", 1.1, 255, 0, 0, 100) local player = getLocalPlayer() function missionGui() missionName = guiCreateLabel(0.64, 0.85, 0.38, 0.13, "sweet buisness", true) local font0_gtasanandreas = guiCreateFont(":freeroam_login/images/gtasanandreas.ttf", 50) guiSetFont(missionName, font0_gtasanandreas) guiLabelSetColor(missionName, 252, 226, 81) end addEventHandler("onClientResourceStart", getRootElement(), missionGui) addEventHandler("onClientResourceStart", getRootElement(), function() guiSetVisible(missionName, false) end) function markerhit (player, missionMarker) guiSetVisible(missionName, true) end addEventHandler("onClientMarkerHit", missionMarker, markerhit) thanks for your help anyways @Miika822 @iPrestege @MR.S3D1 point
-
Locked. It became too messy with over 100 replies where you've been asking questions on different subjects that arent related, please create a topic for each separate scripting question. Also as others said several times, do a little research on your own instead of expecting others will write anything you desire. You seem not to work with a list of function hints but keep bumping until someone wrote you a complete script. (this is not how we go around on Scripting board)1 point
-
1 point
-
1 point
-
So, my problem is, that i made a GUI, and when it opens, it opens for all the players online and the setElementFrozen affects every player, etc. The GUI is attached to markers, so when you enter the marker, the GUI pops up. But it pops up for everyone. If you're not in the ACL group, you're not allowed to use the GUI, so it closes, when you press a button and outputs a message that you're not allowed to use it. I have the same problem with outputChatBox. The message appears for everyone. So my question is, that how could is make the GUI appear and affect only the actual user, and the outputChatBox appear only for the player i want? If you need the Scripts, just let me know and I'll instert it here. Thanks for the help.1 point
-
Try to change the marker position some times it's about that or make the size bigger there's no message for the event in the chat box that it has been triggered?1 point
-
@iPrestege Marker alpha is not needed argument, only required arguments are x, y and z check up the wiki page; if there's no alpha set, it's automatically 255.1 point
-
Is there any messages appear in the chat box? Please post your meta.xml file.1 point
-
Buy one of these scripts: Login System Teleport System OOP DX Framework and get a second script completely free by choice. (Discount valid until 5 January)1 point
-
Client addEvent("onTheDamnWindow", true) addEventHandler("onTheDamnWindow", root, function () if isElement(missionName) then destroyElement(missionName) end missionName = guiCreateLabel(0.64, 0.85, 0.38, 0.13, "sweet buisness", true) local font0_gtasanandreas = guiCreateFont(":freeroam_login/images/gtasanandreas.ttf", 50) guiSetFont(missionName, font0_gtasanandreas or "default-bold-small") guiLabelSetColor(missionName, 252, 226, 81) end )1 point
-
1 point
-
اهنيك أخ عبدالكريم # فكره جميلة # ولا أتوقع قد شفتها # وماهو جديد عليك ألله يعطيك العافية * مشروع قميل أوي ! من الأفضل للـ أفضل # تقبل مروري البسيط #\1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
I use luac.multitheftauto.com and get script name and lines when a client has a debug message. I guess it depends what settings you have set here: https://luac.multitheftauto.com/api/ I don't think there's any need for this suggestion because if you use a batch file all you have to do is drag and drop the .lua into the .bat and within seconds your .luac is updated.1 point
-
1 point
-
تفضل برنامج فك تشفير lua رابط : http://www.mediafire.com/file/903dkh96hs5as6u/LuaDecompiler.zip كود فك rar : teteututoriais20141 point
-
1 point
-
Then you probably have to work with tables and use players or the image path as an index. Everything but creating a new texture on every frame.1 point
-
A script that makes you go to bed and dream about scripts..... No im joking1 point
-
Once I've tried to make a weapon attached to a car (422, Bobcat), loosed my enthusiasm and never done the script, can you do it? The weapon would be used from outside the car, so that requires someone else to drive wile you shoot.1 point
-
1 point
-
Hi, i need some help. i'm attempting to vinculate my GTA:SA with MTA, but its not working. MTA version: 1.5.2.1 point
-
How I can add access to jetpack for vip's players vip_c function isPlayerVIP ( ) return tostring ( getElementData ( localPlayer, "VIP" ) ):lower ( ) ~= "none" end function getVipLevelFromName ( l ) local levels = { ['none'] = 0, ['bronze'] = 1, ['silver'] = 2, ['gold'] = 3, ['premium'] = 4 } return levels[l:lower()] or 0; end vip_s print_ = print print = outputChatBox exports.scoreboard:scoreboardAddColumn ( "VIP", root, 50, "VIP", 10 ) for i, v in pairs ( getElementsByType ( "player" ) ) do if ( not getElementData ( v, "VIP" ) ) then setElementData ( v, "VIP", "None" ) end end addEventHandler ( "onPlayerJoin", root, function ( ) setElementData ( source, "VIP", "None" ) end ) -- VIP Chat -- addCommandHandler ( "vipchat", function ( p, cmd, ... ) if ( not isPlayerVIP ( p ) ) then return exports.SAEGMessages:sendClientMessage ( "This command is for VIP users only", p, 255, 0, 0 ) end if ( isPlayerMuted ( p ) ) then return exports.SAEGMessages:sendClientMessage ( "This command is disabled when you're muted", p, 255, 255, 0 ) end if ( not getElementData ( p, "userSettings" )['usersetting_display_vipchat'] ) then return exports.SAEGMessages:sendClientMessage ( "Please enable VIP chat in your phone settings to use this command.", 0, 255, 255 ) end local msg = table.concat ( { ... }, " " ) if ( msg:gsub ( " ", "" ) == "" ) then return exports.SAEGMessages:sendClientMessage ( "Syntax: /"..tostring(cmd).." [message]", p, 255, 255, 0 ) end local tags = "(VIP)"..tostring(exports.SAEGChat:getPlayerTags ( p )) local msg = tags..getPlayerName ( p )..": #ffffff"..msg for i,v in pairs ( getElementsByType ( 'player' ) ) do if ( ( isPlayerVIP ( v ) or exports.SAEGAdministration:isPlayerStaff ( p ) ) and getElementData ( v, "userSettings" )['usersetting_display_vipchat'] ) then outputChatBox ( msg, v, 200, 200, 0, true ) end end end ) function checkPlayerVipTime ( p ) local vip = getElementData ( p, "VIP" ) if ( vip == "None" ) then return end local expDate = getElementData ( p, "SAEGVIP.expDate" ) or "0000-00-00" -- Format: YYYY-MM-DD if ( isDatePassed ( expDate ) ) then setElementData ( p, "VIP", "None" ) setElementData ( p, "SAEGVIP.expDate", "0000-00-00" ) exports.SAEGMessages:sendClientMessage ( "Your VIP time has been expired.", p, 255, 0, 0 ) end end function checkAllPlayerVIP ( ) for i, v in pairs ( getElementsByType ( "player" ) ) do checkPlayerVipTime ( v ) end end function isPlayerVIP ( p ) checkPlayerVipTime ( p ) return tostring ( getElementData ( p, "VIP" ) ):lower ( ) ~= "none" end function getVipLevelFromName ( l ) local levels = { ['none'] = 0, ['bronze'] = 1, ['silver'] = 2, ['gold'] = 3, ['premium'] = 4 } return levels[l:lower()] or 0; end ------------------------------------------ -- Give VIP players free cash -- ------------------------------------------ local payments = { [1] = 500, [2] = 700, [3] = 1000, [4] = 1500 } VipPayoutTimer = setTimer ( function ( ) exports.SAEGLogs:outputServerLog ( "Sending out VIP cash...." ) print_ ( "Sending out VIP cash...." ) outputDebugString ( "Sending VIP cash" ) for i, v in ipairs ( getElementsByType ( "player" ) ) do if ( isPlayerVIP ( v ) ) then local l = getVipLevelFromName ( getElementData ( v, "VIP" ) ) local money = payments [ l ] givePlayerMoney ( v, money ) exports.SAEGMessages:sendClientMessage ( "Here is a free $"..money.." for being a VIP player!", v, 0, 255, 0 ) end end end, (60*60)*1000, 0 ) function getVipPayoutTimerDetails ( ) return getTimerDetails ( VipPayoutTimer ) end function isDatePassed ( date ) -- date format: YYYY-MM-DD local this = { } local time = getRealTime ( ); this.year = time.year + 1900 this.month = time.month + 1 this.day = time.monthday local old = { } local data = split ( date, "-" ) old.year = data[1]; old.month = data[2]; old.day = data[3]; for i, v in pairs ( this ) do this [ i ] = tonumber ( v ) end for i, v in pairs ( old ) do old [ i ] = tonumber ( v ) end if ( this.year > old.year ) then return true elseif ( this.year == old.year and this.month > old.month ) then return true elseif ( this.year == old.year and this.month == old.month and this.day > old.day ) then return true end return false end addEventHandler( "onResourceStart", resourceRoot, function ( ) checkAllPlayerVIP ( ) setTimer ( checkAllPlayerVIP, 120000, 0 ) end ) --[[ Bronze: - Laser - Able to warp vehicle to you - Additional 6 vehicles in spawners - $500/hour - 5% less jail time Silver: - Laser - Able to warp your vehicle to you - Additional 6 vehicles in spawners - $700/hour - 15% less jail time Gold: - Laser - Able to warp your vehicle to you - Additional 6 vehicles in spawner - $1000/hour - %25 less jail time Premium: - Laser - Able to warp your vehicle to you - Additional 6 vehicles in spawners - $1500/hour - Half jail time ]]1 point