Jump to content

طلب سياره ما يركبها الى لاعب محدد


Recommended Posts

وين أحط أحداثيات السيارة
local PosX, PosY, PosZ = -- هنا ألأحداثيات 
local Model = --هنا ألأي دي صح  
local vehicle = createVehicle( Model, PosX, PosY, PosZ ) -- ولا هنا ألأحداثيات  

يب صحيح .. الاحداثيات بالسطر الاول فقط عدل .

Link to comment
local PosX, PosY, PosZ =  0 , 0 , 0 --    x,y,z  استبدل الصفار بي  
local Model = --هنا ألأي دي صح 
local vehicle = createVehicle( Model, PosX, PosY, PosZ ) -- ولا هنا ألأحداثيات 

أوكي وهذا

local vehicle = createVehicle( Model, PosX, PosY, PosZ ) -- ولا هنا ألأحداثيات 

شو أخلي هنا

Link to comment
local PosX, PosY, PosZ =  0 , 0 , 0 --    x,y,z  استبدل الصفار بي  
local Model = --هنا ألأي دي صح 
local vehicle = createVehicle( Model, PosX, PosY, PosZ ) -- ولا هنا ألأحداثيات 

أوكي وهذا

local vehicle = createVehicle( Model, PosX, PosY, PosZ ) -- ولا هنا ألأحداثيات 

شو أخلي هنا

عدل السطر الاول والثاني فقط . > ما عليك من هذا ذذ

Link to comment
local PosX, PosY, PosZ =  0 , 0 , 0 --    x,y,z  استبدل الصفار بي  
local Model = --هنا ألأي دي صح 
local vehicle = createVehicle( Model, PosX, PosY, PosZ ) -- ولا هنا ألأحداثيات 

أوكي وهذا

local vehicle = createVehicle( Model, PosX, PosY, PosZ ) -- ولا هنا ألأحداثيات 

شو أخلي هنا

عدل السطر الاول والثاني فقط . > ما عليك من هذا ذذ

زاحف ممكن طلب ثاني

أبي واحد نفسه بس على تيم مش على سيريال

واسف أني تعبتك معي

وشكرا

Link to comment

لا تنسا تبدل اسم التيم .

local PosX, PosY, PosZ = 
local Model = 
local TeamName = "TeamName" 
local vehicle = createVehicle( Model, PosX, PosY, PosZ ) 
  
  
addEventHandler ( "onVehicleStartEnter", root, function( player ) 
  if ( source == vehicle ) then 
      if ( getPlayerTeam( player ) and getPlayerTeam( player ) == getTeamFromName( TeamName ) ) then 
         outputChatBox ( "** Welcome "..getPlayerName( player ).." To your car ^", player, 0, 255, 255, true ) 
   else 
         cancelEvent ( true )   
         outputChatBox ( "** This privately owned vehicle For "..TeamName, player, 0, 255, 255, true ) 
       end 
    end 
end )    
Link to comment
لا تنسا تبدل اسم التيم .

local PosX, PosY, PosZ = 
local Model = 
local TeamName = "TeamName" 
local vehicle = createVehicle( Model, PosX, PosY, PosZ ) 
  
  
addEventHandler ( "onVehicleStartEnter", root, function( player ) 
  if ( source == vehicle ) then 
      if ( getPlayerTeam( player ) and getPlayerTeam( player ) == getTeamFromName( TeamName ) ) then 
         outputChatBox ( "** Welcome "..getPlayerName( player ).." To your car ^", player, 0, 255, 255, true ) 
   else 
         cancelEvent ( true )   
         outputChatBox ( "** This privately owned vehicle For "..TeamName, player, 0, 255, 255, true ) 
       end 
    end 
end )    

شكرا

أذا أبي السيارة ما تتحطم أحك هيك بس بدل

car

شو أحط

  
local PosX, PosY, PosZ =  0 , 0 , 5 
local Model = 429 
local TeamName = "GGG" 
local vehicle = createVehicle( Model, PosX, PosY, PosZ ) 
  
  
addEventHandler ( "onVehicleStartEnter", root, function( player ) 
  if ( source == vehicle ) then 
      if ( getPlayerTeam( player ) and getPlayerTeam( player ) == getTeamFromName( TeamName ) ) then 
         outputChatBox ( "** Welcome "..getPlayerName( player ).." To your car ^", player, 0, 255, 255, true ) 
   else 
         cancelEvent ( true )   
         outputChatBox ( "** This privately owned vehicle For "..TeamName, player, 0, 255, 255, true ) 
       end 
    end 
end )   
  
setVehicleDamageProof(Bus5, true) 
setVehicleLocked ( CAR, false )  
setElementFrozen ( CAR, false )  

Link to comment
local PosX, PosY, PosZ = 0 , 0 , 5 
local Model = 429 
local TeamName = "GGG" 
local vehicle = createVehicle( Model, PosX, PosY, PosZ ) 
setVehicleDamageProof( vehicle, true ) 
  
addEventHandler ( "onVehicleStartEnter", root, function( player ) 
  if ( source == vehicle ) then 
      if ( getPlayerTeam( player ) and getPlayerTeam( player ) == getTeamFromName( TeamName ) ) then 
         outputChatBox ( "** Welcome "..getPlayerName( player ).." To your car ^", player, 0, 255, 255, true ) 
   else 
         cancelEvent ( true )   
         outputChatBox ( "** This privately owned vehicle For "..TeamName, player, 0, 255, 255, true ) 
       end 
    end 
end )   
  

Link to comment
local PosX, PosY, PosZ = 0 , 0 , 5 
local Model = 429 
local TeamName = "GGG" 
local vehicle = createVehicle( Model, PosX, PosY, PosZ ) 
setVehicleDamageProof( vehicle, true ) 
  
addEventHandler ( "onVehicleStartEnter", root, function( player ) 
  if ( source == vehicle ) then 
      if ( getPlayerTeam( player ) and getPlayerTeam( player ) == getTeamFromName( TeamName ) ) then 
         outputChatBox ( "** Welcome "..getPlayerName( player ).." To your car ^", player, 0, 255, 255, true ) 
   else 
         cancelEvent ( true )   
         outputChatBox ( "** This privately owned vehicle For "..TeamName, player, 0, 255, 255, true ) 
       end 
    end 
end )   
  

يا أخي بديت أحبك

شكرا

:mrgreen::mrgreen::mrgreen::mrgreen:

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