Jump to content

مشكله ....


rabe3

Recommended Posts

السلام عليكم مشكله الالوان

عندي كود فيه مشكله الاوان هوا معمول يغير الاوان الفريق بس على لاعب عادي ماعنده فريق مايغير

صورا تشرح اكثر على شخص بدون فريق

http://im31.gulfup.com/tTh6T.jpg

لما يكون بفريق الاوان 100%

صورا لما يكون بدون فريق

http://im32.gulfup.com/YESgW.jpg

وهاذ الكود

local blip = { } 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( ) 
        if ( not isElement ( blip [ source ] ) ) then 
            blip [ source ] = createBlipAttachedTo ( source ) 
        end 
  
        local theTeam = getPlayerTeam ( source ) 
        if ( not theTeam ) then 
            outputChatBox ( "YOU HAVE NO TEAM", source ) 
            return 
        end 
  
        local r, g, b = getTeamColor ( theTeam ) 
        setPlayerNametagColor ( source, r, g, b ) 
        setBlipColor ( blip [ source ], r, g, b, 255 ) 
    end 
) 
  
addEventHandler ( "onPlayerQuit", root, 
    function ( ) 
        if isElement ( blip [ source ] ) then 
            destroyElement ( blip [ source ] ) 
        end 
    end 
) 

Link to comment
local blip = {} 
  
addEventHandler("onPlayerLogin", root, 
function () 
    if not isElement(blip[source]) then 
        blip[source] = createBlipAttachedTo(source) 
    end 
    local theTeam = getPlayerTeam(source) 
    if theTeam then 
        local r, g, b = getTeamColor(theTeam) 
        setPlayerNametagColor(source, r, g, b) 
        setBlipColor(blip[source], r, g, b, 255) 
    else 
        outputChatBox("YOU HAVE NO TEAM", source) 
        setPlayerNametagColor(source, 255, 0, 0) 
    end 
end) 
  
addEventHandler("onPlayerQuit", root, 
function() 
    if isElement(blip[source]) then 
        destroyElement(blip[source]) 
    end 
end) 

Link to comment
local blip = {} 
  
addEventHandler("onPlayerLogin", root, 
function () 
    if not isElement(blip[source]) then 
        blip[source] = createBlipAttachedTo(source) 
    end 
    local theTeam = getPlayerTeam(source) 
    if theTeam then 
        local r, g, b = getTeamColor(theTeam) 
        setPlayerNametagColor(source, r, g, b) 
        setBlipColor(blip[source], r, g, b, 255) 
    else 
        outputChatBox("YOU HAVE NO TEAM", source) 
        setPlayerNametagColor(source, 255, 0, 0) 
    end 
end) 
  
addEventHandler("onPlayerQuit", root, 
function() 
    if isElement(blip[source]) then 
        destroyElement(blip[source]) 
    end 
end) 

لا برضو مشكله مانحلت الحين لما حطيط تبعك كلهم صارو حمر

Link to comment
local blip = { } 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( ) 
        if ( not isElement ( blip [ source ] ) ) then 
            blip [ source ] = createBlipAttachedTo ( source ) 
        end 
  
        local theTeam = getPlayerTeam ( source ) 
        if ( not theTeam ) then 
            outputChatBox ( "YOU HAVE NO TEAM", source ) 
            return 
        end 
  
        local r, g, b = getTeamColor ( theTeam ) 
        setBlipColor ( blip [ source ], r, g, b, 255 ) 
    end 
) 
  
addEventHandler ( "onPlayerQuit", root, 
    function ( ) 
        if isElement ( blip [ source ] ) then 
            destroyElement ( blip [ source ] ) 
        end 
    end 
) 

setPlayerNameTagColor ماله داعي لان من اصل يصير لونه عن التيم

Edited by Guest
Link to comment
local blip = { } 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( ) 
        if ( not isElement ( blip [ source ] ) ) then 
            blip [ source ] = createBlipAttachedTo ( source ) 
        end 
  
        local theTeam = getPlayerTeam ( source ) 
        if ( not theTeam ) then 
            outputChatBox ( "YOU HAVE NO TEAM", source ) 
            return 
        end 
  
        local Q, W, Y = getTeamColor ( theTeam ) 
        setBlipColor ( blip [ source ], Q, W, Y, 317 ) 
    end 
) 
  
addEventHandler ( "onPlayerQuit", root, 
    function ( ) 
        if isElement ( blip [ source ] ) then 
            destroyElement ( blip [ source ] ) 
        end 
    end 
) 

setPlayerNameTagColor ماله داعي لان من اصل يصير لونه عن التيم

Q, W, Y?

317?

:|:|:|

@rabe3,

YOU HAVE NO TEAM اعتقد لما تسجل دخول يطلع لك الكلام ذا

