Jump to content

تصحيح خطاء


L3yr

Recommended Posts

السلام عليكم 

انا عملت اللوحه بس  شغلت زر اغلاق لاكن مش عارف اشغل زر انضمام

ياريت تصححولى الكود لكى اتعلم منكم

GUIEditor = {
    tab = {},
    button = {},
    window = {},
    memo = {},
    label = {},
    tabpanel = {},
}
GUIEditor.window[1] = guiCreateWindow(443, 329, 348, 486, "CUA", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000")

GUIEditor.button[1] = guiCreateButton(36, 427, 119, 38, "Joi N", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "sa-header")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000")
GUIEditor.button[3] = guiCreateButton(190, 427, 119, 38, "Close", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[3], "sa-header")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000")
GUIEditor.label[1] = guiCreateLabel(109, 30, 146, 50, "Criminal", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[1], "sa-header")
guiLabelSetColor(GUIEditor.label[1], 195, 69, 60)
GUIEditor.tabpanel[1] = guiCreateTabPanel(84, 153, 173, 115, false, GUIEditor.window[1])

GUIEditor.tab[1] = guiCreateTab("Criminal", GUIEditor.tabpanel[1])

GUIEditor.memo[1] = guiCreateMemo(13, 9, 148, 70, "Enjoy in Criminal we are a famlliy in Criminal Job and Take care", false, GUIEditor.tab[1])
guiMemoSetReadOnly(GUIEditor.memo[1], true)
   guiSetVisible (GUIEditor.window[8], false)

addEventHandler("onClientMarkerHit",marker,
function()
guiSetVisible(GUIEditor.window[8],true)
showCursor(true)
end
)

addEventHandler("onClientGUIClick",root,
function()
if (source == GUIEditor.button[1])
setplayerTeam(GUIEditor.window[1])
getTeamFromName(Criminal)
if (source == GUIEditor.button[3]) then
guiSetVisible(GUIEditor.window[1]),false)
showCursor(false)
end
end
)

واريد اللوحه ما تفتح بوجهى وتفتح للشخص فقط  الى لمس الماركر مش تفتح لكل اللعبين وشكر

Link to comment

-- client side 
-- لكن الماركر مش مصنوع اصنعه 
GUIEditor = {
    tab = {},
    button = {},
    window = {},
    memo = {},
    label = {},
    tabpanel = {},
}
GUIEditor.window[1] = guiCreateWindow(443, 329, 348, 486, "CUA", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000")

GUIEditor.button[1] = guiCreateButton(36, 427, 119, 38, "Joi N", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "sa-header")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000")
GUIEditor.button[3] = guiCreateButton(190, 427, 119, 38, "Close", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[3], "sa-header")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000")
GUIEditor.label[1] = guiCreateLabel(109, 30, 146, 50, "Criminal", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[1], "sa-header")
guiLabelSetColor(GUIEditor.label[1], 195, 69, 60)
GUIEditor.tabpanel[1] = guiCreateTabPanel(84, 153, 173, 115, false, GUIEditor.window[1])

GUIEditor.tab[1] = guiCreateTab("Criminal", GUIEditor.tabpanel[1])

GUIEditor.memo[1] = guiCreateMemo(13, 9, 148, 70, "Enjoy in Criminal we are a famlliy in Criminal Job and Take care", false, GUIEditor.tab[1])
guiMemoSetReadOnly(GUIEditor.memo[1], true)
   guiSetVisible (GUIEditor.window[8], false)


addEventHandler("onClientGUIClick",root,
function()
if (source == GUIEditor.button[1])
triggerServerEvent("JoinCriminal",localPlayer)
if (source == GUIEditor.button[3]) then
guiSetVisible(GUIEditor.window[1]),false)
showCursor(false)
end
end
)

-- server side 


addEvent("JoinCriminal",true)
addEventHandler("JoinCriminal",root,
function ()
    setPlayerTeam(source,getTeamFromName('Criminal'))
	end
)
 

 

