Jump to content

إخراج الاعب من التيم


Recommended Posts

طيب انا شفت في الويكي هاذا
RemovePlayerFromTeam 

هاذا مثال ولا فنكش

Wiki :

This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be an alternative (usually more generic) way of performing what it once did.

:#

Link to comment

وش المشكلة

function removes ( source) 
  local theTeam = getPlayerTeam ( source ) 
  if theTeam then 
    setPlayerTeam ( source, nil ) 
  end 
end 
addEventHandler ( "onMarkerHit", getRootElement(), removes ) 

اخذت هاذا من الويكي وطبقت عليه

Link to comment
function removes ( v ) 
    if getElementType ( v ) == 'player' then 
        local theTeam = getPlayerTeam ( v ) 
            if theTeam then 
            setPlayerTeam ( v, nil ) 
        end 
    end 
end 
addEventHandler ( "onMarkerHit", getRootElement(), removes ) 

تبية لكل الماركرات؟ مسوية روت آنت ^^

Link to comment

ذذ انا ساحب على البرمجة كثير ونسيت

طيب هو كذا؟

function removes ( source) 
  local theTeam = getPlayerTeam ( source ) 
  if theTeam then 
    setPlayerTeam ( source, nil ) 
  end 
end 
addEventHandler ( "onMarkerHit" , Door, removes ) 

Link to comment
function removes ( v ) 
    if getElementType ( v ) == 'player' then 
        local theTeam = getPlayerTeam ( v ) 
            if theTeam then 
            setPlayerTeam ( v, nil ) 
        end 
    end 
end 
addEventHandler ( "onMarkerHit",Door, removes,false ) 

Link to comment
local door = createMarker( 390.7548828125, 173.8486328125, 1007.3828125, "cylinder", 1.5, 255, 0, 0, 255 ) 
  
function removes ( v ) 
    if getElementType ( v ) == 'player' then 
        local theTeam = getPlayerTeam ( team1 ) 
            if theTeam then 
            setPlayerTeam ( v, nil,nil ) 
        end 
    end 
end 
addEventHandler ( "onMarkerHit",door, removes,false ) 

Edited by Guest
Link to comment

local door = createMarker( 390.7548828125, 173.8486328125, 1007.3828125, "cylinder", 1.5, 255, 0, 0, 255 ) 
  
function removes ( v ) 
    if getElementType ( v ) == 'player' then 
        local theTeam = getPlayerTeam ( v ) 
            if theTeam then 
            setPlayerTeam ( v, nil ) 
        end 
    end 
end 
addEventHandler ( "onMarkerHit",door, removes ) 

اكيد بيجي خطأ لان في ارقومنت ثالث ذذ ,

+ الكود شغال مجربه ذذ , تأكد انك بتيم

Link to comment
local door = createMarker( 390.7548828125, 173.8486328125, 1007.3828125, "cylinder", 1.5, 255, 0, 0, 255 ) 
  
function removes ( v ) 
    if getElementType ( v ) == 'player' then 
        local theTeam = getPlayerTeam ( v ) 
            if theTeam then 
            setPlayerTeam ( v, nil ) 
        end 
    end 
end 
addEventHandler ( "onMarkerHit",door, removes ) 

اكيد بيجي خطأ لان في ارقومنت ثالث ذذ ,

+ الكود شغال مجربه ذذ , تأكد انك بتيم

لا خطأ ولا شيء عزيزي هذا بعض الاحيان ماتصير تضيفها تصير جرب بنفسك ^^

أبشرك من أول كود عطيتة شغال

Edited by Guest
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...