Jump to content

اي شخص يساعدني بالكود البسيط ذا


Recommended Posts

السلام عليكم ورحمة الله وبركاته

ياريت اي شخص يساعدني باصلاح ذا عالسريع

المشكله بالتلوين

function consoletm()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
   setPlayerTeam(source, conteam)
   bb = createBlipAttachedTo (source, 0 )
   end
end
addEventHandler("onPlayerLogin",getRootElement(),consoletm) 
addEventHandler ( "onPlayerWasted", getRootElement(),consoletm)
addEventHandler("onPlayerJoin",getRootElement(),consoletm) 
addEventHandler("onPlayerSpawn",getRootElement(),consoletm) 

setTimer(function()
setBlipColor (bb ,math.random ( 255 ), math.random ( 255 ), math.random ( 255 ))
end,100,0)

 

الايليمينت يكتبلي خطاء ليه

 

setBlipColor

هذا المشكله 

يكتبلي الايليمينت خطاء 

وهوا صح

 

Link to comment
function consoletm()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
   setPlayerTeam(source, conteam)
   bb = createBlipAttachedTo (source, 53 )
   setTimer(setBlipColor,100,0,bb,math.random ( 255 ), math.random ( 255 ), math.random ( 255 ),255)
   end
end
addEventHandler ( "onPlayerWasted", getRootElement(),consoletm)
addEventHandler("onPlayerJoin",getRootElement(),consoletm) 
addEventHandler("onPlayerSpawn",getRootElement(),consoletm) 

 

Link to comment

القسم غلط
وحاول تشوف ذذ الموضوع

بنسبة لتصليح كودك : )

function consoletm()
if not isGuestAccount( getPlayerAccount ( source )) then end
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
   setPlayerTeam(source, conteam)
   bb = createBlipAttachedTo (source, 0 )
   setTimer(function()
	setBlipColor (bb ,math.random ( 0, 255 ), math.random ( 0, 255 ), math.random ( 0, 255 ))
	end,300,0)
   end
end
addEventHandler("onPlayerLogin",getRootElement(),consoletm) 
addEventHandler ("onPlayerWasted", getRootElement(),consoletm)
addEventHandler("onPlayerJoin",getRootElement(),consoletm) 
addEventHandler("onPlayerSpawn",getRootElement(),consoletm) 

 

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...