Jump to content

^iiEcoo'x_)

Members
  • Posts

    2,935
  • Joined

  • Last visited

  • Days Won

    44

Everything posted by ^iiEcoo'x_)

  1. اتوقع انه تقدر تسوي اتصال بيني وبينك ! واتوقع انها تسوي لك اكسبورتس
  2. createMarker createMarkerAttachedTo isElementWithinMarker setVehicleDoorState
  3. انا مسوي نقاط وبحفظهن ع السريال محاولتي addEventHandler ( "onResourceStart", resourceRoot, function () executeSQLQuery ('CREATE TABLE IF NOT EXISTS 'TABLE' ( playerSerail,Data ) ') end ) addEventHandler("onPlayerQuit ", root, function(player) local playerSerail = getPlayerSerial(player) local Save = executeSQLQuery ( 'SELECT * FROM `TABLE` WHERE playerSerail=?',playerSerail ) local data = getElementData (player,"data")or not 0 if (type ( Save ) == 'TABLE' and #Save == 0 or not Save ) then executeSQLQuery ('INSERT INTO 'TABLE' (playerSerail,data) VALUES ( ? , ?)' playerSerail, data) else executeSQLQuery (' UPDATE 'TABLE' SET playerSerail = ? , data = ?' playerSerail , data) end end ) addEventHandler ("onPlayerJoin", root, function(player) local playerSerail = getPlayerSerial(player) local Save = executeSQLQuery ( 'SELECT * FROM `TABLE` WHERE playerSerail=?',playerSerail ) if (type ( Save ) == 'TABLE' and #Save == 0 or not Save ) then return end local data = data[1]['data'] setElemnetData(player,data) end ) ادري انه هريسة قولولي الاخطاء و باي سطر عشان نتعلم ! @Abdul KariM @N3xT
  4. السلام عليكم ورحمة الله وبركاته ابي اسوي حفظ الداتا واسم الاعب ابي اسويها بالاس كيو ال ابي الفنكشنات واحاول اسويها وتساعدوني بيها
  5. سويتهـ لك لما يضغط عالزر يقفلهـ وبعد وقت معين يفتحهـ Client Side ! function guiAntiFlood(element, timer) -- To Mezo ! if getElementType ( element ) == "gui-button" then local atimer = tonumber(timer) if atimer == nil or atimer == '' or not tonumber(atimer) then error("Bad Argument the Argument 2 must number") else end guiSetEnabled(element,false) setTimer(function() guiSetEnabled(element,true) end,tonumber(atimer),1) else error("Bad Argument 1 the element must button") end end addEventHandler ( 'onClientGUIClick',root, -- حدث عند الضغط على زر function () -- وظيفة if ( source == GUIEditor.button[2] ) then -- نتحقق من اسم الزر triggerServerEvent ( "money", localPlayer ) -- ترايقر للسيرفر عشان ناخذ فلوس guiAntiFlood(GUIEditor.button[2],1800000) -- بعد نص ساعة يفتح الزر end -- نهاية if end -- نهاية الوظيفة ) -- قوس الوظيفة addEvent ( "money", true ) -- نستقبل الترايقر addEventHandler ( "money", root, -- نستقبل الترايقر function ( ) -- وظيفة givePlayerMoney(source,5000) -- اعطاء الاعب فلوس end -- نهاية الوظيفة ) -- قوس الوظيفة
  6. not method in client side + There you have a line Forgot " outputChatBox ( #006600• #ffffff"..getPlayerName ( attacker ).." #006600is dangerous!"root,255,255,255,true) -- X X X the true outputChatBox ( "#006600• #ffffff"..getPlayerName ( attacker ).." #006600is dangerous!",255,255,255,true) @TheMOG
  7. Client addEventHandler("onClientGUIClick",root, function() if ( source == GUIEditor.button[2] ) then triggerServerEvent ("giveM",localPlayer) end ) Server addEvent ("giveM",true) addEventHandler ("giveM",root, function (player) local account = getPlayerAccount(player) if not ( isGuestAccount( accountName ) ) then if not getAccountData (account,"Mon") then setAccountData (account,"Mon",true) givePlayerMoney (player,50000) outputChatBox ("تم إعطائك نقود",player,2,255,5) end end end ) function removeAccountData ( playerAccount, data ) if ( playerAccount ~= "" ) and ( data ~= "" ) then if getAccount ( playerAccount ) then local dataName = getAccountData(playerAccount, data) if ( dataName ~= nil ) or ( dataName ~= "" ) then setAccountData(playerAccount, data, false) end end end end setTimer(function(player) local account = getPlayerAccount(player) if not ( isGuestAccount( accountName ) ) then local data = getAccountData (account,"Mon") if ( data == "true" ) removeAccountData ( account , "Mon") givePlayerMoney(player,50000) outputChatBox ("تم إعطائك نقود",player,2,255,5) end,30*60000,0) addEventHandler ("onPlayerLogout",source, function (_,acc) removeAccountData ( acc , "Mon") end )
  8. not setElementData setAccountData -- To Save !
  9. He wants to work Marker .. The marker when touching a person gives money This money's worth be Edit Box
  10. To @iPrestege bindKey("w","down", function ( ) local vehicle = getPedOccupiedVehicle ( localPlayer ); if ( vehicle ) then createProjectile(vehicle,19); outputChatBox("Text "255,255,0,true); else outputChatBox("text",255,0,0,true); end end ); addEventHandler("onClientResourceStart",resourceRoot, function ( ) setWorldSpecialPropertyEnabled ( "aircars",true ); end ); If you want to SWAT team Server ! addEvent('check', true) addEventHandler('check', root, function ( plr ) if getElementData ( plr, "gang" ) == "SWAT" then triggerClientEvent ("shoot", source) end end ) Client ! addEvent('shoot', true) addEventHandler('shoot', root, function () local vehicle = getPedOccupiedVehicle(localPlayer) local rX,rY,rZ = getElementRotation(vehicle) local x, y, z = getElementPosition(vehicle) local x = x+4*math.cos(math.rad(rZ+90)) local y = y+4*math.sin(math.rad(rZ+90)) if ( vehicle ) then createProjectile(vehicle, 19, x, y, z, 1.0, nil) end end) function shootProjectile() triggerServerEvent("check", localPlayer, localPlayer) end bindKey("vehicle_fire", "down", shootProjectile) bindKey("lctrl", "down", shootProjectile) bindKey("rctrl", "down", shootProjectile)
  11. جرب addEvent ("giveM",true) addEventHandler ("giveM",root, function (player) local account = getPlayerAccount(player) if not ( isGuestAccount( accountName ) ) then if not getAccountData (account,"Mon") then setAccountData (account,"Mon",true) givePlayerMoney (player,50000) outputChatBox ("تم إعطائك نقود",player,2,255,5) end end end ) function removeAccountData ( playerAccount, data ) if ( playerAccount ~= "" ) and ( data ~= "" ) then if getAccount ( playerAccount ) then local dataName = getAccountData(playerAccount, data) if ( dataName ~= nil ) or ( dataName ~= "" ) then setAccountData(playerAccount, data, false) end end end end setTimer(function(player) local account = getPlayerAccount(player) if not ( isGuestAccount( accountName ) ) then local data = getAccountData (account,"Mon") if ( data == "true" ) removeAccountData ( account , "Mon") givePlayerMoney(player,50000) outputChatBox ("تم إعطائك نقود",player,2,255,5) end,30*60000,0) addEventHandler ("onPlayerLogout",source, function (_,acc) removeAccountData ( acc , "Mon") end )
  12. addEvent ( "SendMoney", true ) addEventHandler ( "SendMoney", root, addEventHandler ( "onMarkerHit", resourceRoot, function ( element, amount ) if ( source == myMarker1 ) and ( getElementType ( element ) == "player" ) then destroyElement ( myMarker1 ) givePlayerMoney(source, tonumber(amount)) sendClientMessage ( '- ' .. getPlayerName(element) .. ' money', root, 255, 23, 23, top, 15 ) outputChatBox(" ", root, 183, 92, 38) end end )
  13. الله يعطيك الف الف عافية جالس اتعلملها الحين من موقعهم http://www.lua.org/manual/5.1/ المهم فقط
  14. طيب تقدر تحط لي الكالمات حق الجداول PLAYER_SYNC_TABLE -- زي كذا
  15. طيب لما اسوي المزامنة بشتفيدني بالكلاينت؟ يعني مثلا سويت انه الكلام الي يكتبه بالديت ينحفظ بالاكاونت داتا ويوم يضغط زر او شي اخر يرجع الاكلام ! هذا يسهل علي بدلا ً اني اسوي ترايقرات ؟
  16. يعني الاكاونت داتا اقدر اجيبها ب الكلاينت ؟
  17. افضل شي لحد الان @</Mr.Tn6eL> هل من احد اخر ؟ local _S, server = {}, not (isElement(localPlayer) and getElementType(localPlayer) == "player") local side, pside = server and "Server" or "Client", server and "Client" or "Server" function sync(t, k, v) assert(type(k) == "string" and k:match "([%a_][%w_]*)()", "Invalid variable name") _G["trigger"..side.."Event"]("onSync"..side.."Value", resourceRoot, {k, type(v) == "function" and "function:"..string.dump(v) or v}) end setmetatable(_S, { __index = sync, __newindex = sync, __metatable = "" }) addEvent("onSync"..pside.."Value", true) addEventHandler("onSync"..pside.."Value", resourceRoot, function(t) assert(type(t) == "table", "Invalid data") assert(type(t[1]) == "string" and k:match "([%a_][%w_]*)()", "Invalid variable name") local isfunc = type(t[2]) == "string" and t[2]:sub(1, 9) == "function:" _G[t[1]] = isfunc and pcall(loadstring("return "..t[2]:sub(10)))() or t[2] end) -- how to usage local test = function() print("hello") end _S["my_func_name"] = test
×
×
  • Create New...