Link to comment
    marker = createMarker(x,y,z, "cylinder", 1.5, 0, 255, 255, 255 )
GUIEditor = {
    tab = {},
    button = {},
    window = {},
    memo = {},
    label = {},
    tabpanel = {},
}
GUIEditor.window[1] = guiCreateWindow(443, 329, 348, 486, "CUA", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") 
GUIEditor.button[1] = guiCreateButton(36, 427, 119, 38, "Joi N", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "sa-header")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000")
GUIEditor.button[3] = guiCreateButton(190, 427, 119, 38, "Close", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[3], "sa-header")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000")
GUIEditor.label[1] = guiCreateLabel(109, 30, 146, 50, "Criminal", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[1], "sa-header")
guiLabelSetColor(GUIEditor.label[1], 195, 69, 60)
GUIEditor.tabpanel[1] = guiCreateTabPanel(84, 153, 173, 115, false, GUIEditor.window[1]) 
GUIEditor.tab[1] = guiCreateTab("Criminal", GUIEditor.tabpanel[1]) 
GUIEditor.memo[1] = guiCreateMemo(13, 9, 148, 70, "Enjoy in Criminal we are a famlliy in Criminal Job and Take care", false, GUIEditor.tab[1])
guiMemoSetReadOnly(GUIEditor.memo[1], true)
   guiSetVisible (GUIEditor.window[1], false) 
addEventHandler('onClientMarkerHit',marker,
  function (hitPlayer)
   if  hitPlayer == localPlayer  then
guiSetVisible(GUIEditor.window[1],true)
showCursor(true)
end
end
)
addEventHandler("onClientGUIClick",root,
function()
if source == GUIEditor.button[1] then 
triggerServerEvent("JoinCriminal",localPlayer)
elseif source == GUIEditor.button[3] then
guiSetVisible(GUIEditor.window[1]),false)
showCursor(false)
end
end
) 
addEvent("JoinCriminal",true)
addEventHandler("JoinCriminal",root,
function ()
if getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) ~= "Criminal"  then
team  = getTeamFromName("Criminal")
setPlayerTeam(source,team)
end
)

 

Edited by Ahmed Ly
Link to comment
1 hour ago, Ahmed Ly said:

    marker = createMarker(x,y,z, "cylinder", 1.5, 0, 255, 255, 255 )
GUIEditor = {
    tab = {},
    button = {},
    window = {},
    memo = {},
    label = {},
    tabpanel = {},
}
GUIEditor.window[1] = guiCreateWindow(443, 329, 348, 486, "CUA", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") 
GUIEditor.button[1] = guiCreateButton(36, 427, 119, 38, "Joi N", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "sa-header")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000")
GUIEditor.button[3] = guiCreateButton(190, 427, 119, 38, "Close", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[3], "sa-header")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000")
GUIEditor.label[1] = guiCreateLabel(109, 30, 146, 50, "Criminal", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[1], "sa-header")
guiLabelSetColor(GUIEditor.label[1], 195, 69, 60)
GUIEditor.tabpanel[1] = guiCreateTabPanel(84, 153, 173, 115, false, GUIEditor.window[1]) 
GUIEditor.tab[1] = guiCreateTab("Criminal", GUIEditor.tabpanel[1]) 
GUIEditor.memo[1] = guiCreateMemo(13, 9, 148, 70, "Enjoy in Criminal we are a famlliy in Criminal Job and Take care", false, GUIEditor.tab[1])
guiMemoSetReadOnly(GUIEditor.memo[1], true)
   guiSetVisible (GUIEditor.window[1], false) 
addEventHandler('onClientMarkerHit',marker,
  function (hitPlayer)
   if  hitPlayer == localPlayer  then
guiSetVisible(GUIEditor.window[1],true)
showCursor(true)
end
end
)
addEventHandler("onClientGUIClick",root,
function()
if source == GUIEditor.button[1] then 
triggerServerEvent("JoinCriminal",localPlayer)
elseif source == GUIEditor.button[3] then
guiSetVisible(GUIEditor.window[1]),false)
showCursor(false)
end
end
) 
addEvent("JoinCriminal",true)
addEventHandler("JoinCriminal",root,
function ()
if getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) ~= "Criminal"  then
team  = getTeamFromName("Criminal")
setPlayerTeam(source,team)
end
)

 

