Jump to content

x[ تمت الافاده ]x


Sfa7

Recommended Posts

تفضل الكود

  
-- Server : 
marker = createMarker ( x, y, z, "cylinder", 8, 255, 0, 0, 255 ) 
  
addEventHandler( "onMarkerHit", root, 
    function ( player ) 
        if ( getElementType ( player ) == "player" ) then 
            triggerClientEvent( "Check", getRootElement( ), player ) 
            local Car = createVehicle ( 562, x, y, z ) 
            warpPedIntoVehicle( player, Car ) 
        end 
    end 
) 
  
  
  
-- Client : 
addEvent( "Check", true ) 
addEventHandler( "Check", root,  
    function ( ) 
        local see = isTransferBoxActive( ) 
        if( see == false ) then 
            cancelEvent( "onMarkerHit", true ) 
        end 
    end 
) 

:D أرجو تصحيح أي أخطاء

Edited by Guest
Link to comment

وحبيت اوضحه حاجه للاخو Yazan

ترا اسمه ماركر وليسا مارك

للمعلومه

يا انت حطه كلنت يا احداث غلط مع علم احداث لزم تعمل مارك في ادتور و تكبس مرتين و تخذ الاحداث لنه احداث الادمنيه تختلف اوقت
Link to comment

== Server Side ==

Car = {} 
marker = {} 
  
addEventHandler("onPlayerJoin",root, 
function() 
marker[source] = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 255,source) 
function make(player) 
    if ( player == source and getElementType (player) == "player" ) then 
        local x,y,z = getElementPosition (player) 
        if ( Car[player] and getElementType (Car[player]) == "vehicle" ) then destroyElement(Car[player]) Car[player] = nil end      
        Car[player] = createVehicle ( 562, x, y, z ) 
        if Car[player] then 
            warpPedIntoVehicle(player,Car[player]) 
        end  
    end 
end 
addEventHandler( "onMarkerHit", marker[source], make) 
end) 
  
addEventHandler("onPlayerQuit",root, 
function() 
if Car[source] then destroyElement(Car[source]) Car[source] = nil end 
if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end 
end) 
  
addEvent("onCheckDownload",true) 
addEventHandler("onCheckDownload",root, 
function() 
if Car[source] then destroyElement(Car[source]) Car[source] = nil end 
if marker[source] then 
    removeEventHandler( "onMarkerHit", marker[source], make)     
    marker[source] = nil  
end 
end) 

== Client Side ==

addEventHandler("onClientResourceStart",resourceRoot, 
function () 
         triggerServerEvent("onCheckDownload",localPlayer) 
end) 

اطلع من السيرفر وادخل وانت مخلص التحميل بتحصل الماركر مايعطي سيارة واذا فية تحميل بيعطيك سيارة ذذ

Link to comment

شووف اخوي برستيج انا جربت الكود + طلعت ودخلت وطلع الماركر بس ماجربته لنا التحميل مو راضي يطلع خخخخ

اطفي مودات واشغل التحميل مايطلع وماادري بس الماركر طلع

ويمكن شغال + مشكوووري

ويعطيك العافيه

Link to comment

Car = {} 
marker = {} 
  
addEventHandler("onPlayerJoin",root, 
function() 
marker[source] = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 255,source) 
function make(player) 
    if ( getElementType (player) == "player" ) then 
        local x,y,z = getElementPosition (player) 
        if ( Car[player] and getElementType (Car[player]) == "vehicle" ) then destroyElement(Car[player]) Car[player] = nil end      
        Car[player] = createVehicle ( 562, x, y, z ) 
        if Car[player] then 
            warpPedIntoVehicle(player,Car[player]) 
        end  
    end 
end 
addEventHandler( "onMarkerHit", marker[source], make) 
end) 
  
addEventHandler("onPlayerQuit",root, 
function() 
if Car[source] then destroyElement(Car[source]) Car[source] = nil end 
if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end 
end) 
  
addEvent("onCheckDownload",true) 
addEventHandler("onCheckDownload",root, 
function() 
if Car[source] then destroyElement(Car[source]) Car[source] = nil end 
if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end 
end) 

ماركر مخفي ظاهر للي عنده تحميل بس وراح يعطية الموتر ذذ

Link to comment

الميتا

    "Sfa7" version="2" type="script" /> 
    

سيرفر

Car = {} 
marker = {} 
  
addEventHandler("onPlayerJoin",root, 
function() 
marker[source] = createMarker ( -3561.47046, -3002.50342, 45.00155, "cylinder", 2, 0, 0, 255, 255,source) 
function make(player) 
    if ( player == source and getElementType (player) == "player" ) then 
        local x,y,z = getElementPosition (player) 
        if ( Car[player] and getElementType (Car[player]) == "vehicle" ) then destroyElement(Car[player]) Car[player] = nil end     
        Car[player] = createVehicle ( 429, -3561.47046, -3002.50342, 45.00155 ) 
        if Car[player] then 
            warpPedIntoVehicle(player,Car[player]) 
        end  
    end 
end 
addEventHandler( "onMarkerHit", marker[source], make) 
end) 
  
addEventHandler("onPlayerQuit",root, 
function() 
if Car[source] then destroyElement(Car[source]) Car[source] = nil end 
if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end 
end) 
  
