rabe3 Posted August 23, 2013 Posted August 23, 2013 السلام عليكم مشكله الالوان عندي كود فيه مشكله الاوان هوا معمول يغير الاوان الفريق بس على لاعب عادي ماعنده فريق مايغير صورا تشرح اكثر على شخص بدون فريق 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 )
TAPL Posted August 23, 2013 Posted August 23, 2013 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)
rabe3 Posted August 23, 2013 Author Posted August 23, 2013 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) لا برضو مشكله مانحلت الحين لما حطيط تبعك كلهم صارو حمر
SaRy,#DanGer Posted August 23, 2013 Posted August 23, 2013 (edited) 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 August 23, 2013 by Guest
TAPL Posted August 23, 2013 Posted August 23, 2013 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 اعتقد لما تسجل دخول يطلع لك الكلام ذا
SaRy,#DanGer Posted August 23, 2013 Posted August 23, 2013 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 اعتقد لما تسجل دخول يطلع لك الكلام ذا تم التعديل هههههه
rabe3 Posted August 23, 2013 Author Posted August 23, 2013 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 اعتقد لما تسجل دخول يطلع لك الكلام ذا تم التعديل هههههه يعني اجرب الكود؟
SaRy,#DanGer Posted August 23, 2013 Posted August 23, 2013 (edited) جر وش بتخسر 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 August 23, 2013 by Guest
rabe3 Posted August 23, 2013 Author Posted August 23, 2013 جر وش بتخسر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 ماله داعي لان من اصل يصير لونه عن التيم جرب الكود وش بتخسر ض١ نفس الشي...
jafar Posted August 23, 2013 Posted August 23, 2013 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)
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