Link to comment
local blip = { } 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( ) 
        if ( not isElement ( blip [ source ] ) ) then 
            blip [ source ] = createBlipAttachedTo ( source ) 
        end 
  
        local theTeam = getPlayerTeam ( source ) 
        if ( not theTeam ) then 
            outputChatBox ( "YOU HAVE NO TEAM", source ) 
            return 
        end 
  
        local Q, W, Y = getTeamColor ( theTeam ) 
        setBlipColor ( blip [ source ], Q, W, Y, 317 ) 
    end 
) 
  
addEventHandler ( "onPlayerQuit", root, 
    function ( ) 
        if isElement ( blip [ source ] ) then 
            destroyElement ( blip [ source ] ) 
        end 
    end 
) 

setPlayerNameTagColor ماله داعي لان من اصل يصير لونه عن التيم

Q, W, Y?

317?

:|:|:|

@rabe3,

YOU HAVE NO TEAM اعتقد لما تسجل دخول يطلع لك الكلام ذا

تم التعديل هههههه

Link to comment
local blip = { } 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( ) 
        if ( not isElement ( blip [ source ] ) ) then 
            blip [ source ] = createBlipAttachedTo ( source ) 
        end 
  
        local theTeam = getPlayerTeam ( source ) 
        if ( not theTeam ) then 
            outputChatBox ( "YOU HAVE NO TEAM", source ) 
            return 
        end 
  
        local Q, W, Y = getTeamColor ( theTeam ) 
        setBlipColor ( blip [ source ], Q, W, Y, 317 ) 
    end 
) 
  
addEventHandler ( "onPlayerQuit", root, 
    function ( ) 
        if isElement ( blip [ source ] ) then 
            destroyElement ( blip [ source ] ) 
        end 
    end 
) 

setPlayerNameTagColor ماله داعي لان من اصل يصير لونه عن التيم

Q, W, Y?

317?

:|:|:|

@rabe3,

YOU HAVE NO TEAM اعتقد لما تسجل دخول يطلع لك الكلام ذا

تم التعديل هههههه

يعني اجرب الكود؟

Link to comment

جر وش بتخسر

edit :

local blip = { } 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( ) 
        if ( not isElement ( blip [ source ] ) ) then 
            blip [ source ] = createBlipAttachedTo ( source ) 
        end 
  
        local theTeam = getPlayerTeam ( source ) 
        if ( not theTeam ) then 
            outputChatBox ( "YOU HAVE NO TEAM", source ) 
            return 
        end 
  
        local r, g, b = getTeamColor ( theTeam ) 
        setBlipColor ( blip [ source ], r, g, b, 255 ) 
    end 
) 
  
addEventHandler ( "onPlayerQuit", root, 
    function ( ) 
        if isElement ( blip [ source ] ) then 
            destroyElement ( blip [ source ] ) 
        end 
    end 
) 

setPlayerNameTagColor ماله داعي لان من اصل يصير لونه عن التيم

جرب الكود وش بتخسر ض١

Edited by Guest
Link to comment
جر وش بتخسر

edit :

local blip = { } 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( ) 
        if ( not isElement ( blip [ source ] ) ) then 
            blip [ source ] = createBlipAttachedTo ( source ) 
        end 
  
        local theTeam = getPlayerTeam ( source ) 
        if ( not theTeam ) then 
            outputChatBox ( "YOU HAVE NO TEAM", source ) 
            return 
        end 
  
        local r, g, b = getTeamColor ( theTeam ) 
        setBlipColor ( blip [ source ], r, g, b, 255 ) 
    end 
) 
  
addEventHandler ( "onPlayerQuit", root, 
    function ( ) 
        if isElement ( blip [ source ] ) then 
            destroyElement ( blip [ source ] ) 
        end 
    end 
) 

setPlayerNameTagColor ماله داعي لان من اصل يصير لونه عن التيم

جرب الكود وش بتخسر ض١

نفس الشي...

Link to comment
local blip = {} 
  
addEventHandler("onPlayerLogin", root, 
function () 
    if not isElement(blip[source]) then 
        blip[source] = createBlipAttachedTo(source) 
    end 
    local theTeam = getPlayerTeam(source) 
    if theTeam then 
        local r, g, b = getTeamColor(theTeam) 
        setPlayerNametagColor(source, r, g, b) 
        setBlipColor(blip[source], r, g, b, 255) 
    else 
        outputChatBox("YOU HAVE NO TEAM", source) 
        setPlayerNametagColor(source, 255, 0, 0) 
    end 
end) 
  
addEventHandler("onPlayerQuit", root, 
function() 
    if isElement(blip[source]) then 
        destroyElement(blip[source]) 
    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...