addEvent("onCheckDownload",true) 
addEventHandler("onCheckDownload",root, 
function() 
if Car[source] then destroyElement(Car[source]) Car[source] = nil end 
if marker[source] then 
    removeEventHandler( "onMarkerHit", marker[source], make)    
    marker[source] = nil 
end 
end) 

كلنت

addEventHandler("onClientResourceStart",resourceRoot, 
function () 
         triggerServerEvent("onCheckDownload",localPlayer) 
end) 

Link to comment
Car = {} 
marker = {} 
  
addEventHandler("onPlayerJoin",root, 
function() 
marker[source] = createMarker ( x,y,z,"cylinder", 2, 255, 0, 0, 255,source) 
function make(player) 
    if ( player and getElementType (player) == "player" ) then 
        local x,y,z = getElementPosition (player) 
        if ( Car[player] and getElementType (Car[player]) == "vehicle" ) then destroyElement(Car[player]) Car[player] = nil end      
        Car[player] = createVehicle ( 562, x, y, z ) 
        if Car[player] then 
            warpPedIntoVehicle(player,Car[player]) 
        end  
    end 
end 
addEventHandler( "onMarkerHit", marker[source], make) 
end) 
  
addEventHandler("onPlayerQuit",root, 
function() 
if Car[source] then destroyElement(Car[source]) Car[source] = nil end 
if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end 
end) 
  
addEvent("onCheckDownload",true) 
addEventHandler("onCheckDownload",root, 
function() 
if Car[source] then destroyElement(Car[source]) Car[source] = nil end 
if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end 
end) 

Link to comment

== Client Side ==

function spawn() 
         triggerServerEvent("onCheckDownload",localPlayer) 
end 
setTimer(spawn, 100, 1) 

== Server Side ==

Car = {} 
marker = {} 
  
addEventHandler("onPlayerJoin",root, 
function() 
plr = source 
marker[plr] = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 255,source) 
function make(player) 
    if ( player == plr and getElementType (player) == "player" ) then 
        local x,y,z = getElementPosition (player) 
        if ( Car[player] and getElementType (Car[player]) == "vehicle" ) then destroyElement(Car[player]) Car[player] = nil end      
        Car[player] = createVehicle ( 562, x, y, z ) 
        if Car[player] then 
            warpPedIntoVehicle(player,Car[player]) 
        end  
    end 
end 
addEventHandler( "onMarkerHit", marker[plr], make) 
end) 
  
addEventHandler("onPlayerQuit",root, 
function() 
if Car[source] then destroyElement(Car[source]) Car[source] = nil end 
if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end 
end) 
  
addEvent("onCheckDownload",true) 
addEventHandler("onCheckDownload",root, 
function() 
if Car[source] then destroyElement(Car[source]) Car[source] = nil end 
if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end 
end) 
Link to comment
Car = {} 
marker = {} 
  
addEventHandler("onPlayerJoin",root, 
function() 
plr = source 
marker[plr] = createMarker ( -3561.47046, -3002.50342, 45.00155, "cylinder", 2, 0, 0, 255, 255,source) 
function make(player) 
    if ( player == plr and getElementType (player) == "player" ) then 
        local x,y,z = getElementPosition (player) 
        if ( Car[player] and getElementType (Car[player]) == "vehicle" ) then destroyElement(Car[player]) Car[player] = nil end     
        Car[player] = createVehicle ( 562, -3561.47046, -3002.50342, 45.00155 ) 
        if Car[player] then 
            warpPedIntoVehicle(player,Car[player]) 
        end  
    end 
end 
addEventHandler( "onMarkerHit", marker[plr], make) 
end) 
  
addEventHandler("onPlayerQuit",root, 
function() 
if Car[source] then destroyElement(Car[source]) Car[source] = nil end 
if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end 
end) 
  
addEvent("onCheckDownload",true) 
addEventHandler("onCheckDownload",root, 
function() 
if Car[source] then destroyElement(Car[source]) Car[source] = nil end 
if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end 
end) 

Link to comment

Car = {} 
marker = {} 
  
addEventHandler("onPlayerJoin",root, 
function() 
plr = source 
marker[plr] = createMarker ( -3561.47046, -3002.50342, 45.00155, "cylinder", 2, 0, 0, 255, 255,source) 
function make(player) 
    if ( player == plr and getElementType (player) == "player" ) then 
        if ( Car[player] and getElementType (Car[player]) == "vehicle" ) then destroyElement(Car[player]) Car[player] = nil end     
        Car[player] = createVehicle ( 562, -3561.47046, -3002.50342, 45.00155 ) 
        if Car[player] then 
            warpPedIntoVehicle(player,Car[player]) 
        end  
    end 
end 
addEventHandler( "onMarkerHit", marker[plr], make) 
end) 
  
addEventHandler("onPlayerQuit",root, 
function() 
if Car[source] then destroyElement(Car[source]) Car[source] = nil end 
if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil end 
end) 
  
addEvent("onCheckDownload",true) 
addEventHandler("onCheckDownload",root, 
function() 
if Car[source] then destroyElement(Car[source]) Car[source] = nil end 
if marker[source] then removeEventHandler( "onMarkerHit", marker[source], make) destroyElement(marker[source]) marker[source] = nil 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...