hunter96 Posted May 26, 2015 Share Posted May 26, 2015 سلام عليكم انا مسوي شوب سيارات المشكلة اللوحة ماتضهر ابي اعرف ويش المشكلة client GUIEditor = { button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() vehiclesshop = guiCreateWindow(115, 203, 235, 264, "VEHICLES SHOP", false) guiWindowSetSizable(vehiclesshop, false) guiSetAlpha(vehiclesshop, 0.70) guiSetProperty(vehiclesshop, "CaptionColour", "FF04F93E") GUIEditor.label[1] = guiCreateLabel(58, 15, 123, 40, "Bicycles", false, vehiclesshop) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 7, 30, 247) GUIEditor.button[1] = guiCreateButton(10, 65, 64, 29, "BIKE", false, vehiclesshop) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFF607DD") GUIEditor.button[2] = guiCreateButton(156, 65, 64, 29, "BMX", false, vehiclesshop) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFF607DD") GUIEditor.label[2] = guiCreateLabel(26, 98, 63, 23, "1500$", false, vehiclesshop) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 255, 0, 0) GUIEditor.label[3] = guiCreateLabel(167, 98, 63, 23, "1500$", false, vehiclesshop) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 255, 0, 0) GUIEditor.label[4] = guiCreateLabel(53, 111, 154, 38, "CARS", false, vehiclesshop) guiSetFont(GUIEditor.label[4], "sa-header") guiLabelSetColor(GUIEditor.label[4], 7, 30, 247) GUIEditor.button[3] = guiCreateButton(12, 155, 91, 36, "SUPER GT", false, vehiclesshop) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFF607DD") GUIEditor.button[4] = guiCreateButton(134, 155, 91, 36, "ZR-350", false, vehiclesshop) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFF607DD") GUIEditor.button[5] = guiCreateButton(134, 208, 91, 36, "INFERNUS", false, vehiclesshop) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFF607DD") GUIEditor.button[6] = guiCreateButton(12, 208, 91, 36, "SULTAN", false, vehiclesshop) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFF607DD") GUIEditor.label[5] = guiCreateLabel(33, 244, 70, 23, "13000$", false, vehiclesshop) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetColor(GUIEditor.label[5], 255, 0, 0) GUIEditor.label[6] = guiCreateLabel(33, 191, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[6], "default-bold-small") guiLabelSetColor(GUIEditor.label[6], 255, 0, 0) GUIEditor.label[7] = guiCreateLabel(155, 191, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetColor(GUIEditor.label[7], 255, 0, 0) GUIEditor.label[8] = guiCreateLabel(155, 241, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[8], "default-bold-small") guiLabelSetColor(GUIEditor.label[8], 255, 0, 0) GUIEditor.button[7] = guiCreateButton(79, 65, 74, 29, "Mountain Bike", false, vehiclesshop) guiSetFont(GUIEditor.button[7], "default-bold-small") guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFF607DD") GUIEditor.label[9] = guiCreateLabel(94, 98, 63, 23, "2500$", false, vehiclesshop) guiSetFont(GUIEditor.label[9], "default-bold-small") guiLabelSetColor(GUIEditor.label[9], 255, 0, 0) end end) server bindKey("F7", "down", OpenWin) outputChatBox("شوب المركبات من صنع هنتر vehicles shop by hunter96 ",255,0,0,true) outputChatBox("TO OPEN vehicles shop PRESS F7 ",255,0,0,true) b1=GUIEditor.button[1] b2=GUIEditor.button[2] b3=GUIEditor.button[3] b4=GUIEditor.button[4] b5=GUIEditor.button[5] b6=GUIEditor.button[6] b7=GUIEditor.button[7] function myCommandHandler(thePlayer, command) local b1 = getElementPosition(thePlayer) if ( b1 >= 1500 ) then takePlayerMoney(1500) triggerServerEvent("onBuy",createVehicle ( 509, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b2 = getElementPosition(thePlayer) if ( b2 >= 1500 ) then takePlayerMoney(1500) triggerServerEvent("onBuy",createVehicle ( 481, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b3 = getElementPosition(thePlayer) if ( b3 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 506, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b4 = getElementPosition(thePlayer) if ( b4 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 477, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b5 = getElementPosition(thePlayer) if ( b5 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 411, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b6 = getElementPosition(thePlayer) if ( b6 >= 13000 ) then takePlayerMoney(13000) triggerServerEvent("onBuy",createVehicle ( 560, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b7 = getElementPosition(thePlayer) if ( b7 >= 2500 ) then takePlayerMoney(2500) triggerServerEvent("onBuy",createVehicle ( 510, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) end end) Link to comment
Ac[T]ioN Posted May 26, 2015 Share Posted May 26, 2015 GUIEditor = { button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, vehiclesshop = guiCreateWindow(115, 203, 235, 264, "VEHICLES SHOP", false) guiWindowSetSizable(vehiclesshop, false) guiSetAlpha(vehiclesshop, 0.70) guiSetProperty(vehiclesshop, "CaptionColour", "FF04F93E") GUIEditor.label[1] = guiCreateLabel(58, 15, 123, 40, "Bicycles", false, vehiclesshop) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 7, 30, 247) GUIEditor.button[1] = guiCreateButton(10, 65, 64, 29, "BIKE", false, vehiclesshop) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFF607DD") GUIEditor.button[2] = guiCreateButton(156, 65, 64, 29, "BMX", false, vehiclesshop) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFF607DD") GUIEditor.label[2] = guiCreateLabel(26, 98, 63, 23, "1500$", false, vehiclesshop) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 255, 0, 0) GUIEditor.label[3] = guiCreateLabel(167, 98, 63, 23, "1500$", false, vehiclesshop) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 255, 0, 0) GUIEditor.label[4] = guiCreateLabel(53, 111, 154, 38, "CARS", false, vehiclesshop) guiSetFont(GUIEditor.label[4], "sa-header") guiLabelSetColor(GUIEditor.label[4], 7, 30, 247) GUIEditor.button[3] = guiCreateButton(12, 155, 91, 36, "SUPER GT", false, vehiclesshop) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFF607DD") GUIEditor.button[4] = guiCreateButton(134, 155, 91, 36, "ZR-350", false, vehiclesshop) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFF607DD") GUIEditor.button[5] = guiCreateButton(134, 208, 91, 36, "INFERNUS", false, vehiclesshop) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFF607DD") GUIEditor.button[6] = guiCreateButton(12, 208, 91, 36, "SULTAN", false, vehiclesshop) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFF607DD") GUIEditor.label[5] = guiCreateLabel(33, 244, 70, 23, "13000$", false, vehiclesshop) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetColor(GUIEditor.label[5], 255, 0, 0) GUIEditor.label[6] = guiCreateLabel(33, 191, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[6], "default-bold-small") guiLabelSetColor(GUIEditor.label[6], 255, 0, 0) GUIEditor.label[7] = guiCreateLabel(155, 191, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetColor(GUIEditor.label[7], 255, 0, 0) GUIEditor.label[8] = guiCreateLabel(155, 241, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[8], "default-bold-small") guiLabelSetColor(GUIEditor.label[8], 255, 0, 0) GUIEditor.button[7] = guiCreateButton(79, 65, 74, 29, "Mountain Bike", false, vehiclesshop) guiSetFont(GUIEditor.button[7], "default-bold-small") guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFF607DD") GUIEditor.label[9] = guiCreateLabel(94, 98, 63, 23, "2500$", false, vehiclesshop) guiSetFont(GUIEditor.label[9], "default-bold-small") guiLabelSetColor(GUIEditor.label[9], 255, 0, 0) end) outputChatBox("شوب المركبات من صنع هنتر vehicles shop by hunter96 ",255,0,0,true) outputChatBox("TO OPEN vehicles shop PRESS F7 ",255,0,0,true) function myCommandHandler(thePlayer, command) local b1 = getElementPosition(thePlayer) if ( b1 >= 1500 ) then takePlayerMoney(1500) triggerServerEvent("onBuy",createVehicle ( 509, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b2 = getElementPosition(thePlayer) if ( b2 >= 1500 ) then takePlayerMoney(1500) triggerServerEvent("onBuy",createVehicle ( 481, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b3 = getElementPosition(thePlayer) if ( b3 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 506, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b4 = getElementPosition(thePlayer) if ( b4 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 477, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b5 = getElementPosition(thePlayer) if ( b5 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 411, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b6 = getElementPosition(thePlayer) if ( b6 >= 13000 ) then takePlayerMoney(13000) triggerServerEvent("onBuy",createVehicle ( 560, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b7 = getElementPosition(thePlayer) if ( b7 >= 2500 ) then takePlayerMoney(2500) triggerServerEvent("onBuy",createVehicle ( 510, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) end end) جرب ماجربت Link to comment
hunter96 Posted May 26, 2015 Author Share Posted May 26, 2015 GUIEditor = { button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, vehiclesshop = guiCreateWindow(115, 203, 235, 264, "VEHICLES SHOP", false) guiWindowSetSizable(vehiclesshop, false) guiSetAlpha(vehiclesshop, 0.70) guiSetProperty(vehiclesshop, "CaptionColour", "FF04F93E") GUIEditor.label[1] = guiCreateLabel(58, 15, 123, 40, "Bicycles", false, vehiclesshop) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 7, 30, 247) GUIEditor.button[1] = guiCreateButton(10, 65, 64, 29, "BIKE", false, vehiclesshop) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFF607DD") GUIEditor.button[2] = guiCreateButton(156, 65, 64, 29, "BMX", false, vehiclesshop) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFF607DD") GUIEditor.label[2] = guiCreateLabel(26, 98, 63, 23, "1500$", false, vehiclesshop) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 255, 0, 0) GUIEditor.label[3] = guiCreateLabel(167, 98, 63, 23, "1500$", false, vehiclesshop) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 255, 0, 0) GUIEditor.label[4] = guiCreateLabel(53, 111, 154, 38, "CARS", false, vehiclesshop) guiSetFont(GUIEditor.label[4], "sa-header") guiLabelSetColor(GUIEditor.label[4], 7, 30, 247) GUIEditor.button[3] = guiCreateButton(12, 155, 91, 36, "SUPER GT", false, vehiclesshop) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFF607DD") GUIEditor.button[4] = guiCreateButton(134, 155, 91, 36, "ZR-350", false, vehiclesshop) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFF607DD") GUIEditor.button[5] = guiCreateButton(134, 208, 91, 36, "INFERNUS", false, vehiclesshop) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFF607DD") GUIEditor.button[6] = guiCreateButton(12, 208, 91, 36, "SULTAN", false, vehiclesshop) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFF607DD") GUIEditor.label[5] = guiCreateLabel(33, 244, 70, 23, "13000$", false, vehiclesshop) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetColor(GUIEditor.label[5], 255, 0, 0) GUIEditor.label[6] = guiCreateLabel(33, 191, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[6], "default-bold-small") guiLabelSetColor(GUIEditor.label[6], 255, 0, 0) GUIEditor.label[7] = guiCreateLabel(155, 191, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetColor(GUIEditor.label[7], 255, 0, 0) GUIEditor.label[8] = guiCreateLabel(155, 241, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[8], "default-bold-small") guiLabelSetColor(GUIEditor.label[8], 255, 0, 0) GUIEditor.button[7] = guiCreateButton(79, 65, 74, 29, "Mountain Bike", false, vehiclesshop) guiSetFont(GUIEditor.button[7], "default-bold-small") guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFF607DD") GUIEditor.label[9] = guiCreateLabel(94, 98, 63, 23, "2500$", false, vehiclesshop) guiSetFont(GUIEditor.label[9], "default-bold-small") guiLabelSetColor(GUIEditor.label[9], 255, 0, 0) end) outputChatBox("شوب المركبات من صنع هنتر vehicles shop by hunter96 ",255,0,0,true) outputChatBox("TO OPEN vehicles shop PRESS F7 ",255,0,0,true) function myCommandHandler(thePlayer, command) local b1 = getElementPosition(thePlayer) if ( b1 >= 1500 ) then takePlayerMoney(1500) triggerServerEvent("onBuy",createVehicle ( 509, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b2 = getElementPosition(thePlayer) if ( b2 >= 1500 ) then takePlayerMoney(1500) triggerServerEvent("onBuy",createVehicle ( 481, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b3 = getElementPosition(thePlayer) if ( b3 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 506, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b4 = getElementPosition(thePlayer) if ( b4 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 477, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b5 = getElementPosition(thePlayer) if ( b5 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 411, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b6 = getElementPosition(thePlayer) if ( b6 >= 13000 ) then takePlayerMoney(13000) triggerServerEvent("onBuy",createVehicle ( 560, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b7 = getElementPosition(thePlayer) if ( b7 >= 2500 ) then takePlayerMoney(2500) triggerServerEvent("onBuy",createVehicle ( 510, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) end end) جرب ماجربت نفس الشي Link to comment
TAPL Posted May 26, 2015 Share Posted May 26, 2015 بالكلينت عندك ايند زيادة و السيرفر خرابيط كله خطأ Link to comment
hunter96 Posted May 26, 2015 Author Share Posted May 26, 2015 بالكلينت عندك ايند زيادة و السيرفر خرابيط كله خطأ اقدر اسويه بس بالكلنت او لازم سيرفر؟؟؟ GUIEditor = { button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() vehiclesshop = guiCreateWindow(115, 203, 235, 264, "VEHICLES SHOP", false) guiWindowSetSizable(vehiclesshop, false) guiSetAlpha(vehiclesshop, 0.70) guiSetProperty(vehiclesshop, "CaptionColour", "FF04F93E") GUIEditor.label[1] = guiCreateLabel(58, 15, 123, 40, "Bicycles", false, vehiclesshop) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 7, 30, 247) GUIEditor.button[1] = guiCreateButton(10, 65, 64, 29, "BIKE", false, vehiclesshop) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFF607DD") GUIEditor.button[2] = guiCreateButton(156, 65, 64, 29, "BMX", false, vehiclesshop) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFF607DD") GUIEditor.label[2] = guiCreateLabel(26, 98, 63, 23, "1500$", false, vehiclesshop) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 255, 0, 0) GUIEditor.label[3] = guiCreateLabel(167, 98, 63, 23, "1500$", false, vehiclesshop) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 255, 0, 0) GUIEditor.label[4] = guiCreateLabel(53, 111, 154, 38, "CARS", false, vehiclesshop) guiSetFont(GUIEditor.label[4], "sa-header") guiLabelSetColor(GUIEditor.label[4], 7, 30, 247) GUIEditor.button[3] = guiCreateButton(12, 155, 91, 36, "SUPER GT", false, vehiclesshop) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFF607DD") GUIEditor.button[4] = guiCreateButton(134, 155, 91, 36, "ZR-350", false, vehiclesshop) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFF607DD") GUIEditor.button[5] = guiCreateButton(134, 208, 91, 36, "INFERNUS", false, vehiclesshop) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFF607DD") GUIEditor.button[6] = guiCreateButton(12, 208, 91, 36, "SULTAN", false, vehiclesshop) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFF607DD") GUIEditor.label[5] = guiCreateLabel(33, 244, 70, 23, "13000$", false, vehiclesshop) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetColor(GUIEditor.label[5], 255, 0, 0) GUIEditor.label[6] = guiCreateLabel(33, 191, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[6], "default-bold-small") guiLabelSetColor(GUIEditor.label[6], 255, 0, 0) GUIEditor.label[7] = guiCreateLabel(155, 191, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetColor(GUIEditor.label[7], 255, 0, 0) GUIEditor.label[8] = guiCreateLabel(155, 241, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[8], "default-bold-small") guiLabelSetColor(GUIEditor.label[8], 255, 0, 0) GUIEditor.button[7] = guiCreateButton(79, 65, 74, 29, "Mountain Bike", false, vehiclesshop) guiSetFont(GUIEditor.button[7], "default-bold-small") guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFF607DD") GUIEditor.label[9] = guiCreateLabel(94, 98, 63, 23, "2500$", false, vehiclesshop) guiSetFont(GUIEditor.label[9], "default-bold-small") guiLabelSetColor(GUIEditor.label[9], 255, 0, 0) addEvent() bindKey("F7", "down", OpenWin) outputChatBox("شوب المركبات من صنع هنتر vehicles shop by hunter96 ",255,0,0,true) outputChatBox("TO OPEN vehicles shop PRESS F7 ",255,0,0,true) b1=GUIEditor.button[1] b2=GUIEditor.button[2] b3=GUIEditor.button[3] b4=GUIEditor.button[4] b5=GUIEditor.button[5] b6=GUIEditor.button[6] b7=GUIEditor.button[7] function myCommandHandler(thePlayer, command) local b1 = getElementPosition(thePlayer) if ( b1 >= 1500 ) then takePlayerMoney(1500) triggerServerEvent("onBuy",createVehicle ( 509, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b2 = getElementPosition(thePlayer) if ( b2 >= 1500 ) then takePlayerMoney(1500) triggerServerEvent("onBuy",createVehicle ( 481, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b3 = getElementPosition(thePlayer) if ( b3 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 506, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b4 = getElementPosition(thePlayer) if ( b4 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 477, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b5 = getElementPosition(thePlayer) if ( b5 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 411, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b6 = getElementPosition(thePlayer) if ( b6 >= 13000 ) then takePlayerMoney(13000) triggerServerEvent("onBuy",createVehicle ( 560, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b7 = getElementPosition(thePlayer) if ( b7 >= 2500 ) then takePlayerMoney(2500) triggerServerEvent("onBuy",createVehicle ( 510, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) end) Link to comment
TAPL Posted May 26, 2015 Share Posted May 26, 2015 حطيته كلينت ولا سيرفر ذا ما يغير الواقع ان الكود نفسه خرابيط و خطأ كامل Link to comment
hunter96 Posted May 26, 2015 Author Share Posted May 26, 2015 حطيته كلينت ولا سيرفر ذا ما يغير الواقع ان الكود نفسه خرابيط و خطأ كامل انزين تقدر اتقول لي ويش استخدم من الاكود عشان اشغل لوحتي GUIEditor = { button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() vehiclesshop = guiCreateWindow(115, 203, 235, 264, "VEHICLES SHOP", false) guiWindowSetSizable(vehiclesshop, false) guiSetAlpha(vehiclesshop, 0.70) guiSetProperty(vehiclesshop, "CaptionColour", "FF04F93E") GUIEditor.label[1] = guiCreateLabel(58, 15, 123, 40, "Bicycles", false, vehiclesshop) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 7, 30, 247) GUIEditor.button[1] = guiCreateButton(10, 65, 64, 29, "BIKE", false, vehiclesshop) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFF607DD") GUIEditor.button[2] = guiCreateButton(156, 65, 64, 29, "BMX", false, vehiclesshop) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFF607DD") GUIEditor.label[2] = guiCreateLabel(26, 98, 63, 23, "1500$", false, vehiclesshop) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 255, 0, 0) GUIEditor.label[3] = guiCreateLabel(167, 98, 63, 23, "1500$", false, vehiclesshop) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 255, 0, 0) GUIEditor.label[4] = guiCreateLabel(53, 111, 154, 38, "CARS", false, vehiclesshop) guiSetFont(GUIEditor.label[4], "sa-header") guiLabelSetColor(GUIEditor.label[4], 7, 30, 247) GUIEditor.button[3] = guiCreateButton(12, 155, 91, 36, "SUPER GT", false, vehiclesshop) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFF607DD") GUIEditor.button[4] = guiCreateButton(134, 155, 91, 36, "ZR-350", false, vehiclesshop) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFF607DD") GUIEditor.button[5] = guiCreateButton(134, 208, 91, 36, "INFERNUS", false, vehiclesshop) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFF607DD") GUIEditor.button[6] = guiCreateButton(12, 208, 91, 36, "SULTAN", false, vehiclesshop) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFF607DD") GUIEditor.label[5] = guiCreateLabel(33, 244, 70, 23, "13000$", false, vehiclesshop) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetColor(GUIEditor.label[5], 255, 0, 0) GUIEditor.label[6] = guiCreateLabel(33, 191, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[6], "default-bold-small") guiLabelSetColor(GUIEditor.label[6], 255, 0, 0) GUIEditor.label[7] = guiCreateLabel(155, 191, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetColor(GUIEditor.label[7], 255, 0, 0) GUIEditor.label[8] = guiCreateLabel(155, 241, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[8], "default-bold-small") guiLabelSetColor(GUIEditor.label[8], 255, 0, 0) GUIEditor.button[7] = guiCreateButton(79, 65, 74, 29, "Mountain Bike", false, vehiclesshop) guiSetFont(GUIEditor.button[7], "default-bold-small") guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFF607DD") GUIEditor.label[9] = guiCreateLabel(94, 98, 63, 23, "2500$", false, vehiclesshop) guiSetFont(GUIEditor.label[9], "default-bold-small") guiLabelSetColor(GUIEditor.label[9], 255, 0, 0) Link to comment
TAPL Posted May 26, 2015 Share Posted May 26, 2015 vehiclesshopماهي معرفه بالجدول جدول ايش؟ ذا متغير النافذة Link to comment
N3xT Posted May 26, 2015 Share Posted May 26, 2015 vehiclesshopماهي معرفه بالجدول جدول ايش؟ ذا متغير النافذة GUIEditor = { button = {}, label = {} } window ماهي معرفهة ولا مب لازم ؟ Link to comment
hunter96 Posted May 26, 2015 Author Share Posted May 26, 2015 شباب احد يعيني الكودات الا لازمتني الحين مااعرف ويش اسوي GUIEditor = { button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() vehiclesshop = guiCreateWindow(115, 203, 235, 264, "VEHICLES SHOP", false) guiWindowSetSizable(vehiclesshop, false) guiSetAlpha(vehiclesshop, 0.70) guiSetProperty(vehiclesshop, "CaptionColour", "FF04F93E") GUIEditor.label[1] = guiCreateLabel(58, 15, 123, 40, "Bicycles", false, vehiclesshop) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 7, 30, 247) GUIEditor.button[1] = guiCreateButton(10, 65, 64, 29, "BIKE", false, vehiclesshop) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFF607DD") GUIEditor.button[2] = guiCreateButton(156, 65, 64, 29, "BMX", false, vehiclesshop) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFF607DD") GUIEditor.label[2] = guiCreateLabel(26, 98, 63, 23, "1500$", false, vehiclesshop) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 255, 0, 0) GUIEditor.label[3] = guiCreateLabel(167, 98, 63, 23, "1500$", false, vehiclesshop) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 255, 0, 0) GUIEditor.label[4] = guiCreateLabel(53, 111, 154, 38, "CARS", false, vehiclesshop) guiSetFont(GUIEditor.label[4], "sa-header") guiLabelSetColor(GUIEditor.label[4], 7, 30, 247) GUIEditor.button[3] = guiCreateButton(12, 155, 91, 36, "SUPER GT", false, vehiclesshop) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFF607DD") GUIEditor.button[4] = guiCreateButton(134, 155, 91, 36, "ZR-350", false, vehiclesshop) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFF607DD") GUIEditor.button[5] = guiCreateButton(134, 208, 91, 36, "INFERNUS", false, vehiclesshop) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFF607DD") GUIEditor.button[6] = guiCreateButton(12, 208, 91, 36, "SULTAN", false, vehiclesshop) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFF607DD") GUIEditor.label[5] = guiCreateLabel(33, 244, 70, 23, "13000$", false, vehiclesshop) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetColor(GUIEditor.label[5], 255, 0, 0) GUIEditor.label[6] = guiCreateLabel(33, 191, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[6], "default-bold-small") guiLabelSetColor(GUIEditor.label[6], 255, 0, 0) GUIEditor.label[7] = guiCreateLabel(155, 191, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetColor(GUIEditor.label[7], 255, 0, 0) GUIEditor.label[8] = guiCreateLabel(155, 241, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[8], "default-bold-small") guiLabelSetColor(GUIEditor.label[8], 255, 0, 0) GUIEditor.button[7] = guiCreateButton(79, 65, 74, 29, "Mountain Bike", false, vehiclesshop) guiSetFont(GUIEditor.button[7], "default-bold-small") guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFF607DD") GUIEditor.label[9] = guiCreateLabel(94, 98, 63, 23, "2500$", false, vehiclesshop) guiSetFont(GUIEditor.label[9], "default-bold-small") guiLabelSetColor(GUIEditor.label[9], 255, 0, 0) end) شباب انا مبتدء ساعدوني Link to comment
iMr.SFA7 Posted May 26, 2015 Share Posted May 26, 2015 onClientGUIClick -- عند الضغط ع الزر getPlayerMoney -- سوي تحقق اذا كانت معاه الفلوس takePlayerMoney -- ياخذ منه الفلوس createVehicle -- يسوي سيارة warpPedIntoVehicle -- ذي اذا تبيه يركب السيارة اول ما يشتريها Link to comment
Ac[T]ioN Posted May 26, 2015 Share Posted May 26, 2015 كلمني سكايب هسويلك الشوب: king.master46 Link to comment
hunter96 Posted May 26, 2015 Author Share Posted May 26, 2015 onClientGUIClick -- عند الضغط ع الزر getPlayerMoney -- سوي تحقق اذا كانت معاه الفلوس takePlayerMoney -- ياخذ منه الفلوس createVehicle -- يسوي سيارة warpPedIntoVehicle -- ذي اذا تبيه يركب السيارة اول ما يشتريها client side GUIEditor = { button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() onClientGUIClick bindKey("F7", "down", OpenWin) vehiclesshop = guiCreateWindow(115, 203, 235, 264, "VEHICLES SHOP", false) guiWindowSetSizable(vehiclesshop, false) guiSetAlpha(vehiclesshop, 0.70) guiSetProperty(vehiclesshop, "CaptionColour", "FF04F93E") GUIEditor.label[1] = guiCreateLabel(58, 15, 123, 40, "Bicycles", false, vehiclesshop) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 7, 30, 247) GUIEditor.button[1] = guiCreateButton(10, 65, 64, 29, "BIKE", false, vehiclesshop) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFF607DD") GUIEditor.button[2] = guiCreateButton(156, 65, 64, 29, "BMX", false, vehiclesshop) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFF607DD") GUIEditor.label[2] = guiCreateLabel(26, 98, 63, 23, "1500$", false, vehiclesshop) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 255, 0, 0) GUIEditor.label[3] = guiCreateLabel(167, 98, 63, 23, "1500$", false, vehiclesshop) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 255, 0, 0) GUIEditor.label[4] = guiCreateLabel(53, 111, 154, 38, "CARS", false, vehiclesshop) guiSetFont(GUIEditor.label[4], "sa-header") guiLabelSetColor(GUIEditor.label[4], 7, 30, 247) GUIEditor.button[3] = guiCreateButton(12, 155, 91, 36, "SUPER GT", false, vehiclesshop) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFF607DD") GUIEditor.button[4] = guiCreateButton(134, 155, 91, 36, "ZR-350", false, vehiclesshop) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFF607DD") GUIEditor.button[5] = guiCreateButton(134, 208, 91, 36, "INFERNUS", false, vehiclesshop) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFF607DD") GUIEditor.button[6] = guiCreateButton(12, 208, 91, 36, "SULTAN", false, vehiclesshop) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFF607DD") GUIEditor.label[5] = guiCreateLabel(33, 244, 70, 23, "13000$", false, vehiclesshop) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetColor(GUIEditor.label[5], 255, 0, 0) GUIEditor.label[6] = guiCreateLabel(33, 191, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[6], "default-bold-small") guiLabelSetColor(GUIEditor.label[6], 255, 0, 0) GUIEditor.label[7] = guiCreateLabel(155, 191, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetColor(GUIEditor.label[7], 255, 0, 0) GUIEditor.label[8] = guiCreateLabel(155, 241, 70, 23, "20000$", false, vehiclesshop) guiSetFont(GUIEditor.label[8], "default-bold-small") guiLabelSetColor(GUIEditor.label[8], 255, 0, 0) GUIEditor.button[7] = guiCreateButton(79, 65, 74, 29, "Mountain Bike", false, vehiclesshop) guiSetFont(GUIEditor.button[7], "default-bold-small") guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFF607DD") GUIEditor.label[9] = guiCreateLabel(94, 98, 63, 23, "2500$", false, vehiclesshop) guiSetFont(GUIEditor.label[9], "default-bold-small") guiLabelSetColor(GUIEditor.label[9], 255, 0, 0) end end) server side function outputChatBox("شوب المركبات من صنع هنتر vehicles shop by hunter96 ",255,0,0,true) outputChatBox("TO OPEN vehicles shop PRESS F7 ",255,0,0,true) b1=GUIEditor.button[1] b2=GUIEditor.button[2] b3=GUIEditor.button[3] b4=GUIEditor.button[4] b5=GUIEditor.button[5] b6=GUIEditor.button[6] b7=GUIEditor.button[7] myCommandHandler(thePlayer, command) local b1 = getPlayerMoney(thePlayer) if ( b1 >= 1500 ) then takePlayerMoney(1500) createVehicle ( 509, 0, 0, 255 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b2 = getPlayerMoney(thePlayer) if ( b2 >= 1500 ) then takePlayerMoney(1500) createVehicle ( 481, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b3 = getPlayerMoney(thePlayer) if ( b3 >= 20000 ) then takePlayerMoney(20000) createVehicle ( 506, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b4 = getPlayerMoney(thePlayer) if ( b4 >= 20000 ) then takePlayerMoney(20000) createVehicle ( 477, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b5 = getPlayerMoney(thePlayer) if ( b5 >= 20000 ) then takePlayerMoney(20000) createVehicle ( 411, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b6 = getPlayerMoney(thePlayer) if ( b6 >= 13000 ) then takePlayerMoney(13000) createVehicle ( 560, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b7 = getPlayerMoney(thePlayer) if ( b7 >= 2500 ) then takePlayerMoney(2500) createVehicle ( 510, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) end end) ويش المشكلة بضبط Link to comment
TAPL Posted May 26, 2015 Share Posted May 26, 2015 تخربط من راسك https://wiki.multitheftauto.com/wiki/Scripting_Introduction Link to comment
Ac[T]ioN Posted May 26, 2015 Share Posted May 26, 2015 لو تبغي أسويلك الشوب كلمني سكايب Link to comment
hunter96 Posted May 26, 2015 Author Share Posted May 26, 2015 تخربط من راسكhttps://wiki.multitheftauto.com/wiki/Scripting_Introduction لو سمحت انا ادور مساعد هنا اذا ما تقدر اتساعدني لو سمحت لا ترد احسن Link to comment
hunter96 Posted May 26, 2015 Author Share Posted May 26, 2015 لو تبغي أسويلك الشوب كلمني سكايب لا شكر امبي اعتمد على نفس امبي افهم في البرمجة اذا في غلط امبي اعرف شنو الغلط وإصلحه يلا الله كريم Link to comment
yazan Posted May 26, 2015 Share Posted May 26, 2015 كودك كامل غلط ما في شي صح الكلنت ما يصلح مع سيرفر لزم تعمل ترايقر Link to comment
MTA-Forever Posted May 26, 2015 Share Posted May 26, 2015 server bindKey("F7", "down", OpenWin) outputChatBox("شوب المركبات من صنع هنتر vehicles shop by hunter96 ",255,0,0,true) outputChatBox("TO OPEN vehicles shop PRESS F7 ",255,0,0,true) b1=GUIEditor.button[1] b2=GUIEditor.button[2] b3=GUIEditor.button[3] b4=GUIEditor.button[4] b5=GUIEditor.button[5] b6=GUIEditor.button[6] b7=GUIEditor.button[7] function myCommandHandler(thePlayer, command) local b1 = getElementPosition(thePlayer) if ( b1 >= 1500 ) then takePlayerMoney(1500) triggerServerEvent("onBuy",createVehicle ( 509, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b2 = getElementPosition(thePlayer) if ( b2 >= 1500 ) then takePlayerMoney(1500) triggerServerEvent("onBuy",createVehicle ( 481, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b3 = getElementPosition(thePlayer) if ( b3 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 506, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b4 = getElementPosition(thePlayer) if ( b4 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 477, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b5 = getElementPosition(thePlayer) if ( b5 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 411, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b6 = getElementPosition(thePlayer) if ( b6 >= 13000 ) then takePlayerMoney(13000) triggerServerEvent("onBuy",createVehicle ( 560, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b7 = getElementPosition(thePlayer) if ( b7 >= 2500 ) then takePlayerMoney(2500) triggerServerEvent("onBuy",createVehicle ( 510, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) end end) بشرفك أن ذا سيرفر سايد ؟ يعني انت مصدق انت ذا سيرفر سايدد ؟ Link to comment
#|_oskar_|# Posted May 27, 2015 Share Posted May 27, 2015 server bindKey("F7", "down", OpenWin) outputChatBox("شوب المركبات من صنع هنتر vehicles shop by hunter96 ",255,0,0,true) outputChatBox("TO OPEN vehicles shop PRESS F7 ",255,0,0,true) b1=GUIEditor.button[1] b2=GUIEditor.button[2] b3=GUIEditor.button[3] b4=GUIEditor.button[4] b5=GUIEditor.button[5] b6=GUIEditor.button[6] b7=GUIEditor.button[7] function myCommandHandler(thePlayer, command) local b1 = getElementPosition(thePlayer) if ( b1 >= 1500 ) then takePlayerMoney(1500) triggerServerEvent("onBuy",createVehicle ( 509, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b2 = getElementPosition(thePlayer) if ( b2 >= 1500 ) then takePlayerMoney(1500) triggerServerEvent("onBuy",createVehicle ( 481, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b3 = getElementPosition(thePlayer) if ( b3 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 506, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b4 = getElementPosition(thePlayer) if ( b4 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 477, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b5 = getElementPosition(thePlayer) if ( b5 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 411, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b6 = getElementPosition(thePlayer) if ( b6 >= 13000 ) then takePlayerMoney(13000) triggerServerEvent("onBuy",createVehicle ( 560, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b7 = getElementPosition(thePlayer) if ( b7 >= 2500 ) then takePlayerMoney(2500) triggerServerEvent("onBuy",createVehicle ( 510, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) end end) بشرفك أن ذا سيرفر سايد ؟ يعني انت مصدق انت ذا سيرفر سايدد ؟ رجال يبي يتعلم البرمجه كذا تحطمه لو تبي تساعده عرفه الخطاء وين مو تضحك علي اخطائه Link to comment
</Mr.Tn6eL> Posted May 27, 2015 Share Posted May 27, 2015 server bindKey("F7", "down", OpenWin) outputChatBox("شوب المركبات من صنع هنتر vehicles shop by hunter96 ",255,0,0,true) outputChatBox("TO OPEN vehicles shop PRESS F7 ",255,0,0,true) b1=GUIEditor.button[1] b2=GUIEditor.button[2] b3=GUIEditor.button[3] b4=GUIEditor.button[4] b5=GUIEditor.button[5] b6=GUIEditor.button[6] b7=GUIEditor.button[7] function myCommandHandler(thePlayer, command) local b1 = getElementPosition(thePlayer) if ( b1 >= 1500 ) then takePlayerMoney(1500) triggerServerEvent("onBuy",createVehicle ( 509, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b2 = getElementPosition(thePlayer) if ( b2 >= 1500 ) then takePlayerMoney(1500) triggerServerEvent("onBuy",createVehicle ( 481, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b3 = getElementPosition(thePlayer) if ( b3 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 506, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b4 = getElementPosition(thePlayer) if ( b4 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 477, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b5 = getElementPosition(thePlayer) if ( b5 >= 20000 ) then takePlayerMoney(20000) triggerServerEvent("onBuy",createVehicle ( 411, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b6 = getElementPosition(thePlayer) if ( b6 >= 13000 ) then takePlayerMoney(13000) triggerServerEvent("onBuy",createVehicle ( 560, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) local b7 = getElementPosition(thePlayer) if ( b7 >= 2500 ) then takePlayerMoney(2500) triggerServerEvent("onBuy",createVehicle ( 510, 0, 0, 0 ) outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true) else outputChatBox("* ليس لديك المال الكافي ",255,0,0,true) end end) بشرفك أن ذا سيرفر سايد ؟ يعني انت مصدق انت ذا سيرفر سايدد ؟ الحين انت مسجل على عشان تسب الرجال Link to comment
Ac[T]ioN Posted May 27, 2015 Share Posted May 27, 2015 تخربط من راسكhttps://wiki.multitheftauto.com/wiki/Scripting_Introduction لو سمحت انا ادور مساعد هنا اذا ما تقدر اتساعدني لو سمحت لا ترد احسن الرجال يقولك إن السكربت لالي مسويه كله مافي شئ يتعدل فيه كله خربان يعني لو تبي أحد يساعدك في تعديله يبقي كذا هو بيسويلك المود كامل + كلمني سكايب هساعدك تشتغل في الشوب صح Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now