MR:SADIQ Posted March 6, 2013 Share Posted March 6, 2013 (edited) مطلوب شباب كود ماركر ادا تدخل فيه بسيارة تصلح وسلام عليكم Edited March 6, 2013 by Guest Link to comment
iPrestege Posted March 6, 2013 Share Posted March 6, 2013 createMarker getPedOccupiedVehicle fixVehicle "onMarkerHit" Link to comment
Quited Posted March 6, 2013 Share Posted March 6, 2013 createMarker getPedOccupiedVehicle fixVehicle onMarkerHit Link to comment
MR:SADIQ Posted March 6, 2013 Author Share Posted March 6, 2013 كدا marker = createMarker( 2173.8000488281, 1012.5999755859, 10.800000190735, 'cylinder', 0.5, 255, 0, 0, 150 ) function showVehicleName ( thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) if theVehicle then outputChatBox ( "Name of the Vehicle: " .. getVehicleName ( theVehicle ), thePlayer ) else outputChatBox ( "You do not have a Vehicle!", thePlayer, 255, 0, 0, true ) end end addCommandHandler ( "getcarname", showVehicleName) vehicleKey, vehicleValue in ipairs(vehicles) do -- fix the vehicle fixVehicle ( vehicleValue ) end Link to comment
iPrestege Posted March 6, 2013 Share Posted March 6, 2013 Server Side#, marker = createMarker ( x,y,z,"cylinder", 2, 255, 255, 0, 225 ) addEventHandler("onMarkerHit",marker, function (player) if (getElementType (player) == "player") and isPedInVehicle(player) then fixVehicle(getPedOccupiedVehicle(player)) outputChatBox("** | Vehicle Fixed | **",player,255,255,0,true) end end ) Link to comment
MR:SADIQ Posted March 6, 2013 Author Share Posted March 6, 2013 Server Side#, marker = createMarker ( x,y,z,"cylinder", 2, 255, 255, 0, 225 ) addEventHandler("onMarkerHit",marker, function (player) if (getElementType (player) == "player") and isPedInVehicle(player) then fixVehicle(getPedOccupiedVehicle(player)) outputChatBox("** | Vehicle Fixed | **",player,255,255,0,true) end end ) تسلم عزيزي Link to comment
iMr.Dawix~# Posted March 7, 2013 Share Posted March 7, 2013 Server Side#, marker = createMarker ( x,y,z,"cylinder", 2, 255, 255, 0, 225 ) addEventHandler("onMarkerHit",marker, function (player) if (getElementType (player) == "player") and isPedInVehicle(player) then fixVehicle(getPedOccupiedVehicle(player)) outputChatBox("** | Vehicle Fixed | **",player,255,255,0,true) end end ) event"onMarkerHit" ---اتوقع انه سيرفر مهو كلنت Link to comment
HsSoN Posted March 7, 2013 Share Posted March 7, 2013 ضااوي اصلا شغال شغال يعني مايحتاج كلنت و لا سيرفر . Link to comment
jafar Posted March 7, 2013 Share Posted March 7, 2013 Server Side#, marker = createMarker ( x,y,z,"cylinder", 2, 255, 255, 0, 225 ) addEventHandler("onMarkerHit",marker, function (player) if (getElementType (player) == "player") and isPedInVehicle(player) then fixVehicle(getPedOccupiedVehicle(player)) outputChatBox("** | Vehicle Fixed | **",player,255,255,0,true) end end ) event"onMarkerHit" ---اتوقع انه سيرفر مهو كلنت الاكواد كلها كلنت وسيرفر Link to comment
PaiN^ Posted March 7, 2013 Share Posted March 7, 2013 onMarkerHit Server side event ..! Link to comment
iMr.Dawix~# Posted March 7, 2013 Share Posted March 7, 2013 (edited) Server Side#, marker = createMarker ( x,y,z,"cylinder", 2, 255, 255, 0, 225 ) addEventHandler("onMarkerHit",marker, function (player) if (getElementType (player) == "player") and isPedInVehicle(player) then fixVehicle(getPedOccupiedVehicle(player)) outputChatBox("** | Vehicle Fixed | **",player,255,255,0,true) end end ) event"onMarkerHit" ---اتوقع انه سيرفر مهو كلنت الاكواد كلها كلنت وسيرفر ؟؟ السيرفر فيه له اكواد خاصه والكلنت اكواد وفيه اكواد تجي للأثنين لونها ازرق والأحداث فيه مخصصين للكلنت او السيرفر اتوقع انه المفروض اذا كان يبيه كلنت يستخدم event"onClientMarkerHit" او يحط الكود كله سيرفر Edited March 7, 2013 by Guest Link to comment
PaiN^ Posted March 7, 2013 Share Posted March 7, 2013 Server Side#, marker = createMarker ( x,y,z,"cylinder", 2, 255, 255, 0, 225 ) addEventHandler("onMarkerHit",marker, function (player) if (getElementType (player) == "player") and isPedInVehicle(player) then fixVehicle(getPedOccupiedVehicle(player)) outputChatBox("** | Vehicle Fixed | **",player,255,255,0,true) end end ) من قال إنه كلنت ؟؟؟؟ Link to comment
iMr.Dawix~# Posted March 7, 2013 Share Posted March 7, 2013 الكود واضح أنة سيرفر آسف مانتبهت لكلمة Server Side#, انا كنت فاتح صفحات كثيره << اضرآر السهر 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