شكرا حبيبى ما قصرت والله

1 hour ago, Ahmed Eka said:

-- client side 
-- لكن الماركر مش مصنوع اصنعه 
GUIEditor = {
    tab = {},
    button = {},
    window = {},
    memo = {},
    label = {},
    tabpanel = {},
}
GUIEditor.window[1] = guiCreateWindow(443, 329, 348, 486, "CUA", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000")

GUIEditor.button[1] = guiCreateButton(36, 427, 119, 38, "Joi N", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "sa-header")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000")
GUIEditor.button[3] = guiCreateButton(190, 427, 119, 38, "Close", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[3], "sa-header")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000")
GUIEditor.label[1] = guiCreateLabel(109, 30, 146, 50, "Criminal", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[1], "sa-header")
guiLabelSetColor(GUIEditor.label[1], 195, 69, 60)
GUIEditor.tabpanel[1] = guiCreateTabPanel(84, 153, 173, 115, false, GUIEditor.window[1])

GUIEditor.tab[1] = guiCreateTab("Criminal", GUIEditor.tabpanel[1])

GUIEditor.memo[1] = guiCreateMemo(13, 9, 148, 70, "Enjoy in Criminal we are a famlliy in Criminal Job and Take care", false, GUIEditor.tab[1])
guiMemoSetReadOnly(GUIEditor.memo[1], true)
   guiSetVisible (GUIEditor.window[8], false)


addEventHandler("onClientGUIClick",root,
function()
if (source == GUIEditor.button[1])
triggerServerEvent("JoinCriminal",localPlayer)
if (source == GUIEditor.button[3]) then
guiSetVisible(GUIEditor.window[1]),false)
showCursor(false)
end
end
)

-- server side 


addEvent("JoinCriminal",true)
addEventHandler("JoinCriminal",root,
function ()
    setPlayerTeam(source,getTeamFromName('Criminal'))
	end
)
 

 

شكرا على الرد يا باشا

Link to comment
6 hours ago, Ahmed Ly said:

العفوا

عملتها بس الماركر مش ظاهر عند الشخصه بتاع انضمام للتيم ايه المشكله هنا 

local marker = createMarker (2435.1999511719,-2055.8000488281,13.5, "cylinder", 1, 0, 0, 0, 0 )
local marker = createMarker (1623.6999511719,-1508.5,13.60000038147, "cylinder", 1, 0, 0, 0, 0 )
local marker = createMarker (2331.3000488281,9.6000003814697,26.5, "cylinder", 1, 0, 0, 0, 0 )
local marker = createMarker (2097.1000976563,958.79998779297,10.800000190735, "cylinder", 1, 0, 0, 0, 0 )
local marker = createMarker (1993.0999755859,2297.6999511719,10.800000190735, "cylinder", 1, 0, 0, 0, 0 )
local marker = createMarker (1026.8000488281,2373.6999511719,10.800000190735, "cylinder", 1, 0, 0, 0, 0 )
local marker = createMarker (-2081,305.5,35.5, "cylinder", 1, 0, 0, 0, 0 )
local marker = createMarker (-2161.1999511719,657.29998779297,52.400001525879, "cylinder", 1, 0, 0, 0, 0 )
createBlip (2435.1999511719,-2055.8000488281,13.5, 59 ,2 )
createBlip (1623.6999511719,-1508.5,13.60000038147, 59 ,2 )
createBlip (2331.3000488281,9.6000003814697,26.5, 59 ,2 )
createBlip (2097.1000976563,958.79998779297,10.800000190735, 59 ,2 )
createBlip (1993.0999755859,2297.6999511719,10.800000190735, 59 ,2 )
createBlip (1026.8000488281,2373.6999511719,10.800000190735, 59 ,2 )
createBlip (-2081,305.5,35.5, 59 ,2 )
createBlip (-2161.1999511719,657.29998779297,52.400001525879, 59 ,2 )

