Jump to content

- طلب كود -


Recommended Posts

-- Server Side 
addEventHandler("onVehicleEnter",root, 
function (player) 
          if isPedInVehicle( player ) then 
local vehicle = getPedOccupiedVehicle (player) 
       if ( vehicle ) then 
local team = getPlayerTeam (player) 
local r, g, b = getTeamColor (team) 
       if ( team and getTeamName (team) == ("Team Name")) then 
  setVehicleColor(vehicle, r, g, b ) 
                  end 
          end 
    end 
end 
) 
Link to comment
-- Server Side 
addEventHandler("onVehicleEnter",root, 
function (player) 
          if isPedInVehicle( player ) then 
local vehicle = getPedOccupiedVehicle (player) 
       if ( vehicle ) then 
local team = getPlayerTeam (player) 
local r, g, b = getTeamColor (team) 
       if ( team and getTeamName (team) == ("Team Name")) then 
  setVehicleColor(vehicle, r, g, b ) 
                  end 
          end 
    end 
end 
) 

^ ( if ) ما يحتاج لكل ذآ :/ + لو ماكان اللاعب بتيم رح يجي خطأ بجلب لون التيم لأنكـ حآطه قبل الشرط

+ذا مخصص لتيم محدد + ليه تحقق اذا كان اللاعب بالسيارة ، والحدث بالأصل اسمه عند دخول السيارة =|

+ getPedOccupiedVehicle + isPedInVehicle ليه مستخدم

^ Source: The source of this event is the vehicle that was entered.

يصصير كذآ -_-"

-- Server Side !

addEventHandler ( "onVehicleEnter", root, 
    function ( player ) 
        if ( getPlayerTeam ( player ) ) then 
            local r, g, b = getTeamColor ( getPlayerTeam ( player ) ) 
            setVehicleColor ( source, r, g, b ) 
        end 
    end 
) 

Link to comment

الكود ضآبط 100% ذذ -_-"

+ معنى سيرفر وكلنت

meta.xml يعني انكـ تحط نوع الملف بملف

^ Client Or Server

على ككل حأإل رفعت المود لك عالميديا فاير , لأنه شكلكـ منت عارف تسوي الميتا -_-"

حمله وركبه على ططول .. http://www.mediafire.com/?u6jei8gedeeg69y

Edited by Guest
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...