Jump to content

x[استفسار ]xبخصوص الاكاونت


Recommended Posts

4 minutes ago, iMr ~ MnHmAr said:

اطرح محاولتك


addEvent("teamcrr",true)
addEventHandler("teamcrr",root,function(a,b,e)
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then
local playername = getAccountPlayer(e)
	
local b1,c1,d1 = getColorFromString(b) 

local team2 = createTeam ( a, b1, c1, d1 )
local ks = getPlayerAccount(playername)

setPlayerTeam(playername,team2)
setAccountData(ks,"ownerTeam",getTeamName(team2))
	 
	 setElementData(playername,"ownerrr",getPlayerTeam(playername))
	 
	 	 setElementData(playername,"ownerrr2",getAccountName(getPlayerAccount(playername)) )

setElementData(team2,"?owner",getAccountName(getPlayerAccount(playername)))

triggerClientEvent("asgs",root)
triggerClientEvent("closect",source)

end

end
)

e

ايديت بوكس 

 

Edited by Master_MTA
اعتذر هذا كان القديم
Link to comment

لا يا  غالي احط اسم الحساب

تفضل كلنت

elseif source == GUIEditor.button[14] then
local a1=guiGetText(GUIEditor.edit[1])
local a2=guiGetText(GUIEditor.edit[2])
local a5 = guiGetText(GUIEditor.edit[5])
if a1 ~="" and a2 ~="" and a5 ~="" then
	

triggerServerEvent("teamcrr",localPlayer,a1,a2,a5)

aTeamsRefresh()

else
outputChatBox("pls Complete all EditBox")
aTeamsRefresh()

end

 

Link to comment
-- #Server
addEvent("teamcrr",true)
addEventHandler("teamcrr",root,function( a,b,e )
  if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then
   local playername = getAccountPlayer(e)
    local b1,c1,d1 = getColorFromString(b) 
     local team2 = createTeam ( a, b1, c1, d1 )
      local ks = getPlayerAccount(playername)	  
       setPlayerTeam(playername,team2)
        setAccountData(ks,"ownerTeam",getTeamName(team2))
	     setElementData(playername,"ownerrr",getPlayerTeam(playername))
	      setElementData(playername,"ownerrr2",getAccountName(getPlayerAccount(playername)) )
           setElementData(team2,"?owner",getAccountName(getPlayerAccount(playername)))
            triggerClientEvent("asgs",root)
             triggerClientEvent("closect",source)
          end
       end
   )
   
   --#Client
   
 elseif source == GUIEditor.button[14] then
  local a1 = guiGetText(GUIEditor.edit[1])
   local a2 = guiGetText(GUIEditor.edit[2])
    local a5 = guiGetText(GUIEditor.edit[5])
     if a1 ~="" and a2 ~="" and a5 ~="" then
      triggerServerEvent("teamcrr",localPlayer,a1,a2,a5)
       aTeamsRefresh()
   else
   outputChatBox("pls Complete all EditBox")
    aTeamsRefresh()

end

جرب  ;

Edited by iMr ~ MnHmAr
Link to comment
2 minutes ago, iMr ~ MnHmAr said:

-- #Server
addEvent("teamcrr",true)
addEventHandler("teamcrr",root,function( a,b,e )
  if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then
   local playername = getAccountPlayer(e)
    local b1,c1,d1 = getColorFromString(b) 
     local team2 = createTeam ( a, b1, c1, d1 )
      local ks = getPlayerAccount(playername)	  
       setPlayerTeam(playername,team2)
        setAccountData(ks,"ownerTeam",getTeamName(team2))
	     setElementData(playername,"ownerrr",getPlayerTeam(playername))
	      setElementData(playername,"ownerrr2",getAccountName(getPlayerAccount(playername)) )
           setElementData(team2,"?owner",getAccountName(getPlayerAccount(playername)))
            triggerClientEvent("asgs",root)
             triggerClientEvent("closect",source)
          end
       end
   )
   
   --#Client
   
 elseif source == GUIEditor.button[14] then
  local a1 = guiGetText(GUIEditor.edit[1])
   local a2 = guiGetText(GUIEditor.edit[2])
    local a5 = guiGetText(GUIEditor.edit[5])
     if a1 ~="" and a2 ~="" and a5 ~="" then
      triggerServerEvent("teamcrr",localPlayer,a1,a2,a5)
       aTeamsRefresh()
   else
   outputChatBox("pls Complete all EditBox")
    aTeamsRefresh()

end

جرب  ;

مو شغال +_+

Link to comment

استخدم هذي الوظيفه 

function getPlayerFromAccount ( accnt )
    if accnt and type ( accnt ) == 'string' then
        for i, v in ipairs ( getElementsByType ( 'player' ) ) do
            if ( getAccountName ( getPlayerAccount ( v ) ) == accnt ) then
                return v;
            end
        end
    end
    return false
end

 

  • Like 1
Link to comment

If you want to check if the specified account is already registered below you just need to put if after get account like this

اذا تبي تتحقق اذا الحساب المحدد موجود ومسجل مسبقا انت تحتاج فقط تسوي كذا

local account = getAccount( string accountName )
	if ( account ~= false ) then
		...
	end

-- complete code if the account is already exists, return otherwise
-- راح يكمل الوظيفة لو ان الحساب موجود, راح يرجع ويوقف الوظيفة لو العكس

 

Edited by MR.GRAND
Link to comment
1 minute ago, MR.GRAND said:

If you want to check if the specified account is already registered below you just need to put if after get account like this

 


local account = getAccount( string accountName )
	if ( account ~= false ) then
		...
	end

-- complete code if the account is already exists, return otherwise

 

الحين تخيل انه ما يفهم انجليزي

كيف بيفهم كلامك خخخخخ

ي ليت تتكلم عربي 

Link to comment
3 minutes ago, MR.GRAND said:

If you want to check if the specified account is already registered below you just need to put if after get account like this

 


local account = getAccount( string accountName )
	if ( account ~= false ) then
		...
	end

-- complete code if the account is already exists, return otherwise

 

thx alot  man

2 minutes ago, Abu-Solo said:

الحين تخيل انه ما يفهم انجليزي

كيف بيفهم كلامك خخخخخ

ي ليت تتكلم عربي 

ابشر

  • Like 1
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...