فاّرس Posted April 16, 2013 Share Posted April 16, 2013 local marker2 = createMarker ( 1569.79174, -1221.71789, 277.87799, "cylinder",5, 255, 255, 255, 170 ); function markerHit(player) if ( getElementType(player) == "player" and source == marker2 ) then local setElementPosition(localPlayer,1305.16662,-3803.40917,3.178618) end end addEventHandler("onClientMarkerHit", marker2,markerHit) وش الخطأ ؟ Link to comment
iPrestege Posted April 16, 2013 Share Posted April 16, 2013 local marker2 = createMarker ( 1569.79174, -1221.71789, 277.87799, "cylinder",5, 255, 255, 255, 170 ); function markerHit(player) if ( player == localPlayer ) then setElementPosition(player,1305.16662,-3803.40917,3.178618) end end addEventHandler("onClientMarkerHit", marker2,markerHit) Link to comment
PaiN^ Posted April 16, 2013 Share Posted April 16, 2013 local marker2 = createMarker ( 1569.79174, -1221.71789, 277.87799, "cylinder",5, 255, 255, 255, 170 ); function markerHit( player ) if player == localPlayer then setElementPosition ( player, 1305.16662, -3803.40917, 3.178618 ); end end addEventHandler( "onClientMarkerHit", marker2, markerHit ); Link to comment
فاّرس Posted April 16, 2013 Author Share Posted April 16, 2013 يعطيك العافيهه,, + car = createVehicle(...) for _,v in ipairs(getElementsByType("player")) do warpPedIntoVehicle(v,car) ^ كذا بيصير لكل اللاعبين كيف اخليه للاعب واحج الي هو بيلمس الماركر؟ Link to comment
Max+ Posted April 16, 2013 Share Posted April 16, 2013 (edited) Fixed , if getElementType(player) == "player" then warpPedIntoVehicle(player, car ) Edited April 16, 2013 by Guest Link to comment
#Al-Ha[J]aRii Posted April 16, 2013 Share Posted April 16, 2013 if (getElementByType(player ) == 'player' then warpPedIntoVehicle(player, car ) if (getElementsByType(player ) == 'player' then warpPedIntoVehicle(player, car ) Link to comment
Max+ Posted April 16, 2013 Share Posted April 16, 2013 if (getElementByType(player ) == 'player' then warpPedIntoVehicle(player, car ) if (getElementsByType(player ) == 'player' then warpPedIntoVehicle(player, car ) This function is used to retrieve a list of all elements ,, هو يبي لشخص مأيبي للجميع , Link to comment
فاّرس Posted April 16, 2013 Author Share Posted April 16, 2013 Fixed , if getElementType(player) == "player" then warpPedIntoVehicle(player, car ) يعطيك العافيه Link to comment
فاّرس Posted April 17, 2013 Author Share Posted April 17, 2013 local Marker = createMarker (... ); function MarkerHit(player) if ( getElementType(player) == "player" and source == Marker ) then setCameraMatrix( ... ) setTimer(setCameraTarget, 1000, 1, player) end end addEventHandler("onClientMarkerHit",Marker,MarkerHit); يوجه الكاميرا لكل اللاعبين ليه؟ Link to comment
iPrestege Posted April 17, 2013 Share Posted April 17, 2013 local Marker = createMarker (... ); function MarkerHit(player) if ( player == localPlayer ) then setCameraMatrix( ... ) setTimer(setCameraTarget, 1000, 1, player) end end addEventHandler("onClientMarkerHit",Marker,MarkerHit); Link to comment
فاّرس Posted April 17, 2013 Author Share Posted April 17, 2013 local Marker = createMarker (... ); function MarkerHit(player) if ( player == localPlayer ) then setCameraMatrix( ... ) setTimer(setCameraTarget, 1000, 1, player) end end addEventHandler("onClientMarkerHit",Marker,MarkerHit); واذا كذآ, car = createVehicle(...) local marker2 = createMarker ( ... ); function markerHit(player) if getElementType(player) == "player" then warpPedIntoVehicle(player, car ) end end addEventHandler("onMarkerHit", marker2,markerHit) Link to comment
فاّرس Posted April 17, 2013 Author Share Posted April 17, 2013 وش المشكلة آنآ اخاف ينقل كل اللاعبين, لاني ما ادري بينقلهم ولا لا لاني اجربه لحالي,, Link to comment
iPrestege Posted April 17, 2013 Share Posted April 17, 2013 بينقل الاعب نفسة اللي لمسة 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