TD[M]ER Posted December 13, 2012 Share Posted December 13, 2012 السلام عليكم ورحمةة اللهه وبركاتهه اذا سويتت ماركر وعند لمسها تفتح نافذهـ والنافذهـ هذي مابيها تفتح الا لـ تيم واحدد كيف اسويها ؟ :] وشكرا Link to comment
BeCooL Posted December 13, 2012 Share Posted December 13, 2012 السلام عليكم ورحمةة اللهه وبركاتههاذا سويتت ماركر وعند لمسها تفتح نافذهـ والنافذهـ هذي مابيها تفتح الا لـ تيم واحدد كيف اسويها ؟ :] وشكرا if ( getTeamName ( getPlayerTeam ( hitPlayer ) ) == "اسم التيم" ) then Link to comment
TD[M]ER Posted December 13, 2012 Author Share Posted December 13, 2012 هذا الكود يفتح اللوحة لتيم واحد فقط صح ؟ يعني اي تيم ثاني ماتنفتح له ؟ Link to comment
TD[M]ER Posted December 13, 2012 Author Share Posted December 13, 2012 client.lua 14 : bad argrument @'getTeamName' =\ Link to comment
TD[M]ER Posted December 13, 2012 Author Share Posted December 13, 2012 local Marker = createMarker( x,y,z,'cylinder',size,255,0,0,0 ) --- انا خافي الاحداثيات :] function marker(player,hitPlayer) if ( getTeamName ( getPlayerTeam ( hitPlayer ) ) == "team" ) then guiSetVisible ( wnd , true ) showCursor ( true ) end end addEventHandler("onClientMarkerHit", Marker, marker) ملاحظه : التيم ملف سيرفر والكود ذا ملف كلنت =] Link to comment
==>ҭᾄlᾄl Posted December 13, 2012 Share Posted December 13, 2012 local Marker = createMarker( x,y,z,'cylinder',size,255,0,0,0 ) --- انا خافي الاحداثيات :] function marker(player,hitPlayer) if ( getTeamName ( getPlayerTeam ( hitPlayer ) ) == "team" ) then guiSetVisible ( wnd , true ) showCursor ( true ) end end addEventHandler("onClientMarkerHit", Marker, marker) ملاحظه : التيم ملف سيرفر والكود ذا ملف كلنت =] بدل "team" ب getTeamFromName("team") Link to comment
3NAD Posted December 13, 2012 Share Posted December 13, 2012 theMarker = createMarker( x, y, z, "cylinder", size, 255, 0, 0, 0 ) function marker ( thePlayer ) if getTeamName ( getPlayerTeam ( thePlayer ) ) == "team" then guiSetVisible ( wnd , true ) showCursor ( true ) end end addEventHandler ( "onClientMarkerHit", theMarker, marker ) Link to comment
TAPL Posted December 13, 2012 Share Posted December 13, 2012 local Marker = createMarker(x, y, z, "cylinder", size, 255, 0, 0, 0) function marker(player) if getElementType(player) == "player" and player == localPlayer then if getPlayerTeam(player) == getTeamFromName("team") then guiSetVisible(wnd, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", Marker, marker) Link to comment
TD[M]ER Posted December 13, 2012 Author Share Posted December 13, 2012 thanx TAPL thax 3NAD thanx TaLaL =D Link to comment
Bssol Posted December 13, 2012 Share Posted December 13, 2012 local Marker = createMarker(x, y, z, "cylinder", size, 255, 0, 0, 0) function marker(player) if getElementType(player) == "player" and player == localPlayer then if getPlayerTeam(player) == getTeamFromName("team") then guiSetVisible(wnd, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", Marker, marker) هنا، قد تكون في احتمالية ان اللاعب مو في تيم، وان التيم ما يكون موجود، لكذا قد يحدث خطأ وتفتح النافذة للاعب function marker(player) if getElementType(player) == "player" and player == localPlayer then local pTeam = getPlayerTeam(player) if ( pTeam ) and ( pTeam == getTeamFromName("team") ) then guiSetVisible(wnd, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", Marker, marker) Link to comment
TD[M]ER Posted December 13, 2012 Author Share Posted December 13, 2012 يعطيكـ العافيهه بسول ماقصرت واللهه :] 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