Jump to content

Adham

Members
  • Posts

    2,259
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Adham

  1. dbConnect dbExec dbPoll احلا 3 وظائف استعمها في الحفظ وإلخ .
  2. ليش حاطط في كودك client ? , هات المحاوله بتاعتك بالداتا وبعدلها لك , ابشر ..
  3. Adham

    طلب ..

    تمت الافاده من عبـدالكريم .. تسلم نيسكت .. ع ردك
  4. Adham

    طلب ..

    سلام عليكم مسوي شات تيم ومود تاقات اخر في الشات لما بكتب في شات التيم يظهر في شات التيم والعام ال2 مع بعض الناس قلتلي حط داتا في مود التاقات لـ مود التيمات مود التيمات الداتا تبعه if ( getElementData ( "team", true ) ) then مدري م عارف احطه مع التاقات كود التاقات .. function chatbox( text, type) local acc = getPlayerAccount(source) if ChatDisabled then if not isGuestAccount ( acc ) then if not isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Console")) then outputChatBox ( "Chat locked.", source, 255, 150, 0, true ) cancelEvent ( ) return end else outputChatBox ( "Chat locked.", source, 255, 150, 0, true ) cancelEvent() return end end if isGuestAccount ( acc ) then return end local customTag = getAccountData ( acc, "customTag" ) if customTag then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox(customTag.." " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: "..customTag.." " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Console")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#ff0000* [ Console ] " .. getPlayerName ( source ) .. ":#FFcc00 " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Console ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Admin - Ex")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#777777* [ Admin - Ex ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Admin - Ex ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Admin - At")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#777777* [ Admin - At ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Admin - At ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("V.I.P")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FFcc00* [ V.I.P ] " .. getPlayerName ( source ) .. ":#ffffff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ V.I.P ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Police")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#007F7F* [ Police ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Police ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Level 1")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#0593FF* [ Lv.1 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Lv.1 ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Level 2")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#2554c7* [ Lv.2 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Lv.2 ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Level 3")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#0FC615* [ Lv.3 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Lv.3 ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Level 4")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#007000* [ Lv.4 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Lv.4 ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Level 5")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* [ Lv.5 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Lv.5 ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Level 6")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#CC0000* [ Lv.6 ] " .. getPlayerName ( source ) .. ":#0099cc " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Lv.6 ] " .. getPlayerName ( source ) .. ": " .. text) elseif isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Head.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#C11B17* [ Head.Admin ] " .. getPlayerName ( source ) .. ":#0099cc " .. text, getRootElement(), r, g, b, true ) outputServerLog("CHAT: [ Head.Admin ] " .. getPlayerName ( source ) .. ": " .. text) end end addEventHandler("onPlayerChat", getRootElement(), chatbox)
  5. https://wiki.multitheftauto.com/wiki/CreateMarker https://wiki.multitheftauto.com/wiki/OnClientMarkerHit https://wiki.multitheftauto.com/wiki/GetElementType -- player https://wiki.multitheftauto.com/wiki/BindKey https://wiki.multitheftauto.com/wiki/GetPlayerMoney https://wiki.multitheftauto.com/wiki/TakePlayerMoney https://wiki.multitheftauto.com/wiki/SetElementSpeed
  6. انا معطي له الكود وسامح له ياخده وش المشكله الان ؟
  7. Adham

    طلب

    سلام عليكم ابي اسوي جدول وفيه جوائز ويوم يضعط علي زر يكتب بالشات جائزه عشوائيه من الجدول و ابي اسوي لما يضعط علي زر يجي في الشات لكل الاعبين اسم عشوائي من السرفر
  8. انا قولتلك فوق فكشنات ؟
  9. يأريت الرد شباب .
  10. سلام عليكم ورحمه الله وبركاته ابي اكواد انا مسوي قريد لست وحاطط فيه اسم الشخصيه والتاني اي دي الشخصيه والتالت فلوس الشخصيه مثال : local Skins = { {"Cj",0,2000}; } حاطط داتا عليهم ابي لما يضعط علي زر ويحدد شخصيه يشتري شخصيه واذا معه فلوس لا تيجي له الشخصيه الفلوس متححده في الجدول
  11. قلتلك فوق هذا ملف خدو من مود فري روم .!
  12. ذا ملف ب جواء كود هاته من الفري روم.
  13. ورينا الدي بق ؟ جرب : Vehicle = {}, addEvent ( "onGiveCar", true ) addEventHandler ( "onGiveCar", root, function ( ) local x, y, z = getElementPosition ( source ) local _,_,r = getPedRotation ( source ) if isElement( Vehicle[source] ) then destroyElement( Vehicle[source] ) else Vehicle[source] = createVehicle ( ID, x, y, z+1, 0, 0,r) warpPedIntoVehicle ( source,Vehicle[source] ) end end ); لا تنسي اي دي السياره .!
  14. غير مجرب : -- Client -- addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == button ) then triggerServerEvent ( "onGiveCar", localPlayer ) end end ); -- Server -- Vehicle = {}, addEvent ( "onGiveCar", true ) addEventHandler ( "onGiveCar", root, function ( ) local x, y, z = getElementPosition ( source ) local _,_,r = getPedRotation ( source ) if isElement( nVehicle[source] ) then destroyElement( Vehicle[source] ) else Vehicle[source] = createVehicle ( ID, x, y, z+1, 0, 0,r) warpPedIntoVehicle ( source,Vehicle[source] ) end end );
  15. -- Client -- "onClientGUIClick" triggerServerEvent -- Server -- getElementPosition getPedRotation isElement destroyElement createVehicle
  16. علي حسب فهمي , "onClientGUIClick" guiSetEnabled -- false guiSetText setTimer guiSetEnabled -- true
  17. Adham

    طلب .

    سلام عليكم ابي فكشنات لما يكتب في ايديت اسم حساب الاعب ويضعط زرار يدخلو تيم تلقائي هكتب اسمو --- طلب اخر نفس الطلب بس ب اسم الاعب
  18. Adham

    help

    hi all i want save text in gridlist but no want save and no db3 client : triggerServerEvent("load:Columns",localPlayer,localPlayer) function Click ( btn ) if ( source == GUIEditor.checkbox[1] ) then guiCheckBoxSetSelected ( GUIEditor.checkbox[2], not guiCheckBoxGetSelected ( source ) ) elseif ( source == GUIEditor.checkbox[2] ) then guiCheckBoxSetSelected ( GUIEditor.checkbox[1], not guiCheckBoxGetSelected ( source ) ) end if btn == "left" then if ( source == GUIEditor.button[1] ) then local item = guiComboBoxGetSelected ( com ) local card = guiComboBoxGetItemText( com, item ) local name, email, number = guiGetText ( GUIEditor.edit[1] ), guiGetText ( GUIEditor.edit[2] ), guiGetText ( GUIEditor.edit[3] ) if name == "" or number == "" or card == "" or email == "" then return end triggerServerEvent ( "RentSystem:onCreateNewOrder", localPlayer, name, email, number, card ) guiSetEnabled ( GUIEditor.button[1], false ) outMsg ( "تم إرسال الرسالة.", true ) end end addEventHandler ( 'onClientGUIClick', root, Click ) addEvent ( "RentSystem:onSendSubscribePlayers", true ) addEventHandler ( "RentSystem:onSendSubscribePlayers", root, function ( name, email, number, card, Serial, player ) local row = guiGridListAddRow ( GUIEditor.gridlist[4] ) guiGridListSetItemText( GUIEditor.gridlist[4], row, 1,player,false, false) guiGridListSetItemText(GUIEditor.gridlist[4], row, 4, Serial , false, false) guiGridListSetItemText(GUIEditor.gridlist[4], row, 2, card, false, false) guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 1, 255, 255, 0 ) guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 2, 255, 255, 0 ) guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 3, 255, 255, 0 ) guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 4, 255, 255, 0 ) end ) server addEventHandler ("onResourceStart", resourceRoot, function () executeSQLQuery ("CREATE TABLE IF NOT EXISTS `Rent_system` (serial,player,card,Serial)") end ) addEvent ( "load:Columns", true ) addEventHandler ( "load:Columns", root, function ( player ) local result = executeSQLQuery ( "SELECT * FROM `Rent_System` WHERE `serial` = ?", getPlayerSerial (player) ) if ( result and #result == 0 ) then return end triggerClientEvent ( player, "RentSystem:onSendSubscribePlayers", player, result ) end ) addEvent("RentSystem:onCreateNewOrder",true) addEventHandler("RentSystem:onCreateNewOrder",root, function ( name, email, number, card ) if ( name and email and number and card ) then local player = getPlayerName ( source ) local Serial = getPlayerSerial ( source ) local result = executeSQLQuery ( "SELECT * FROM `Rent_system` WHERE `serial` = ?", getPlayerSerial (player) ) if ( result and #result == 0 ) then executeSQLQuery("INSERT INTO `Rent_system` (serial,player,card,Serial) VALUES(?,?,?,?)",getPlayerSerial(source),player,card,serial) end end )
  19. تمام انا ظبتها ابي فكشنات لما يحدد سريال من قريد لست يتفعل له لوحه من حرف خ
  20. الكود فيه مشاكل لما بكتب في لايديت وكلو ويجي في القريد لست لما اضعط ف10 افتح الوحه يضيف الطلب تاني في القريد لست مدري كيف ض1 ولما ارستر المود او اطلع واخش م يتحفظ الطلب يروح .
  21. طيب ,, الموضوع صار سالفه AbuSolo علي وش تضحك @ Master : وشو دخل اسلوبي واهلي بالموضوع ؟؟ انا بقلك اذا م تعرف تسوي الكود خلي غيرك يسوي الكود ونا طارح لك محاولتي فوق وكودك مب اشتغل وحاطط اسامي كل شي وبعدين .. انا ابي لما يكتب في 3 ايديت ويحدد كومب بوكس .. ويضعط علي زر يجي في القريد لست اسم الاعب مب الفيه الايديت اسم الاعب القدم الطلب والتاني الحددو الكومب بوكس والرابع السريال .! ويتحفظ
×
×
  • Create New...