Jump to content

تصليح الاكواد


AliAlanzi

Recommended Posts

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

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

 

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
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
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
<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
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
14 hours ago, Master_MTA said:

اعذرني في العاده اتعصب من اللي يقول كذا لكن تبي قهوه بعد

(ما قدرت اتحمل)

:D

المفروض يحاول يحل المشكله بنفسه ...

افتح الـ

debugscript 3 ي باشا

وقول وش يجيك من أخطاء

ي صاحب الموضوع

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...