Mando Posted January 23, 2014 Share Posted January 23, 2014 السلام عليكم ورحمة الله وبركاتة بسم الله الرحمن الرحيم الحين سويت وظيفة التاكسى بس ابي ماركر السيارات يفتح لل اكيوبشن فقط اسم الاكيوبيشن TaxiDriver GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Grid = {} car = { {420} } local occupation = "TaxiDriver" local marker = createMarker( -1405.4761962891, -309.70367431641, 14.1484375, "cylinder", 1.5, 255 ,255, 255, 155) GUIEditor_Window[1] = guiCreateWindow(312,152,165,339,"vehicle",false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9,19,147,274,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"vehicle name",60) GUIEditor_Button[1] = guiCreateButton(9,296,69,34,"ok",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(86,296,70,34,"close",false,GUIEditor_Window[1]) for i,v in ipairs (car) do local carName = getVehicleNameFromModel (v[1]) local row = guiGridListAddRow (GUIEditor_Grid[1]) guiGridListSetItemText (GUIEditor_Grid[1], row, 1, carName, false, true) end function onClientClick (button, state, absoluteX, absoluteYe) if (source == GUIEditor_Button[1]) then if (guiGridListGetSelectedItem (GUIEditor_Grid[1])) then local cars = guiGridListGetItemText (GUIEditor_Grid[1], guiGridListGetSelectedItem (GUIEditor_Grid[1]), 1) triggerServerEvent ("cars", getLocalPlayer(), cars) end end end addEventHandler ("onClientGUIClick", GUIEditor_Button[1], onClientClick) function onClientClick (button, state, absoluteX, absoluteYe) if (source == GUIEditor_Button[2]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end addEventHandler ("onClientGUIClick", GUIEditor_Button[2], onClientClick) addEventHandler("onClientMarkerHit", marker, function ( hitPlayer, matchingDimension ) if ( isElementWithinMarker(hitPlayer, marker) ) then if getElementData (theplayer,"Occupation", "TaxiDriver", true) then if getElementType(hitPlayer) == "player" then guiSetVisible ( GUIEditor_Window[1], true ) showCursor(true) end else outputChatBox ( "you are not in the team", player, 255, 0, 0, true ) end end end ) في التاب شيء اسمة occupation هذه لما اخد الوظيفة بس انا بدي مركرات السيارة تفتح لما اكون TaxiDriver كدا يعني occupation : TaxiDriver Link to comment
al-Kobra Posted January 23, 2014 Share Posted January 23, 2014 اذا كان تيم if getTeamName ( getPlayerTeam ( source ) ) == "اسم التيم" then بدله بالسطر رقم 48 Link to comment
Mando Posted January 23, 2014 Author Share Posted January 23, 2014 ي خوي مو تيم ادخل سيرفر cit2 وشوف في التاب شيء اسمة occupation هذه لو انا في وظيفة الشرطة يجي فيها Police لو انا مزارع يجي Farmar فهمت ؟ هذه المود عندي بس ماني عارف اعملها مثله Link to comment
al-Kobra Posted January 23, 2014 Share Posted January 23, 2014 ي خوي مو تيم ادخل سيرفر cit2 وشوف في التاب شيء اسمة occupation هذه لو انا في وظيفة الشرطة يجي فيها Police لو انا مزارع يجي Farmar فهمت ؟ هذه المود عندي بس ماني عارف اعملها مثله انا ماعندي اللعبة !! المهم ,, قصدك التاب فيه كولومن مال occupation ؟؟ Link to comment
Mando Posted January 23, 2014 Author Share Posted January 23, 2014 ي خوي اسمع انا في التاب مسوي occupation اذا كان في الوظيفة يجي TaxiDriver بس انا معرف اخلي مركر العربيات تفتح له هو بس اذا كان TaxiDriver ----------- Link to comment
al-Kobra Posted January 23, 2014 Share Posted January 23, 2014 if getElementData(getLocalPlayer(), "occupation") == "TaxiDriver" then جرب بدله بالسطر 48 Link to comment
Mando Posted January 23, 2014 Author Share Posted January 23, 2014 if getElementData(getLocalPlayer(), "occupation") == "TaxiDriver" then جرب بدله بالسطر 48 مانفعش ! Link to comment
al-Kobra Posted January 23, 2014 Share Posted January 23, 2014 if getElementData(getLocalPlayer(), "Occupation") == "TaxiDriver" then جربه االحين Link to comment
Mando Posted January 23, 2014 Author Share Posted January 23, 2014 if getElementData(getLocalPlayer(), "Occupation") == "TaxiDriver" then جربه االحين كفووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووو كفووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووو كفووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووووو كفووووووووووووووووووووووووووووووووووووووووووووووووووووووووووو شغال 100% تسلم تسلم تسلم تسلم مشكوررررررررررررررررررررررررررررررررررررررررر تم الافادة من قبل al-Kobra 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