-
Posts
559 -
Joined
-
Last visited
Everything posted by Mr.T9
-
1- ناقصك end 2- bool setCameraMatrix ( player thePlayer, float positionX, float positionY, float positionZ [, float lookAtX, float lookAtY, float lookAtZ, float roll = 0, float fov = 70 ] ) ناسخه من الويكي !
-
اكيد ذا جيمر اللي يتكلمو عنه الكثير يسجل بمليون عضوية
-
اكتب بـ الكونسل debugscript 3 وحط وش يطلعك هنا
-
جرب مو متاكد GUIEditor_Button = {} GUIEditor_Image = {} s = guiCreateWindow(302,239,705,295,"شيلات",false) GUIEditor_Image[1] = guiCreateStaticImage(9,23,208,256,"A.png",false,s) ss = guiCreateGridList(224,23,468,207,false,s) guiGridListSetSelectionMode(ss,2) GUIEditor_Button[1] = guiCreateButton(317,235,134,48,"ايقاف",false,s) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Button[2] = guiCreateButton(472,235,134,48,"تشغيل",false,s) guiSetFont(GUIEditor_Button[2],"default-bold-small") local Namesound = guiGridListAddColumn(ss,"شيلات",0.2) Namesound = { {"أبغى ارفع الصوت"}, {"الهلال والنصر"}, {"يارفيقي"}, {"ياعبد الغني"}, } if ( Namesound ) then for id,Namesound in ipairs(Namesound) do local row = guiGridListAddRow ( ss ) guiGridListSetItemText(ss, row, 1, tostring(Namesound[1]), false, false) end end addEventHandler( "onClientGUIClick", getRootElement(), function () if source == GUIEditor_Button[2] then local selectedRow, selectedCol = guiGridListGetSelectedItem( ss ) local Name = guiGridListGetItemText( ss, selectedRow, selectedCol ) elseif Name == "يارفيقي" then local sound1 = playSound3D("4.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795,true) local sound2 = playSound3D("3.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795,false) local sound3 = playSound3D("1.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795,false) elseif Name == "الهلال والنصر" then local sound2 = playSound3D("3.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795,true) local sound1 = playSound3D("4.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795,false) local sound3 = playSound3D("1.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795,false) elseif Name == "ياعبد الغني" then local sound3 = playSound3D("1.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795,true) local sound3 = playSound3D("1.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795,false) local sound2 = playSound3D("3.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795,false) elseif Name == "أبغى ارفع الصوت" then setSoundVolume(sound, 0.9) end end end )
-
طيب جيب كل مسارات الشيلات اللي عندك واركبها لك بالكود
-
انا مدري وش احط صوت للثانية من نفس الكود مركب على صوت واحد وهو يارفيقي جربه ورد خبر
-
امسك الوظايف "onClientMarkerLeave" ----- اذا كان تبي تحطه بكلنت "onMarkerLeave" ------- اذا تبي تحطه بسيرفر سحب السلاح takeWeapon https://wiki.multitheftauto.com/wiki/TakeWeapon
-
GUIEditor_Button = {} GUIEditor_Image = {} s = guiCreateWindow(302,239,705,295,"شيلات",false) GUIEditor_Image[1] = guiCreateStaticImage(9,23,208,256,"A.png",false,s) ss = guiCreateGridList(224,23,468,207,false,s) guiGridListSetSelectionMode(ss,2) GUIEditor_Button[1] = guiCreateButton(317,235,134,48,"ايقاف",false,s) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Button[2] = guiCreateButton(472,235,134,48,"تشغيل",false,s) guiSetFont(GUIEditor_Button[2],"default-bold-small") local Namesound = guiGridListAddColumn(ss,"شيلات",0.2) Namesound = { {"أبغى ارفع الصوت"}, {"الهلال والنصر"}, {"يارفيقي"}, {"ياعبد الغني"}, } if ( Namesound ) then for id,Namesound in ipairs(Namesound) do local row = guiGridListAddRow ( ss ) guiGridListSetItemText(ss, row, 1, tostring(Namesound[1]), false, false) end end addEventHandler( "onClientGUIClick", getRootElement(), function () if source == GUIEditor_Button[2] then local selectedRow, selectedCol = guiGridListGetSelectedItem( ss ) local Name = guiGridListGetItemText( ss, selectedRow, selectedCol ) if Name == "يارفيقي" then local sound = playSound3D("sound", -1490.0997314453, 762.89318847656, 8.3803997039795) elseif Name == "أبغى ارفع الصوت" then setSoundVolume(sound, 0.9) end end end )
-
جرب GUIEditor_Button = {} GUIEditor_Image = {} s = guiCreateWindow(302,239,705,295,"شيلات",false) GUIEditor_Image[1] = guiCreateStaticImage(9,23,208,256,"A.png",false,s) ss = guiCreateGridList(224,23,468,207,false,s) guiGridListSetSelectionMode(ss,2) guiGridListAddColumn(ss,"شيلات",0.2) for i = 1, 4 do guiGridListAddRow(ss) end guiGridListSetItemText(ss,0,1,"أبغى ارفع الصوت") guiGridListSetItemText(ss,1,1,"الهلال والنصر") guiGridListSetItemText(ss,2,1,"يارفيقي") guiGridListSetItemText(ss,3,1,"ياعبد الغني") GUIEditor_Button[1] = guiCreateButton(317,235,134,48,"ايقاف",false,s) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Button[2] = guiCreateButton(472,235,134,48,"تشغيل",false,s) guiSetFont(GUIEditor_Button[2],"default-bold-small") addEventHandler( "onClientGUIClick", getRootElement(), function () if source == GUIEditor_Button[2] then local selectedRow, selectedCol = guiGridListGetSelectedItem( ss ) local Name = guiGridListGetItemText( ss, selectedRow, selectedCol ) if Name == "يارفيقي" then local sound = playSound3D("sound", -1490.0997314453, 762.89318847656, 8.3803997039795) elseif Name == "أبغى ارفع الصوت" then setSoundVolume(sound, 0.9) end end end )
-
جرب على حق الويكي function UpdateKill() guiGridListClear(GUIEditor_Grid[1]) for i, player in ipairs (getElementsByType ("player")) do local row = guiGridListAddRow(GUIEditor_Grid[1]) local r, g, b = getPlayerNametagColor ( player ) guiGridListSetItemText ( GUIEditor_Grid[1], row, 1, getPlayerName ( player ), false, false ) guiGridListSetItemColor ( GUIEditor_Grid[1], row, r, g, b ) if i == 10 then break end end end addEventHandler("onClientResourceStart",resourceRoot,UpdateKill) addEventHandler("onClientPlayerWasted",root,UpdateKill)
-
جرب كذا طيب ^^ مو متاكد function UpdateKill() guiGridListClear(GUIEditor_Grid[1]) for i, player in ipairs (getElementsByType ("player")) do local row = guiGridListAddRow(GUIEditor_Grid[1]) local Player1 = getPlayerName(player) local co1, co2, co3 = getPlayerNametagColor(player) local Player2 = string.format(Player1,"#%02X%02X%02X",co1, co2, co3) guiGridListSetItemText(GUIEditor_Grid[1], row, 1,Player2, false, false) if i == 10 then break end end end addEventHandler("onClientResourceStart",resourceRoot,UpdateKill) addEventHandler("onClientPlayerWasted",root,UpdateKill)
-
جرب function UpdateKill() guiGridListClear(GUIEditor_Grid[1]) for i, player in ipairs (getElementsByType ("player")) do local row = guiGridListAddRow(GUIEditor_Grid[1]) local Player1 = getPlayerName(player) local Player2 = string.gsub(Player1, "#%x%x%x%x%x%x","") guiGridListSetItemText(GUIEditor_Grid[1], row, 1,Player2, false, false) if i == 10 then break end end end addEventHandler("onClientResourceStart",resourceRoot,UpdateKill) addEventHandler("onClientPlayerWasted",root,UpdateKill)