Jump to content

نعديل


Recommended Posts

السلام عليكم

معي مشكلة

المشكلة انة لازم اكون في تيم الشرطة و جروب الادمن و اذا ما كنت في اي من هدول ما اقدر اركب

بس هون لو ما كنت في التيم اقدر اركب

و لو كنت في التيم و مو في جروب الادمن اقدر اركب

انا بدي بو ما كنت في التيم ما اقدر حتا لو كنت في الادمن

و لو كنتفي جروب الادمن و ما كنت في التيم برضو ما تقدر تركب

  
addEventHandler("onVehicleStartEnter", root, 
    function(player, seat) 
        for i,v in pairs(activeVehicles) do 
            if v == source then 
                    if not isObjectInACLGroup('user.'..getAccountName(getPlayerAccount(player)),aclGetGroup('Admin')) then 
                    outputChatBox("This vehicle is only for "..groupName.." Group!", player, 255, 0, 0) 
                    cancelEvent() 
                    if getTeamName( getPlayerTeam( player ) ) ~= 'Police' then 
                    outputChatBox("This vehicle is only for "..groupName.." Group!", player, 255, 0, 0) 
                    cancelEvent() 
                else 
                    if seat == 0 and occupiedVehicles[i] then 
                        outputChatBox("You cannot take this vehicle as someone in it already!", player, 255, 0, 0) 
                        cancelEvent() 
                    end 
                end 
                break 
            end 
        end 
        end 
    end 
) 

و ذا بست جرب ما زبط

Link to comment

ما اشوف انك جرب اصلا -__-",

جرب كذا,

-- Server Side # 
addEventHandler("onVehicleStartEnter", root,function(player, seat) 
    for i,v in pairs(activeVehicles) do 
        if v == source then 
            if not getPlayerTeam ( player ) then cancelEvent() end 
                if not isObjectInACLGroup('user.'..getAccountName(getPlayerAccount(player)),aclGetGroup('Admin')) then 
                    outputChatBox("This vehicle is only for "..groupName.." Group!", player, 255, 0, 0) 
                        cancelEvent() 
                            if getTeamName( getPlayerTeam( player ) ) ~= 'Police' then 
                                outputChatBox("This vehicle is only for "..groupName.." Group!", player, 255, 0, 0) 
                                    cancelEvent() 
                else 
                        if seat == 0 and occupiedVehicles[i] then 
                            outputChatBox("You cannot take this vehicle as someone in it already!", player, 255, 0, 0) 
                                cancelEvent() 
                            end 
                        end 
                    break 
                end 
            end 
        end 
    end 
) 
Link to comment

زبط بس لو

ما كنت في تيم الشرطة اقدر اركب السيارة

اما لو انا مو في تيم الشرطة ولا جروب الامن ما اقدر

انا بدي لو ما كنت في التيم ما اقدر حتا لو كنت في الادمن

و لو كنتفي جروب الادمن و ما كنت في التيم برضو ما تقدر تركب

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