Jump to content

تمت الافادة من قبل Mr.Pres[T]ege


Recommended Posts

كدا

    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

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
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
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
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" 

---اتوقع انه سيرفر مهو كلنت

الاكواد كلها كلنت وسيرفر

:wink:

Link to comment
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 by Guest
Link to comment
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...