عندي طلبك لاكن بكوماند
addCommandHandler('الكلمة الي تطرد',
function ( thePlayer )
local vehicle = getPedOccupiedVehicle ( thePlayer )
if vehicle then
for i = 0,getVehicleMaxPassengers ( vehicle ) do
local getPlayer = getVehicleOccupant( vehicle, i )
if thePlayer and getPlayer and getPlayer ~= thePlayer then
removePedFromVehicle( getPlayer )
end
end
end
end
)
واتوقع ادا بزر نفس كذا
addEventHandler ("onClientGUIClick", getRootElement(),
function ( thePlayer )
if source == Button then
local vehicle = getPedOccupiedVehicle ( thePlayer )
if vehicle then
for i = 0,getVehicleMaxPassengers ( vehicle ) do
local getPlayer = getVehicleOccupant( vehicle, i )
if thePlayer and getPlayer and getPlayer ~= thePlayer then
removePedFromVehicle( getPlayer )
end
end
end
end
end
)
اذا في end زايدة او ناقصة خليها