-
Posts
2,259 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Adham
-
مشكور شباب الكود هذأ local Date = string.format( '%04d-%02d-%02d %02d:%02d', time.year + 1900, time.month + 1, time.monthday, time.hour, time.minute ) ابي بين التاريخ والوقت علامه هكذا | سويتها وم نفعت يقولي خطأ local Date = string.format( '%04d-%02d-%02d %02d:%02d', time.year + 1900, time.month + 1, time.monthday,"|", time.hour, time.minute )
-
سلام عليكم ورحمه الله وبركاته الكود هذا يجيب الوقت والتاريخ local time = getRealTime( ) local Date = string.format( '%04d-%02d-%02d %02d:%02d', time.year + 1900, time.month + 1, time.monthday, time.hour, time.minute ) انا ابي احيب ان الوقت PM or AM جنب الوقت والتاريخ بلأخر @#_iMr.[E]coo @#ZA7F //= @Master_MTA
-
قصده لو انت في سرفره مثلا قعدت 2 دقيقه م تلعب واقف مكانك يطلع فوق راسك offline
-
هههههههه الكود هذا حق عناد اعتقد
-
احطه هكذا يعني مثلأ ؟ الداتا بالشكل كذا setAccountData ( acc, "StatusPlayer", "Online" )
-
جرب -- Client local aTable_ = { { aButton1_ , 23 }, { aButton2_ , 31 } --{ button name , weapon id } } addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) for _ , v in ipairs ( aTable_ ) do if source == v[1] then triggerServerEvent ( 'GiveWeapon' , localPlayer , v[2] ) break end end end ) -- Server addEvent ( 'GiveWeapon', true ) addEventHandler ( 'GiveWeapon', root, function (ID) giveWeapon(source,ID,200) end )
-
-- Server Side addCommandHandler ( "VIP", function (player) local account = getPlayerAccount ( player ) if account and not isGuestAccount(account) then local accName = getAccountName(account) if isObjectInACLGroup("user."..accName, aclGetGroup("SuperModretor")) then triggerClientEvent ( player, "Open", player ) end end end ); --# Client Side addEvent ( "Open", true ) addEventHandler ( "Open", root, function ( ) if guiGetVisible ( اسم لوحتك ) then guiSetVisible ( اسم لوحتك, false ) showCursor ( false ) else guiSetVisible ( اسم لوحتك, true ) showCursor ( true ) end end ) ; بدل بس اسم لوحتك
-
السلأم عليكم ورحمه الله وبركاته كيفكم شباب جميعأ , أنشاء الله تكونو بخير اليوم كنت ابي اسوي بالقريد لست لو الاعب متصل بالسرفر يجي في القريد متصل لو مب متصل يجي غير متصل والسلأم عليكم ملحوظة: لأ احد يقول ابي جهاز وإلخ ابي الطريقة او الفشكنات ونا بسويها .
-
وش الفرق الفوق بينك و بين الأخ واي فاي ؟ ممكن يسويها كدأ وم في شيء addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if source == GUIEditor.button[2] then local txt = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) if txt == "" then return end triggerServerEvent ( "add", localPlayer, txt ) end end )
-
سلام عليكم اليوم حولت أسوي, اذا الاعبين حاطين الشعار يجي في الشات عدد الحاطين الشعار وعدد الاعبين المش حاطين الشعار يجي خطا وم يشتغل الكود: addCommandHandler ( "Lol", function ( ) for i,v in ipairs(getElementsByType("player")) do local pName = getPlayerName(v) local Sh3ar = string.find (string(pName), "Sv") then outputChatBox ( Sh3ar ) end end )
-
علي حسب هوا وش يبي لاكن هوا كاتب فوق سريال محدد كود بروس صح م محتاج ردك
-
هذا الفهمته من طلبك: function addPlayers ( ) guiGridListClear ( gridList ) for i,v in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( gridList ) guiGridListSetItemText(gridList,row,1,getPlayerName(v),false,false) end end addEventHandler ( "onClientResourceStart", resourceRoot,addPlayers) addEventHandler ( "onClientPlayerJoin", resourceRoot,addPlayers) addEventHandler ( "onClientPlayerChangeNick", resourceRoot,addPlayers) addEventHandler ( "onClientPlayerQuit", resourceRoot,addPlayers) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == button ) then local playerName = guiGridListGetItemText ( gridList, guiGridListGetSelectedItem ( gridList ), 1 ) if playerName == "" then return end triggerServerEvent ( "Test", localPlayer, playerName ) end end ) -- Server -- amount = 500 addEvent ( "Test", true ) addEventHandler ( "Test", root, function (name) local player = getPlayerFromName(name) if player then takePlayerMoney (player,tonumber(amount)) setElementPosition ( player, x, y, z ) end end )
-
Mdrift = guiCreateStaticImage( 150, 200, 200, 150, "images/drift.png", false ) guiSetVisible ( Mdrift, false ) Mdsorry = guiCreateStaticImage( 450, 200, 200, 150, "images/sorry.png", false ) guiSetVisible ( Mdsorry, false )
-
السلأم عليكم ورحمه الله وبركاته اليوم كنت ابي اعرف كيف اسوي كول شوب ؟ انا ادري انه في شرح وافهم فيه كويس بس المشكله : م عرف اجيب احدثيات المكان لكي اسوي كول شوب لو كان x,y,z كانت سهله بحطها من ف8 gp لاكن هذه x,y كيف اجبهم هذول ؟
-
elseif getElementData ( plr , "MissionR" ) == true then --
-
قصدك يطلع كل الحسابات والسريال بالقريد لست ؟
-
@#_iMr.[E]coo اعتقد ان ذا حطأ if getElementData ( plr , "MissionB" == true or getElementData ( plr , "MissionR" == true then بيكون كذا if getElementData ( plr , "MissionB" ) == true or getElementData ( plr , "MissionR" ) == true then
-
@MR.NaiF-MTA كلام الأخ ايكو صحيح source = تستخدم في كلنت عأدي جدأ مثلا if ( source == button ) then guiSetEnabled ( source, false ) -- يقفل الزر الهوا button لاكن م تنفع تستخدم في ال outputChatBox في كلنت تستخدم بدون ارقمنت لاعب الكود بيصير addEventHandler ( "onPlayerJoin", root, function ( ) outputChatBox ( "مرحبأ بك في السرفر", source,255,255,255,true ) end end )
-
executeSQLQuery -- او dbConnect dbQuery dbPoll dbExec شرح للسجل :-
-
استعمل بدل setPedSkin setElementModel
