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