GUIEditor = {
    tab = {},
    button = {},
    window = {},
    memo = {},
    label = {},
    tabpanel = {},
}
GUIEditor.window[1] = guiCreateWindow(443, 329, 348, 486, "CUA", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000")
GUIEditor.button[1] = guiCreateButton(36, 427, 119, 38, "Joi N", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "sa-header")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000")
GUIEditor.button[3] = guiCreateButton(190, 427, 119, 38, "Close", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[3], "sa-header")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000")
GUIEditor.label[1] = guiCreateLabel(109, 30, 146, 50, "Criminal", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[1], "sa-header")
guiLabelSetColor(GUIEditor.label[1], 195, 69, 60)
GUIEditor.tabpanel[1] = guiCreateTabPanel(84, 153, 173, 115, false, GUIEditor.window[1])
GUIEditor.tab[1] = guiCreateTab("Criminal", GUIEditor.tabpanel[1])
GUIEditor.memo[1] = guiCreateMemo(13, 9, 148, 70, "Enjoy in Criminal we are a famlliy in Criminal Job and Take care", false, GUIEditor.tab[1])
guiMemoSetReadOnly(GUIEditor.memo[1], true)

   guiSetVisible (GUIEditor.window[1], false)
addEventHandler('onClientMarkerHit',marker,
  function (hitPlayer)
   if  hitPlayer == localPlayer  then
guiSetVisible(GUIEditor.window[1],true)
showCursor(true)
end
end
)
addEventHandler("onClientGUIClick",root,
function()
if source == GUIEditor.button[1] then
triggerServerEvent("JoinCriminal",localPlayer)
elseif source == GUIEditor.button[3] then
guiSetVisible(GUIEditor.window[1]),false)
showCursor(false)
end
end
)

Link to comment
GUIEditor = {
    tab = {},
    button = {},
    window = {},
    memo = {},
    label = {},
    tabpanel = {},
}
GUIEditor.window[1] = guiCreateWindow(443, 329, 348, 486, "CUA", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000")
GUIEditor.button[1] = guiCreateButton(36, 427, 119, 38, "Joi N", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "sa-header")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000")
GUIEditor.button[3] = guiCreateButton(190, 427, 119, 38, "Close", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[3], "sa-header")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000")
GUIEditor.label[1] = guiCreateLabel(109, 30, 146, 50, "Criminal", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[1], "sa-header")
guiLabelSetColor(GUIEditor.label[1], 195, 69, 60)
GUIEditor.tabpanel[1] = guiCreateTabPanel(84, 153, 173, 115, false, GUIEditor.window[1])
GUIEditor.tab[1] = guiCreateTab("Criminal", GUIEditor.tabpanel[1])
GUIEditor.memo[1] = guiCreateMemo(13, 9, 148, 70, "Enjoy in Criminal we are a famlliy in Criminal Job and Take care", false, GUIEditor.tab[1])
guiMemoSetReadOnly(GUIEditor.memo[1], true) 
   guiSetVisible (GUIEditor.window[1], false)

markers = {
{-2406.59229,-593.23560,132.64844,"cylinder"},
{2114.5068359375,-1611.302734375,13.167269706726,"cylinder"}
}
for _,v in ipairs (markers) do
marker = createMarker (v[1],v[2],v[3],v[4],1, 255, 255, 255, 255 )
end

addEventHandler('onClientMarkerHit',marker,
function (hitPlayer)
if  hitPlayer == localPlayer then 
guiSetVisible(GUIEditor.window[1],true)
showCursor(true)
end
end
)
)
addEventHandler("onClientGUIClick",root,
function()
if source == GUIEditor.button[1] then
triggerServerEvent("JoinCriminal",localPlayer)
elseif source == GUIEditor.button[3] then
guiSetVisible(GUIEditor.window[1]),false)
showCursor(false)
end
end
) 

 

