AL-SAYED Posted November 5, 2012 Author Share Posted November 5, 2012 عناد حولته قيم مود بس مايصير سباون له بس يختار فريق وتختفي الصورة Link to comment
3NAD Posted November 5, 2012 Share Posted November 5, 2012 team = createTeam ( "team", 0, 255, 0 ) addEvent ( "setTeam", true ) addEventHandler( "setTeam", root, function ( ) spawnPlayer ( source, x, y, z, 0, skinID, 0, 0, team ) end ) -- x,y,z = إحداثيات -- skinID = الشخصية Link to comment
TAPL Posted November 5, 2012 Share Posted November 5, 2012 لا تنسى الملاحظة ذي Note: setCameraTarget must be used to focus on the player. Also, all players have their camera initially faded out after connect. To ensure that the camera is faded in, please do a fadeCamera after. https://wiki.multitheftauto.com/wiki/SpawnPlayer Link to comment
AL-SAYED Posted November 6, 2012 Author Share Posted November 6, 2012 شكرا تابل انا اضفت فريق ثاني الحين اذا اضغط عليه يصير ببفريق الاولي بس ما يصير للثاني ممكن الحل؟ Link to comment
AL-SAYED Posted November 6, 2012 Author Share Posted November 6, 2012 نفس الا محطوطين في الموضوع cilent Image = guiCreateStaticImage(500, 450, 200, 200, "w.png", false) showCursor(true) function onImageClick() triggerServerEvent("setTeam", localPlayer) guiSetVisible(Image, false) showCursor(false) end addEventHandler("onClientGUIClick", Image, onImageClick) bindKey("F4", "down", function() if not guiGetVisible(Image) then guiSetVisible(Image, true) showCursor(true) end end) server team = createTeam ( "police", 0, 255, 0 ) addEvent ( "setTeam", true ) addEventHandler( "setTeam", root, function ( ) spawnPlayer ( source, 1473.8627929688, -2228.2980957031, 13.3828125, 0, 2, 0, 0, team ) fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 31, 200 ) end ) server team = createTeam ( "grove", 0, 255, 0 ) addEvent ( "setTeam", true ) addEventHandler( "setTeam", root, function ( ) spawnPlayer ( source, 1473.8627929688, -2228.2980957031, 13.3828125, 0, 2, 0, 0, team ) fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 31, 200 ) end ) cilent Image = guiCreateStaticImage(0, 450, 200, 200, "s.png", false) showCursor(true) function onImageClick() triggerServerEvent("setTeam", localPlayer) guiSetVisible(Image, false) showCursor(false) end addEventHandler("onClientGUIClick", Image, onImageClick) bindKey("F4", "down", function() if not guiGetVisible(Image) then guiSetVisible(Image, true) showCursor(true) end end) "setTeams" author="ha7soon" type="gamemode" /> Link to comment
TAPL Posted November 6, 2012 Share Posted November 6, 2012 -- Client Side -- PoliceImage = guiCreateStaticImage(500, 450, 200, 200, "w.png", false) GroveImage = guiCreateStaticImage(0, 450, 200, 200, "s.png", false) showCursor(true) function onImageClick() if source == PoliceImage then triggerServerEvent("setTeam", localPlayer, "Police") elseif source == GroveImage then triggerServerEvent("setTeam", localPlayer, "Grove") end guiSetVisible(PoliceImage, false) guiSetVisible(GroveImage, false) showCursor(false) end addEventHandler("onClientGUIClick", resourceRoot, onImageClick) bindKey("F4", "down", function() if not guiGetVisible(PoliceImage) then guiSetVisible(PoliceImage, true) guiSetVisible(GroveImage, true) showCursor(true) end end) -- Server Side -- PoliceTeam = createTeam("Police", 0, 255, 0) GroveTeam = createTeam("Grove", 0, 255, 0) addEvent("setTeam", true ) addEventHandler("setTeam", root, function(Team) if Team == "Police" then spawnPlayer(source, 1473.86, -2228.3, 13.4, 0, 2, 0, 0, PoliceTeam) giveWeapon(source, 31, 200) elseif Team == "Grove" then spawnPlayer(source, 1473.86, -2228.3, 13.4, 0, 2, 0, 0, GroveTeam) giveWeapon(source, 31, 200) end fadeCamera(source, true) setCameraTarget(source) end) -- Meta.xml -- "setTeams" author="ha7soon" type="gamemode" /> Link to comment
[Blood]Hitman Posted November 9, 2012 Share Posted November 9, 2012 انا جربت هاذي الاكواد المشكلة اذا مات الاعب مايصير يختار فريق ابغيه اذا مات يطلع له الصور ويختار فريق من جديد Link to comment
abu5lf Posted November 9, 2012 Share Posted November 9, 2012 انا جربت هاذي الاكوادالمشكلة اذا مات الاعب مايصير يختار فريق ابغيه اذا مات يطلع له الصور ويختار فريق من جديد جرب .. سويته على السريع addEventHandler ( 'onClientPlayerWasted', getLocalPlayer ( ), function ( ) guiSetVisible ( PoliceImage, true ); guiSetVisible ( GroveImage, true ); showCursor ( true ); end ) Link to comment
AL-SAYED Posted November 10, 2012 Author Share Posted November 10, 2012 hالقائنة تطلع Link to comment
abu5lf Posted November 10, 2012 Share Posted November 10, 2012 hالقائنة تطلع عربي لو سمحت Link to comment
[Blood]Hitman Posted November 10, 2012 Share Posted November 10, 2012 hالقائنة تطلع عربي لو سمحت المشكلة انحلت Link to comment
abu5lf Posted November 10, 2012 Share Posted November 10, 2012 @[blood]Hitman ؟ ha7soon انت ولا المتحدث الرسمي Link to comment
AhmadQTR Posted November 10, 2012 Share Posted November 10, 2012 @[blood]Hitman ؟ ha7soon انت ولا المتحدث الرسمي ههههههههههه Link to comment
[Blood]Hitman Posted November 10, 2012 Share Posted November 10, 2012 لالا انا كانت عندي مشكلة وانت حليتها وعلى مااعتقد حسون جرب وقال ان انحلت Link to comment
AL-SAYED Posted November 16, 2012 Author Share Posted November 16, 2012 -- Client Side -- PoliceImage = guiCreateStaticImage(500, 450, 200, 200, "w.png", false) GroveImage = guiCreateStaticImage(0, 450, 200, 200, "s.png", false) showCursor(true) function onImageClick() if source == PoliceImage then triggerServerEvent("setTeam", localPlayer, "Police") elseif source == GroveImage then triggerServerEvent("setTeam", localPlayer, "Grove") end guiSetVisible(PoliceImage, false) guiSetVisible(GroveImage, false) showCursor(false) end addEventHandler("onClientGUIClick", resourceRoot, onImageClick) bindKey("F4", "down", function() if not guiGetVisible(PoliceImage) then guiSetVisible(PoliceImage, true) guiSetVisible(GroveImage, true) showCursor(true) end end) -- Server Side -- PoliceTeam = createTeam("Police", 0, 255, 0) GroveTeam = createTeam("Grove", 0, 255, 0) addEvent("setTeam", true ) addEventHandler("setTeam", root, function(Team) if Team == "Police" then spawnPlayer(source, 1473.86, -2228.3, 13.4, 0, 2, 0, 0, PoliceTeam) giveWeapon(source, 31, 200) elseif Team == "Grove" then spawnPlayer(source, 1473.86, -2228.3, 13.4, 0, 2, 0, 0, GroveTeam) giveWeapon(source, 31, 200) end fadeCamera(source, true) setCameraTarget(source) end) -- Meta.xml -- "setTeams" author="ha7soon" type="gamemode" /> تابل انا الحين ضفت اياه friendly fire ما يصير ليقدر الفريق يقتل الا معاه Link to comment
AL-SAYED Posted November 16, 2012 Author Share Posted November 16, 2012 local allTeams = getElementsByType ( "team" ) for index, theTeam in ipairs(allTeams) do if ( getTeamFriendlyFire ( theTeam ) == false ) then setTeamFriendlyFire ( theTeam, true ) end end من الويكي Link to comment
abu5lf Posted November 16, 2012 Share Posted November 16, 2012 local allTeams = getElementsByType ( "team" ) for index, theTeam in ipairs(allTeams) do if ( getTeamFriendlyFire ( theTeam ) == false ) then setTeamFriendlyFire ( theTeam, true ) end end من الويكي for _, v in ipairs ( getElementsByType 'team' ) do setTeamFriendlyFire ( v, false ) end جرب Link to comment
TAPL Posted November 21, 2012 Share Posted November 21, 2012 PoliceTeam = createTeam("Police", 0, 255, 0) GroveTeam = createTeam("Grove", 0, 255, 0) setTeamFriendlyFire(PoliceTeam, false) setTeamFriendlyFire(GroveTeam, false) 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