Jump to content

تصحيح كود


Recommended Posts

السلام عليكم

ذا الكود فيه خطاء؟

ابي اول ما انا المس الماركر يعطيني ادمن وبس على سيريالي ذا هو الكود

createMarker(x,y,z,"corona",2,0,255,0) 
addEventHandler("onClientMarkerHit",marker, 
function() 
if ( getPlayerSerial ( player ) == "سيريالي" ) then 
local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
    if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
else 
    OutChatBox("للاسف للاسف @@@!!") 
    end 
 end 
) 
  

Link to comment

local SerialMarker = createMarker ( x, y, z, "corona", 1.5, 255, 255, 0, 170 ) 
function Console (player) 
if ( getPlayerSerial ( player ) == "سريالك" ) then 
local accountName = getAccountName(getPlayerAccount(player)) 
  if accountName then  
aclGroupAddObject (aclGetGroup("Console"), "user."..accountName) 
            outputChatBox ("* Account '"..accountName.."' Successfully Added To The Console Group", player, 255, 0, 0, true ) 
            else 
            outputChatBox ("* This is not your Serial", player, 255, 0, 0, true ) 
            end 
       end 
  end 
addEventHandler("onMarkerHit",SerialMarker,Console) 
Link to comment

هلا اخوي انا حاولت اصلح نشالله يكون اشتغل

جرب

انا ما جربت ذذ انت جرب و قلي لو اشتغل و قلي اذا ما اشتغل

createMarker(x,y,z,"corona",2,0,255,0) 
addEventHandler("onClientMarkerHit",marker, 
    function isAdmin( player, seat ) 
if ( getPlayerSerial ( player ) == "سيريالي" ) then 
local accName = getAccountName ( getPlayerAccount ( player ) ) 
    if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        return true; 
    else 
            if ( seat == 0 ) then    
        return false; 
   outputChatBox("للاسف للاسف @@@!!") 
    cancelEvent ( ) 
            end 
        end 
    end 
end 
 ) 

حياك الله ..

Link to comment
هلا اخوي انا حاولت اصلح نشالله يكون اشتغل

جرب

انا ما جربت ذذ انت جرب و قلي لو اشتغل و قلي اذا ما اشتغل

createMarker(x,y,z,"corona",2,0,255,0) 
addEventHandler("onClientMarkerHit",marker, 
    function isAdmin( player, seat ) 
if ( getPlayerSerial ( player ) == "سيريالي" ) then 
local accName = getAccountName ( getPlayerAccount ( player ) ) 
    if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        return true; 
    else 
            if ( seat == 0 ) then    
        return false; 
   outputChatBox("للاسف للاسف @@@!!") 
    cancelEvent ( ) 
            end 
        end 
    end 
end 
 ) 

حياك الله ..

كودك مو غلط , لو فيه شي اكبر من الغلط , كان قلته لك

وغير كذا اشوف ان الرجال عطاه الكود الي يبغاه , مدري ليه جاي

وحايس الدنيا بعده , !

هذا الرد كافي

local SerialMarker = createMarker ( x, y, z, "corona", 1.5, 255, 255, 0, 170 ) 
function Console (player) 
    if ( getPlayerSerial ( player ) == "سريالك" ) then 
        if not isGuestAccount (getPlayerAccount (player)) then  
           local accountName = getAccountName(getPlayerAccount(player)) 
            aclGroupAddObject (aclGetGroup("Console"), "user."..accountName) 
            outputChatBox ("* Account '"..accountName.."' Successfully Added To The Console Group", player, 255, 0, 0, true ) 
            end 
          else 
        outputChatBox ("* This is not your Serial", player, 255, 0, 0, true ) 
      end 
  end 
addEventHandler("onMarkerHit",SerialMarker,Console) 

بس عليه كم خربطه بسيطه

عدلتها , له !

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