-
Posts
2,711 -
Joined
-
Days Won
42
Everything posted by Abdul KariM
-
جرب كذا addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == GUIEditor.button[1] then if guiGetText( GUIEditor.edit[1] ) == "clr" then triggerServerEvent("Send_",localPlayer) end end end ) ; واطرح الميتا
-
يب يب فكرة مره حلوه سويها لاهنت , نبي نشوف ابداعاتك
-
يب يب فكرة مره حلوه سويها لاهنت , نبي نشوف ابداعاتك
-
غير اسم الزر في سطر 4 وغير اسم الايدت في سطر 6
-
غير اسم الزر في سطر 4 وغير اسم الايدت في سطر 6
-
جرب كذا addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == bb then isClear = guiGetText( Edit ) if isClear == "clr" then triggerServerEvent("Send_",localPlayer) end end end ) ;
-
جرب كذا addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == bb then isClear = guiGetText( Edit ) if isClear == "clr" then triggerServerEvent("Send_",localPlayer) end end end ) ;
-
تأكد انك كتبت clr بالايدت وغير اسم الزر سطر 6 اذا ماضبط شوف وش يطلع لك بالدي بوق
-
تأكد انك كتبت clr بالايدت وغير اسم الزر سطر 6 اذا ماضبط شوف وش يطلع لك بالدي بوق
-
جرب كذا كلينت aClear = "clr" addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == bb then isClear = guiGetText( Edit ) if isClear == tostring ( aClear ) then triggerServerEvent("Send_",localPlayer) end end end ) ; سيرفر addEvent("Send_",true) addEventHandler("Send_",root, function ( ) for i , player in ipairs ( getElementsByType ("player") ) do triggerClientEvent ( player ,"Clear_G", player , getPlayerName ( source ) ) end end ) ; كلينت addEvent("Clear_G",true) addEventHandler("Clear_G",root, function ( TheName ) guiGridListClear ( GUIEditor.gridlist[1] ) rw = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1] , rw ,2,"Cleared By "..TheName.." ",false,false) end ) ;
-
جرب كذا كلينت aClear = "clr" addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == bb then isClear = guiGetText( Edit ) if isClear == tostring ( aClear ) then triggerServerEvent("Send_",localPlayer) end end end ) ; سيرفر addEvent("Send_",true) addEventHandler("Send_",root, function ( ) for i , player in ipairs ( getElementsByType ("player") ) do triggerClientEvent ( player ,"Clear_G", player , getPlayerName ( source ) ) end end ) ; كلينت addEvent("Clear_G",true) addEventHandler("Clear_G",root, function ( TheName ) guiGridListClear ( GUIEditor.gridlist[1] ) rw = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1] , rw ,2,"Cleared By "..TheName.." ",false,false) end ) ;
-
فهمنا طيب , كيف تبيه يمسحه درينا انه يكتب في الايدت , يعني لو ضغط زر والي مكتوب بالايدت clr يمسح القريد ليست ولا كيف
-
فهمنا طيب , كيف تبيه يمسحه درينا انه يكتب في الايدت , يعني لو ضغط زر والي مكتوب بالايدت clr يمسح القريد ليست ولا كيف
-
انت تبيها يوم يضغط زر ؟ ويجيب المكتوب بالايدت ويمسح القريد ؟ ولا كيف
-
انت تبيها يوم يضغط زر ؟ ويجيب المكتوب بالايدت ويمسح القريد ؟ ولا كيف
-
اجل استخدم الاكواد الي قلت لك عليها حقت , لو بغى يشتري سيارة
-
اجل استخدم الاكواد الي قلت لك عليها حقت , لو بغى يشتري سيارة
-
وين محاولتك بالايدت + عشان تجيب الي مكتوب بالايدت guiGetText
-
وين محاولتك بالايدت + عشان تجيب الي مكتوب بالايدت guiGetText
-
Client Cars = { {'Monster',9000,580}, {'Frary',10000,570}, } for i , v in ipairs ( Cars ) do Row = guiGridListAddRow ( grid ) guiGridListSetItemText( grid,Row ,1,v[1],false,false); guiGridListSetItemText( grid,Row ,2,v[2],false,false); guiGridListSetItemData ( grid , Row , 1 , v[3] ) end addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == btn then local Se = guiGridListGetSelectedItem( grid ) if Se and Se ~= -1 then local Money = guiGridListGetItemText ( grid, Se, 2 ) local iD = guiGridListGetItemData ( grid , Se , 1 ) triggerServerEvent ( "GiveVehicle",localPlayer , Money , iD ) end end end ) ; local table = { } addEvent("GiveVehicle" ,true) addEventHandler("GiveVehicle" ,root, function ( Money , id ) if isElement( table[ source ] ) then destroyElement ( table[ source] ) end local Money_ = getPlayerMoney ( source ) if Money_ >= tonumber ( Money ) then PosX , PosY , PosZ = getElementPosition ( source ) takePlayerMoney( source , tonumber ( Money ) ) table[ source ] = createVehicle( id , PosX , PosY , PosZ ) outputChatBox("* تم شراء الشخصيه",source ,0,255,0,false) else outputChatBox("* ليس لديك المال الكافي للشراء",source ,255,0,0,false) end end ) ; المفروض اي واحد بغى ينزل موضوع , يقول وش هدفه يتعلم البرمجة , ولا نعطيه الكود جاهز ويتوكل انا اشوف كذا افضل بكثير بالتوفيق
-
Client Cars = { {'Monster',9000,580}, {'Frary',10000,570}, } for i , v in ipairs ( Cars ) do Row = guiGridListAddRow ( grid ) guiGridListSetItemText( grid,Row ,1,v[1],false,false); guiGridListSetItemText( grid,Row ,2,v[2],false,false); guiGridListSetItemData ( grid , Row , 1 , v[3] ) end addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == btn then local Se = guiGridListGetSelectedItem( grid ) if Se and Se ~= -1 then local Money = guiGridListGetItemText ( grid, Se, 2 ) local iD = guiGridListGetItemData ( grid , Se , 1 ) triggerServerEvent ( "GiveVehicle",localPlayer , Money , iD ) end end end ) ; local table = { } addEvent("GiveVehicle" ,true) addEventHandler("GiveVehicle" ,root, function ( Money , id ) if isElement( table[ source ] ) then destroyElement ( table[ source] ) end local Money_ = getPlayerMoney ( source ) if Money_ >= tonumber ( Money ) then PosX , PosY , PosZ = getElementPosition ( source ) takePlayerMoney( source , tonumber ( Money ) ) table[ source ] = createVehicle( id , PosX , PosY , PosZ ) outputChatBox("* تم شراء الشخصيه",source ,0,255,0,false) else outputChatBox("* ليس لديك المال الكافي للشراء",source ,255,0,0,false) end end ) ; المفروض اي واحد بغى ينزل موضوع , يقول وش هدفه يتعلم البرمجة , ولا نعطيه الكود جاهز ويتوكل انا اشوف كذا افضل بكثير بالتوفيق