Link to comment
28 minutes ago, Ahmed Ly said:

GUIEditor = {
    tab = {},
    button = {},
    window = {},
    memo = {},
    label = {},
    tabpanel = {},
}
GUIEditor.window[1] = guiCreateWindow(443, 329, 348, 486, "CUA", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000")
GUIEditor.button[1] = guiCreateButton(36, 427, 119, 38, "Joi N", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "sa-header")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000")
GUIEditor.button[3] = guiCreateButton(190, 427, 119, 38, "Close", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[3], "sa-header")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000")
GUIEditor.label[1] = guiCreateLabel(109, 30, 146, 50, "Criminal", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[1], "sa-header")
guiLabelSetColor(GUIEditor.label[1], 195, 69, 60)
GUIEditor.tabpanel[1] = guiCreateTabPanel(84, 153, 173, 115, false, GUIEditor.window[1])
GUIEditor.tab[1] = guiCreateTab("Criminal", GUIEditor.tabpanel[1])
GUIEditor.memo[1] = guiCreateMemo(13, 9, 148, 70, "Enjoy in Criminal we are a famlliy in Criminal Job and Take care", false, GUIEditor.tab[1])
guiMemoSetReadOnly(GUIEditor.memo[1], true) 
   guiSetVisible (GUIEditor.window[1], false)

markers = {
{-2406.59229,-593.23560,132.64844,"cylinder"},
{2114.5068359375,-1611.302734375,13.167269706726,"cylinder"}
}
for _,v in ipairs (markers) do
marker = createMarker (v[1],v[2],v[3],v[4],1, 255, 255, 255, 255 )
end

addEventHandler('onClientMarkerHit',marker,
function (hitPlayer)
if  hitPlayer == localPlayer then 
guiSetVisible(GUIEditor.window[1],true)
showCursor(true)
end
end
)
)
addEventHandler("onClientGUIClick",root,
function()
if source == GUIEditor.button[1] then
triggerServerEvent("JoinCriminal",localPlayer)
elseif source == GUIEditor.button[3] then
guiSetVisible(GUIEditor.window[1]),false)
showCursor(false)
end
end
) 

 

هل كده صح 

بس زر join

مش شغال برضو ايه الخطاء

local marker = createMarker (2435.1999511719,-2055.8000488281,13.5, "cylinder", 1, 0, 0, 0, 0 )
local marker = createMarker (1623.6999511719,-1508.5,13.60000038147, "cylinder", 1, 0, 0, 0, 0 )
local marker = createMarker (2331.3000488281,9.6000003814697,26.5, "cylinder", 1, 0, 0, 0, 0 )
local marker = createMarker (2097.1000976563,958.79998779297,10.800000190735, "cylinder", 1, 0, 0, 0, 0 )
local marker = createMarker (1993.0999755859,2297.6999511719,10.800000190735, "cylinder", 1, 0, 0, 0, 0 )
local marker = createMarker (1026.8000488281,2373.6999511719,10.800000190735, "cylinder", 1, 0, 0, 0, 0 )
local marker = createMarker (-2081,305.5,35.5, "cylinder", 1, 0, 0, 0, 0 )
local marker = createMarker (-2161.1999511719,657.29998779297,52.400001525879, "cylinder", 1, 0, 0, 0, 0 )
createBlip (2435.1999511719,-2055.8000488281,13.5, 59 ,2 )
createBlip (1623.6999511719,-1508.5,13.60000038147, 59 ,2 )
createBlip (2331.3000488281,9.6000003814697,26.5, 59 ,2 )
createBlip (2097.1000976563,958.79998779297,10.800000190735, 59 ,2 )
createBlip (1993.0999755859,2297.6999511719,10.800000190735, 59 ,2 )
createBlip (1026.8000488281,2373.6999511719,10.800000190735, 59 ,2 )
createBlip (-2081,305.5,35.5, 59 ,2 )
createBlip (-2161.1999511719,657.29998779297,52.400001525879, 59 ,2 )

