Jump to content

مشكله


Recommended Posts

رمضان كريم وصيام مقبوا شباب.

عندي هاذ الود, ما مشكله بس م يشتغل كيف مفروض

انا بدي حين م اكتب كزماند nif يدخل اللاعب الي كتبها ب table اسمه infectedTable و اريد حين ادخل كومند sho يظهرلي اسماء كل اللعبين الي تبكو الكوماند "nif"

addCommandHandler ( "nif", 
    function( player )
        local theVehicle = getPedOccupiedVehicle ( player )
        if ( theVehicle ) then
            setVehicleColor( theVehicle, 255, 255, 0 )
        end
    end
)

function onInfection( player )
    if ( onCarHit()  ) then
        if ( infectedTeam ) then
            setPlayerTeam ( player, infectedTeam )
            local playerNameInf = getPlayerName( player )
            if ( playerNameInf ) then
                table.insert ( infectedTable.infections, playerNameInf )
            end
        end
    end
end

addCommandHandler( 'sho', function( )
    for v, infecteds in pairs ( infectedTable.infections ) do
        outputChatBox ( 'Infected Players:' .. tostring( infecteds ), player )
    end
end)

 

ارجو المساعده شباب.

شباب كمان طلب, كيف ممكن اخد اسم اللاعب الي خبط سيارتي واعمله كيك؟ او اغيرله لون سيارته؟

سلام شباب :)

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