AliAlanzi Posted February 25, 2017 Share Posted February 25, 2017 local groupName = '[ARMY]' -- اسم القروب -------------------- RadioMarkerBASE1 = createMarker( 191.73413, 1903.36255, 17.64063-1, "cylinder", 1.5, 150, 0, 150, 255) setElementInterior ( RadioMarkerBASE1, 0 ) setElementDimension ( RadioMarkerBASE1, 0 ) Window_Radio = guiCreateWindow(271, 144, 342, 453, "Radio", false) guiSetVisible(Window_Radio, false) guiWindowSetSizable(Window_Radio, false) button_Play = guiCreateButton(40, 386, 61, 34, "Play", false, Window_Radio) button_Stop = guiCreateButton(127, 386, 61, 34, "Stop", false, Window_Radio) button_Close_Radio = guiCreateButton(290, 406, 33, 29, "x", false, Window_Radio) songGridList = guiCreateGridList(28, 38, 293, 324, false, Window_Radio) guiGridListSetSelectionMode(songGridList,0) songColumn = guiGridListAddColumn(songGridList,"Artist - Title",0.8) songs = { {"طني ورور","http://alshira3.com/uploads/songs/gmylh_6ny_wrwr.mp3"}, {"وديع - قمر زمان","http://www.s1.bagdady.com/songs/ferqat-alorans/garatak-aldenya.mp3"}, {"جورج وسوف - كلامك يأ حبيبي","http://www.al7an.org/songs/mp3/arabic/2008/goerge-wassof-klamk-ya-7bebe/gorg_wassof_kalamak_ya_habeby.mp3"}, {"رابح صقر - شفت الحياه","http://alshira3.com/uploads/songs/shft_al7yah.mp3"}, {"زايد الصالح - ذهب ذهب ","http://alshira3.com/uploads/songs/dhb_dhb.mp3"}, {"زايد الصالح - حكم المؤبد","http://alshira3.com/uploads/songs/7km_aloabd.mp3"}, {"جورج وسوف - ادي الكانو","http://www.al7an.org/songs/mp3/arabic/2008/goerge-wassof-klamk-ya-7bebe/gorg_wassof_ady_elly_kano.mp3"}, {"زايد الصالح - شسويله عشان يحبني","http://www.alshira3.com/songs/zayd-alsalh/17.mp3"}, {"زايد الصالح - سويت فيا","http://alshira3.com/uploads/songs/swyt_fya.mp3"}, {"زايد الصالح - اه من الدنيا","http://alshira3.com/uploads/songs/ah_mn_aldnya.mp3"}, {"زايد الصالح - حبيبي نساني","http://alshira3.com/uploads/songs/7byby_nsany.mp3"}, {"هيفا وهبي -واوا","http://www.al7an.org/songs/mp3/arabic/2010/Hayfa_Wehby_Baby/Haifa_Wehbi-05.El_Wawaa.mp3"}, {"Inna - Sexy Wild","http://www.woo55.pk/adata/741/Inna%20-%20Crazy%20Sexy%20Wild%20(www.SongsLover.Pk).mp3"}, {"Akon - chammak challo","http://brit-asian.com/wp-content/uploads/2011/05/Ra-One-Chamak-Challo-Akon.mp3"}, {"Pitbull - Give Me Everything","http://a.tumblr.com/tumblr_lm8dlxNmwl1qck53eo1.mp3"}, {"PSV-Gangm","http://www.al7an.org/songs/mp3/desco/02.mp3"}, } for i,v in ipairs (songs) do local row = guiGridListAddRow (songGridList) guiGridListSetItemText (songGridList, row, 1, tostring(v[1]), false, true) guiGridListSetItemData (songGridList, row, 1, tostring(v[2])) end function CloseTheGui() guiSetVisible(Window_Radio, false) showCursor(false) end addEventHandler("onClientPlayerWasted", getLocalPlayer(), CloseTheGui) addEventHandler("onClientGUIClick", button_Close_Radio, CloseTheGui, false) function PlayRadio() SongFileB = guiGridListGetItemData(songGridList, guiGridListGetSelectedItem (songGridList), 1) local scheck = guiGridListGetItemText(songGridList, guiGridListGetSelectedItem ( songGridList ), 1) outputChatBox(scheck,255, 255, 0, true ) if scheck then local stationName = guiGridListGetItemText (songGridList, scheck, songColumn) if stationName then triggerServerEvent("SetSongBASE2", localPlayer, SongFileB) else outputChatBox("unknown error") end end end addEventHandler("onClientGUIClick", button_Play, PlayRadio, false) addEvent("StartSongBASE2", true) addEventHandler("StartSongBASE2", root, function(link) if isElement(soundBASE1) then stopSound(soundBASE1) end if not link then return end CloseTheGui() soundBASE1 = playSound3D(link, 191.73413, 1903.36255, 17.64063, true) setElementInterior ( soundBASE1, 0 ) setElementDimension ( soundBASE1, 0 ) setSoundVolume(soundBASE1, 2) setSoundMaxDistance(soundBASE1, 250) end) function SongPlaying (hitPlayer) if getElementType(hitPlayer) == "vehicle" or getElementType(hitPlayer) == "marker" or hitPlayer ~= localPlayer then return end local theGroup = getElementData (hitPlayer , "Group" ) if theGroup == groupName then if isElement(soundBASE1) then stopSound(soundBASE1) end guiSetVisible(Window_Radio, true) showCursor(true) else outputChatBox("group "..groupName.." only",255, 0, 255, true ) end end addEventHandler ("onClientMarkerHit", RadioMarkerBASE1,SongPlaying) function StopRadio() if isElement(soundBASE1) then stopSound(soundBASE1) end triggerServerEvent("SetSongBASE2", localPlayer, false) end addEventHandler("onClientGUIClick", button_Stop, StopRadio, false) الحين الكواد ذي شغل اغاني مخليها في ملف كيلنت صح؟ ولا اخليها ب سيرفر المهم شوفوا اذا في غلط بالكودات عشان الاغنيه ما تشتغل يطلع ماركر و الاغاني بس مافي صوت! Link to comment
فاّرس Posted February 25, 2017 Share Posted February 25, 2017 Lua tag ياليت تحطها ب <> يشوف عندك زي كذا اضغط عليها وحط كودك عشان نقدر نقراه زين خصوصا اني داخل من الجوال مستحيل اقدر اقرأ كودك. Link to comment
AliAlanzi Posted February 25, 2017 Author Share Posted February 25, 2017 local groupName = '[ARMY]' -- اسم القروب -------------------- RadioMarkerBASE1 = createMarker( 191.73413, 1903.36255, 17.64063-1, "cylinder", 1.5, 150, 0, 150, 255) setElementInterior ( RadioMarkerBASE1, 0 ) setElementDimension ( RadioMarkerBASE1, 0 ) Window_Radio = guiCreateWindow(271, 144, 342, 453, "Radio", false) guiSetVisible(Window_Radio, false) guiWindowSetSizable(Window_Radio, false) button_Play = guiCreateButton(40, 386, 61, 34, "Play", false, Window_Radio) button_Stop = guiCreateButton(127, 386, 61, 34, "Stop", false, Window_Radio) button_Close_Radio = guiCreateButton(290, 406, 33, 29, "x", false, Window_Radio) songGridList = guiCreateGridList(28, 38, 293, 324, false, Window_Radio) guiGridListSetSelectionMode(songGridList,0) songColumn = guiGridListAddColumn(songGridList,"Artist - Title",0.8) songs = { {"طني ورور","http://alshira3.com/uploads/songs/gmylh_6ny_wrwr.mp3"}, {"وديع - قمر زمان","http://www.s1.bagdady.com/songs/ferqat-alorans/garatak-aldenya.mp3"}, {"جورج وسوف - كلامك يأ حبيبي","http://www.al7an.org/songs/mp3/arabic/2008/goerge-wassof-klamk-ya-7bebe/gorg_wassof_kalamak_ya_habeby.mp3"}, {"رابح صقر - شفت الحياه","http://alshira3.com/uploads/songs/shft_al7yah.mp3"}, {"زايد الصالح - ذهب ذهب ","http://alshira3.com/uploads/songs/dhb_dhb.mp3"}, {"زايد الصالح - حكم المؤبد","http://alshira3.com/uploads/songs/7km_aloabd.mp3"}, {"جورج وسوف - ادي الكانو","http://www.al7an.org/songs/mp3/arabic/2008/goerge-wassof-klamk-ya-7bebe/gorg_wassof_ady_elly_kano.mp3"}, {"زايد الصالح - شسويله عشان يحبني","http://www.alshira3.com/songs/zayd-alsalh/17.mp3"}, {"زايد الصالح - سويت فيا","http://alshira3.com/uploads/songs/swyt_fya.mp3"}, {"زايد الصالح - اه من الدنيا","http://alshira3.com/uploads/songs/ah_mn_aldnya.mp3"}, {"زايد الصالح - حبيبي نساني","http://alshira3.com/uploads/songs/7byby_nsany.mp3"}, {"هيفا وهبي -واوا","http://www.al7an.org/songs/mp3/arabic/2010/Hayfa_Wehby_Baby/Haifa_Wehbi-05.El_Wawaa.mp3"}, {"Inna - Sexy Wild","http://www.woo55.pk/adata/741/Inna%20-%20Crazy%20Sexy%20Wild%20(www.SongsLover.Pk).mp3"}, {"Akon - chammak challo","http://brit-asian.com/wp-content/uploads/2011/05/Ra-One-Chamak-Challo-Akon.mp3"}, {"Pitbull - Give Me Everything","http://a.tumblr.com/tumblr_lm8dlxNmwl1qck53eo1.mp3"}, {"PSV-Gangm","http://www.al7an.org/songs/mp3/desco/02.mp3"}, } for i,v in ipairs (songs) do local row = guiGridListAddRow (songGridList) guiGridListSetItemText (songGridList, row, 1, tostring(v[1]), false, true) guiGridListSetItemData (songGridList, row, 1, tostring(v[2])) end function CloseTheGui() guiSetVisible(Window_Radio, false) showCursor(false) end addEventHandler("onClientPlayerWasted", getLocalPlayer(), CloseTheGui) addEventHandler("onClientGUIClick", button_Close_Radio, CloseTheGui, false) function PlayRadio() SongFileB = guiGridListGetItemData(songGridList, guiGridListGetSelectedItem (songGridList), 1) local scheck = guiGridListGetItemText(songGridList, guiGridListGetSelectedItem ( songGridList ), 1) outputChatBox(scheck,255, 255, 0, true ) if scheck then local stationName = guiGridListGetItemText (songGridList, scheck, songColumn) if stationName then triggerServerEvent("SetSongBASE2", localPlayer, SongFileB) else outputChatBox("unknown error") end end end addEventHandler("onClientGUIClick", button_Play, PlayRadio, false) addEvent("StartSongBASE2", true) addEventHandler("StartSongBASE2", root, function(link) if isElement(soundBASE1) then stopSound(soundBASE1) end if not link then return end CloseTheGui() soundBASE1 = playSound3D(link, 191.73413, 1903.36255, 17.64063, true) setElementInterior ( soundBASE1, 0 ) setElementDimension ( soundBASE1, 0 ) setSoundVolume(soundBASE1, 2) setSoundMaxDistance(soundBASE1, 250) end) function SongPlaying (hitPlayer) if getElementType(hitPlayer) == "vehicle" or getElementType(hitPlayer) == "marker" or hitPlayer ~= localPlayer then return end local theGroup = getElementData (hitPlayer , "Group" ) if theGroup == groupName then if isElement(soundBASE1) then stopSound(soundBASE1) end guiSetVisible(Window_Radio, true) showCursor(true) else outputChatBox("group "..groupName.." only",255, 0, 255, true ) end end addEventHandler ("onClientMarkerHit", RadioMarkerBASE1,SongPlaying) function StopRadio() if isElement(soundBASE1) then stopSound(soundBASE1) end triggerServerEvent("SetSongBASE2", localPlayer, false) end addEventHandler("onClientGUIClick", button_Stop, StopRadio, false) Link to comment
AliAlanzi Posted February 26, 2017 Author Share Posted February 26, 2017 امسح debugscript 3 امسحه ولا وشش اسوي ض Link to comment
Abu-Solo Posted February 26, 2017 Share Posted February 26, 2017 Just now, Ghost-Gamer said: امسح debugscript 3 امسحه ولا وشش اسوي ض ههههههههههههههههههههههههههههه اكتب في اف 8 debugscript 3 وجيب اللي ب الاحمر و الاصفر Link to comment
AliAlanzi Posted February 26, 2017 Author Share Posted February 26, 2017 و وين اركبهم ض؟؟ Link to comment
_Kinan Posted February 26, 2017 Share Posted February 26, 2017 لا تكربهم ع شي هههههههههههههههههه بس هات صورة عشان نعرف وش المشكلة Link to comment
_Kinan Posted February 26, 2017 Share Posted February 26, 2017 السطور لا تتطابق - اتمنى تحط الملف كامل Link to comment
AliAlanzi Posted February 26, 2017 Author Share Posted February 26, 2017 اخلي ملف الي داخله اكواد ؟ هذا الملف http://up.top4top.net/downloadf-4229s2671-zip.html انتزل اخر شي تلاقي الاكواد Link to comment
AliAlanzi Posted February 26, 2017 Author Share Posted February 26, 2017 http://up.top4top.net/downloadf-422dvuvx1-zip.html ترا في ماركر تصليح سيارات لمن اصلح ما يشتغل و يطلع انه ما يشتغل بس عادي مو مهم Link to comment
_Kinan Posted February 26, 2017 Share Posted February 26, 2017 function start() ob = createObject() mm() end addEventHandler('onResourceStart', resourceRoot, start) function mm() end هذولي سطر 22 و تحت مالهم اي داعي و يسببون اخطاء سطر 235 كل الأكواد الي تحت لازم يكونوا في كلينت شيلهم من السيرفر سطر 211 healthMarkers = مافيه جدول اسمه كذا. عشان تسوي جدول استعمل الطريقة التالية و حطها سطر 207 local healthMarkers = { createMarker(227.10000610352, 1888.6999511719, 16.60000038147, "cylinder", 4.5, 128, 64, 0, 255), } حل المشاكل و قلي وش يصير معك اخر الشي Link to comment
Jw8. Posted February 26, 2017 Share Posted February 26, 2017 8 minutes ago, _Kinan said: function start() ob = createObject() mm() end addEventHandler('onResourceStart', resourceRoot, start) function mm() end هذولي سطر 22 و تحت مالهم اي داعي و يسببون اخطاء سطر 235 كل الأكواد الي تحت لازم يكونوا في كلينت شيلهم من السيرفر سطر 211 healthMarkers = مافيه جدول اسمه كذا. عشان تسوي جدول استعمل الطريقة التالية و حطها سطر 207 local healthMarkers = { createMarker(227.10000610352, 1888.6999511719, 16.60000038147, "cylinder", 4.5, 128, 64, 0, 255), } حل المشاكل و قلي وش يصير معك اخر الشي مب حاطهن كلينت 18 hours ago, Ghost-Gamer said: local groupName = '[ARMY]' -- اسم القروب -------------------- RadioMarkerBASE1 = createMarker( 191.73413, 1903.36255, 17.64063-1, "cylinder", 1.5, 150, 0, 150, 255) setElementInterior ( RadioMarkerBASE1, 0 ) setElementDimension ( RadioMarkerBASE1, 0 ) Window_Radio = guiCreateWindow(271, 144, 342, 453, "Radio", false) guiSetVisible(Window_Radio, false) guiWindowSetSizable(Window_Radio, false) button_Play = guiCreateButton(40, 386, 61, 34, "Play", false, Window_Radio) button_Stop = guiCreateButton(127, 386, 61, 34, "Stop", false, Window_Radio) button_Close_Radio = guiCreateButton(290, 406, 33, 29, "x", false, Window_Radio) songGridList = guiCreateGridList(28, 38, 293, 324, false, Window_Radio) guiGridListSetSelectionMode(songGridList,0) songColumn = guiGridListAddColumn(songGridList,"Artist - Title",0.8) songs = { {"طني ورور","http://alshira3.com/uploads/songs/gmylh_6ny_wrwr.mp3"}, {"وديع - قمر زمان","http://www.s1.bagdady.com/songs/ferqat-alorans/garatak-aldenya.mp3"}, {"جورج وسوف - كلامك يأ حبيبي","http://www.al7an.org/songs/mp3/arabic/2008/goerge-wassof-klamk-ya-7bebe/gorg_wassof_kalamak_ya_habeby.mp3"}, {"رابح صقر - شفت الحياه","http://alshira3.com/uploads/songs/shft_al7yah.mp3"}, {"زايد الصالح - ذهب ذهب ","http://alshira3.com/uploads/songs/dhb_dhb.mp3"}, {"زايد الصالح - حكم المؤبد","http://alshira3.com/uploads/songs/7km_aloabd.mp3"}, {"جورج وسوف - ادي الكانو","http://www.al7an.org/songs/mp3/arabic/2008/goerge-wassof-klamk-ya-7bebe/gorg_wassof_ady_elly_kano.mp3"}, {"زايد الصالح - شسويله عشان يحبني","http://www.alshira3.com/songs/zayd-alsalh/17.mp3"}, {"زايد الصالح - سويت فيا","http://alshira3.com/uploads/songs/swyt_fya.mp3"}, {"زايد الصالح - اه من الدنيا","http://alshira3.com/uploads/songs/ah_mn_aldnya.mp3"}, {"زايد الصالح - حبيبي نساني","http://alshira3.com/uploads/songs/7byby_nsany.mp3"}, {"هيفا وهبي -واوا","http://www.al7an.org/songs/mp3/arabic/2010/Hayfa_Wehby_Baby/Haifa_Wehbi-05.El_Wawaa.mp3"}, {"Inna - Sexy Wild","http://www.woo55.pk/adata/741/Inna%20-%20Crazy%20Sexy%20Wild%20(www.SongsLover.Pk).mp3"}, {"Akon - chammak challo","http://brit-asian.com/wp-content/uploads/2011/05/Ra-One-Chamak-Challo-Akon.mp3"}, {"Pitbull - Give Me Everything","http://a.tumblr.com/tumblr_lm8dlxNmwl1qck53eo1.mp3"}, {"PSV-Gangm","http://www.al7an.org/songs/mp3/desco/02.mp3"}, } for i,v in ipairs (songs) do local row = guiGridListAddRow (songGridList) guiGridListSetItemText (songGridList, row, 1, tostring(v[1]), false, true) guiGridListSetItemData (songGridList, row, 1, tostring(v[2])) end function CloseTheGui() guiSetVisible(Window_Radio, false) showCursor(false) end addEventHandler("onClientPlayerWasted", getLocalPlayer(), CloseTheGui) addEventHandler("onClientGUIClick", button_Close_Radio, CloseTheGui, false) function PlayRadio() SongFileB = guiGridListGetItemData(songGridList, guiGridListGetSelectedItem (songGridList), 1) local scheck = guiGridListGetItemText(songGridList, guiGridListGetSelectedItem ( songGridList ), 1) outputChatBox(scheck,255, 255, 0, true ) if scheck then local stationName = guiGridListGetItemText (songGridList, scheck, songColumn) if stationName then triggerServerEvent("SetSongBASE2", localPlayer, SongFileB) else outputChatBox("unknown error") end end end addEventHandler("onClientGUIClick", button_Play, PlayRadio, false) addEvent("StartSongBASE2", true) addEventHandler("StartSongBASE2", root, function(link) if isElement(soundBASE1) then stopSound(soundBASE1) end if not link then return end CloseTheGui() soundBASE1 = playSound3D(link, 191.73413, 1903.36255, 17.64063, true) setElementInterior ( soundBASE1, 0 ) setElementDimension ( soundBASE1, 0 ) setSoundVolume(soundBASE1, 2) setSoundMaxDistance(soundBASE1, 250) end) function SongPlaying (hitPlayer) if getElementType(hitPlayer) == "vehicle" or getElementType(hitPlayer) == "marker" or hitPlayer ~= localPlayer then return end local theGroup = getElementData (hitPlayer , "Group" ) if theGroup == groupName then if isElement(soundBASE1) then stopSound(soundBASE1) end guiSetVisible(Window_Radio, true) showCursor(true) else outputChatBox("group "..groupName.." only",255, 0, 255, true ) end end addEventHandler ("onClientMarkerHit", RadioMarkerBASE1,SongPlaying) function StopRadio() if isElement(soundBASE1) then stopSound(soundBASE1) end triggerServerEvent("SetSongBASE2", localPlayer, false) end addEventHandler("onClientGUIClick", button_Stop, StopRadio, false) الحين الكواد ذي شغل اغاني مخليها في ملف كيلنت صح؟ ولا اخليها ب سيرفر المهم شوفوا اذا في غلط بالكودات عشان الاغنيه ما تشتغل يطلع ماركر و الاغاني بس مافي صوت! حط هذول في ملف client local groupName = '[ARMY]' -- اسم القروب -------------------- RadioMarkerBASE1 = createMarker( 191.73413, 1903.36255, 17.64063-1, "cylinder", 1.5, 150, 0, 150, 255) setElementInterior ( RadioMarkerBASE1, 0 ) setElementDimension ( RadioMarkerBASE1, 0 ) Window_Radio = guiCreateWindow(271, 144, 342, 453, "Radio", false) guiSetVisible(Window_Radio, false) guiWindowSetSizable(Window_Radio, false) button_Play = guiCreateButton(40, 386, 61, 34, "Play", false, Window_Radio) button_Stop = guiCreateButton(127, 386, 61, 34, "Stop", false, Window_Radio) button_Close_Radio = guiCreateButton(290, 406, 33, 29, "x", false, Window_Radio) songGridList = guiCreateGridList(28, 38, 293, 324, false, Window_Radio) guiGridListSetSelectionMode(songGridList,0) songColumn = guiGridListAddColumn(songGridList,"Artist - Title",0.8) songs = { {"طني ورور","http://alshira3.com/uploads/songs/gmylh_6ny_wrwr.mp3"}, {"وديع - قمر زمان","http://www.s1.bagdady.com/songs/ferqat-alorans/garatak-aldenya.mp3"}, {"جورج وسوف - كلامك يأ حبيبي","http://www.al7an.org/songs/mp3/arabic/2008/goerge-wassof-klamk-ya-7bebe/gorg_wassof_kalamak_ya_habeby.mp3"}, {"رابح صقر - شفت الحياه","http://alshira3.com/uploads/songs/shft_al7yah.mp3"}, {"زايد الصالح - ذهب ذهب ","http://alshira3.com/uploads/songs/dhb_dhb.mp3"}, {"زايد الصالح - حكم المؤبد","http://alshira3.com/uploads/songs/7km_aloabd.mp3"}, {"جورج وسوف - ادي الكانو","http://www.al7an.org/songs/mp3/arabic/2008/goerge-wassof-klamk-ya-7bebe/gorg_wassof_ady_elly_kano.mp3"}, {"زايد الصالح - شسويله عشان يحبني","http://www.alshira3.com/songs/zayd-alsalh/17.mp3"}, {"زايد الصالح - سويت فيا","http://alshira3.com/uploads/songs/swyt_fya.mp3"}, {"زايد الصالح - اه من الدنيا","http://alshira3.com/uploads/songs/ah_mn_aldnya.mp3"}, {"زايد الصالح - حبيبي نساني","http://alshira3.com/uploads/songs/7byby_nsany.mp3"}, {"هيفا وهبي -واوا","http://www.al7an.org/songs/mp3/arabic/2010/Hayfa_Wehby_Baby/Haifa_Wehbi-05.El_Wawaa.mp3"}, {"Inna - Sexy Wild","http://www.woo55.pk/adata/741/Inna%20-%20Crazy%20Sexy%20Wild%20(www.SongsLover.Pk).mp3"}, {"Akon - chammak challo","http://brit-asian.com/wp-content/uploads/2011/05/Ra-One-Chamak-Challo-Akon.mp3"}, {"Pitbull - Give Me Everything","http://a.tumblr.com/tumblr_lm8dlxNmwl1qck53eo1.mp3"}, {"PSV-Gangm","http://www.al7an.org/songs/mp3/desco/02.mp3"}, } for i,v in ipairs (songs) do local row = guiGridListAddRow (songGridList) guiGridListSetItemText (songGridList, row, 1, tostring(v[1]), false, true) guiGridListSetItemData (songGridList, row, 1, tostring(v[2])) end function CloseTheGui() guiSetVisible(Window_Radio, false) showCursor(false) end addEventHandler("onClientPlayerWasted", getLocalPlayer(), CloseTheGui) addEventHandler("onClientGUIClick", button_Close_Radio, CloseTheGui, false) function PlayRadio() SongFileB = guiGridListGetItemData(songGridList, guiGridListGetSelectedItem (songGridList), 1) local scheck = guiGridListGetItemText(songGridList, guiGridListGetSelectedItem ( songGridList ), 1) outputChatBox(scheck,255, 255, 0, true ) if scheck then local stationName = guiGridListGetItemText (songGridList, scheck, songColumn) if stationName then triggerServerEvent("SetSongBASE1", localPlayer, SongFileB) else outputChatBox("unknown error") end end end addEventHandler("onClientGUIClick", button_Play, PlayRadio, false) addEvent("StartSongBASE1", true) addEventHandler("StartSongBASE1", root, function(link) if isElement(soundBASE1) then stopSound(soundBASE1) end if not link then return end CloseTheGui() soundBASE1 = playSound3D(link, 191.73413, 1903.36255, 17.64063, true) setElementInterior ( soundBASE1, 0 ) setElementDimension ( soundBASE1, 0 ) setSoundVolume(soundBASE1, 2) setSoundMaxDistance(soundBASE1, 250) end) function SongPlaying (hitPlayer) if getElementType(hitPlayer) == "vehicle" or getElementType(hitPlayer) == "marker" or hitPlayer ~= localPlayer then return end local theGroup = getElementData (hitPlayer , "Group" ) if theGroup == groupName then if isElement(soundBASE1) then stopSound(soundBASE1) end guiSetVisible(Window_Radio, true) showCursor(true) else outputChatBox("group "..groupName.." only",255, 0, 255, true ) end end addEventHandler ("onClientMarkerHit", RadioMarkerBASE1,SongPlaying) function StopRadio() if isElement(soundBASE1) then stopSound(soundBASE1) end triggerServerEvent("SetSongBASE1", localPlayer, false) end addEventHandler("onClientGUIClick", button_Stop, StopRadio, false) Link to comment
AliAlanzi Posted February 26, 2017 Author Share Posted February 26, 2017 يطلع لي كذا triggered serverside event SetSongBASE1, but event is not added serverside Link to comment
_Kinan Posted February 26, 2017 Share Posted February 26, 2017 22 minutes ago, DmAr511 said: مب حاطهن كلينت حط هذول في ملف client local groupName = '[ARMY]' -- اسم القروب--------------------RadioMarkerBASE1 = createMarker(191.73413, 1903.36255, 17.64063-1, "cylinder", 1.5, 150, 0, 150, 255)setElementInterior ( RadioMarkerBASE1, 0 )setElementDimension ( RadioMarkerBASE1, 0 )Window_Radio = guiCreateWindow(271, 144, 342, 453, "Radio", false)guiSetVisible(Window_Radio, false)guiWindowSetSizable(Window_Radio, false)button_Play = guiCreateButton(40, 386, 61, 34, "Play", false, Window_Radio)button_Stop = guiCreateButton(127, 386, 61, 34, "Stop", false, Window_Radio)button_Close_Radio = guiCreateButton(290, 406, 33, 29, "x", false, Window_Radio)songGridList = guiCreateGridList(28, 38, 293, 324, false, Window_Radio)guiGridListSetSelectionMode(songGridList,0)songColumn = guiGridListAddColumn(songGridList,"Artist - Title",0.8)songs = {{"طني ورور","http://alshira3.com/uploads/songs/gmylh_6ny_wrwr.mp3"},{"وديع - قمر زمان","http://www.s1.bagdady.com/songs/ferqat-alorans/garatak-aldenya.mp3"},{"جورج وسوف - كلامك يأ حبيبي","http://www.al7an.org/songs/mp3/arabic/2008/goerge-wassof-klamk-ya-7bebe/gorg_wassof_kalamak_ya_habeby.mp3"},{"رابح صقر - شفت الحياه","http://alshira3.com/uploads/songs/shft_al7yah.mp3"},{"زايد الصالح - ذهب ذهب ","http://alshira3.com/uploads/songs/dhb_dhb.mp3"},{"زايد الصالح - حكم المؤبد","http://alshira3.com/uploads/songs/7km_aloabd.mp3"},{"جورج وسوف - ادي الكانو","http://www.al7an.org/songs/mp3/arabic/2008/goerge-wassof-klamk-ya-7bebe/gorg_wassof_ady_elly_kano.mp3"},{"زايد الصالح - شسويله عشان يحبني","http://www.alshira3.com/songs/zayd-alsalh/17.mp3"},{"زايد الصالح - سويت فيا","http://alshira3.com/uploads/songs/swyt_fya.mp3"},{"زايد الصالح - اه من الدنيا","http://alshira3.com/uploads/songs/ah_mn_aldnya.mp3"},{"زايد الصالح - حبيبي نساني","http://alshira3.com/uploads/songs/7byby_nsany.mp3"},{"هيفا وهبي -واوا","http://www.al7an.org/songs/mp3/arabic/2010/Hayfa_Wehby_Baby/Haifa_Wehbi-05.El_Wawaa.mp3"},{"Inna - Sexy Wild","http://www.woo55.pk/adata/741/Inna%20-%20Crazy%20Sexy%20Wild%20(www.SongsLover.Pk).mp3"},{"Akon - chammak challo","http://brit-asian.com/wp-content/uploads/2011/05/Ra-One-Chamak-Challo-Akon.mp3"},{"Pitbull - Give Me Everything","http://a.tumblr.com/tumblr_lm8dlxNmwl1qck53eo1.mp3"},{"PSV-Gangm","http://www.al7an.org/songs/mp3/desco/02.mp3"},}for i,v in ipairs (songs) do local row = guiGridListAddRow (songGridList) guiGridListSetItemText (songGridList, row, 1, tostring(v[1]), false, true) guiGridListSetItemData (songGridList, row, 1, tostring(v[2]))endfunction CloseTheGui() guiSetVisible(Window_Radio, false) showCursor(false)endaddEventHandler("onClientPlayerWasted", getLocalPlayer(), CloseTheGui)addEventHandler("onClientGUIClick", button_Close_Radio, CloseTheGui, false)function PlayRadio() SongFileB = guiGridListGetItemData(songGridList, guiGridListGetSelectedItem (songGridList), 1) local scheck = guiGridListGetItemText(songGridList, guiGridListGetSelectedItem ( songGridList ), 1) outputChatBox(scheck,255, 255, 0, true ) if scheck then local stationName = guiGridListGetItemText (songGridList, scheck, songColumn) if stationName then triggerServerEvent("SetSongBASE1", localPlayer, SongFileB) else outputChatBox("unknown error") end endendaddEventHandler("onClientGUIClick", button_Play, PlayRadio, false)addEvent("StartSongBASE1", true)addEventHandler("StartSongBASE1", root,function(link) if isElement(soundBASE1) then stopSound(soundBASE1) end if not link then return end CloseTheGui() soundBASE1 = playSound3D(link, 191.73413, 1903.36255, 17.64063, true) setElementInterior ( soundBASE1, 0 ) setElementDimension ( soundBASE1, 0 ) setSoundVolume(soundBASE1, 2) setSoundMaxDistance(soundBASE1, 250)end)function SongPlaying (hitPlayer) if getElementType(hitPlayer) == "vehicle" or getElementType(hitPlayer) == "marker" or hitPlayer ~= localPlayer then return end local theGroup = getElementData (hitPlayer , "Group" ) if theGroup == groupName then if isElement(soundBASE1) then stopSound(soundBASE1) end guiSetVisible(Window_Radio, true) showCursor(true) else outputChatBox("group "..groupName.." only",255, 0, 255, true ) endendaddEventHandler ("onClientMarkerHit", RadioMarkerBASE1,SongPlaying)function StopRadio() if isElement(soundBASE1) then stopSound(soundBASE1) end triggerServerEvent("SetSongBASE1", localPlayer, false)endaddEventHandler("onClientGUIClick", button_Stop, StopRadio, false) طيب انا وش قلت؟ ما ادري انت غبي ولا تتغابى علينا؟ ممكن توريني الميتا حقك؟ Link to comment
AliAlanzi Posted February 26, 2017 Author Share Posted February 26, 2017 <meta> <info type="map" version="1.0.0"></info> <map src="Army-Base-By-Ghost-gamer.map" dimension="0"></map> <script src="start.lua" type="script"></script> <script src="server.lua" type="server"></script> <script src="blip.lua" type="client"></script> <script src="client.lua" type="client"></script> <script src="mapEditorScriptingExtension_s.lua" type="server"></script> <script src="mapEditorScriptingExtension_c.lua" type="client"></script> </meta> Link to comment
_Kinan Posted February 26, 2017 Share Posted February 26, 2017 39 minutes ago, Ghost-Gamer said: <meta> <info type="map" version="1.0.0"></info> <map src="Army-Base-By-Ghost-gamer.map" dimension="0"></map> <script src="start.lua" type="script"></script> <script src="server.lua" type="server"></script> <script src="blip.lua" type="client"></script> <script src="client.lua" type="client"></script> <script src="mapEditorScriptingExtension_s.lua" type="server"></script> <script src="mapEditorScriptingExtension_c.lua" type="client"></script> </meta> سطر الرابع type="script" مافيه. لازم إما server او client او both Link to comment
AliAlanzi Posted February 26, 2017 Author Share Posted February 26, 2017 (edited) ترا ذا ماب مب سكربت او شي #Edit: كيف اخليه يششششششششتغل حق اغاني Edited February 26, 2017 by Ghost-Gamer Link to comment
Jw8. Posted February 26, 2017 Share Posted February 26, 2017 4 hours ago, Ghost-Gamer said: ترا ذا ماب مب سكربت او شي #Edit: كيف اخليه يششششششششتغل حق اغاني تتستهبل انت ؟ اقول لك حط ملفات كلينت + ملفات سيرفر في Link to comment
Master_MTA Posted February 26, 2017 Share Posted February 26, 2017 5 hours ago, Ghost-Gamer said: ترا ذا ماب مب سكربت او شي #Edit: كيف اخليه يششششششششتغل حق اغاني اعذرني في العاده اتعصب من اللي يقول كذا لكن تبي قهوه بعد (ما قدرت اتحمل) Link to comment
Abu-Solo Posted February 27, 2017 Share Posted February 27, 2017 14 hours ago, Master_MTA said: اعذرني في العاده اتعصب من اللي يقول كذا لكن تبي قهوه بعد (ما قدرت اتحمل) المفروض يحاول يحل المشكله بنفسه ... افتح الـ debugscript 3 ي باشا وقول وش يجيك من أخطاء ي صاحب الموضوع 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