GUIEditor = {
    tab = {},
    button = {},
    window = {},
    memo = {},
    label = {},
    tabpanel = {},
}
GUIEditor.window[1] = guiCreateWindow(443, 329, 348, 486, "CUA", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") 
GUIEditor.button[1] = guiCreateButton(36, 427, 119, 38, "Joi N", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "sa-header")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000")
GUIEditor.button[3] = guiCreateButton(190, 427, 119, 38, "Close", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[3], "sa-header")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFF0000")
GUIEditor.label[1] = guiCreateLabel(109, 30, 146, 50, "Criminal", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[1], "sa-header")
guiLabelSetColor(GUIEditor.label[1], 195, 69, 60)
GUIEditor.tabpanel[1] = guiCreateTabPanel(84, 153, 173, 115, false, GUIEditor.window[1]) 
GUIEditor.tab[1] = guiCreateTab("Criminal", GUIEditor.tabpanel[1]) 
GUIEditor.memo[1] = guiCreateMemo(13, 9, 148, 70, "Enjoy in Criminal we are a famlliy in Criminal Job and Take care", false, GUIEditor.tab[1])
guiMemoSetReadOnly(GUIEditor.memo[1], true)


   guiSetVisible (GUIEditor.window[1], false)

addEventHandler("onClientMarkerHit",marker, --عند لمس الماركر المحدد
function()--وظيفة
guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة
showCursor(true) --نظهر الماوس
end --نهاية الوظيفة
)--نهاية قوس الحدث

addEventHandler("onClientGUIClick",root, --عند الضغط على زر
function()--وظيفة
if source == GUIEditor.button[1] then 
triggerServerEvent("JoinCriminal",localPlayer)
elseif (source == GUIEditor.button[3]) then--ان كان الزر = زر الاغلاق
guiSetVisible(GUIEditor.window[1],false)--اغلاق اللوحة
showCursor(false)--اخفاء الماوس
end--نهاية التحقق
end--نهاية الوظيفة
)--نهاية قوس الحدث

 

Link to comment
1 hour ago, #_iMr.[E]coo said:
  1. addEvent("JoinCriminal",true)
  2. addEventHandler("JoinCriminal",root,
  3. function ()
  4. if getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) ~= "Criminal" then
  5. team = getTeamFromName("Criminal")
  6. setPlayerTeam(source,team)
  7. end
  8. )

 

حطه بسيرفر ذا عشان نستقبل الترايقر !

احط هذه الكود فى ملف السرفر بتاع التيم ؟؟

Link to comment
  1. team = createTeam ("Criminal", 255, 0, 0)
  2.  
  3. function joinCriminalTeam(player)    local team = getTeamFromName ("Criminal")   
  4. if (team) then
  5. setPlayerTeam (player,team)        setElementModel (player, 230)      getTeamColor (player, team)        setBlipColor (player, team)       setTeamFriendlyFire ( team, true )                
  6. end          
  7. end 
  8. addCommandHandler("setme",joinCriminalTeam)

 

  1. addEventHandler("onClientGUIClick",root,
  2. function()
  3. if source == GUIEditor.button[1] then
  4. triggerServerEvent("JoinCriminal",localPlayer)
  5. elseif source == GUIEditor.button[3] then
  6. guiSetVisible(GUIEditor.window[1]),false)
  7. showCursor(false)
  8. end
  9. end
  10. )

 

مثل هذه 

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...