Jump to content

طلب


Recommended Posts

السسلام عليكم ورحمة الله وبركاته

ششباب ابي كود تجهزونه لي لو سمحتو

ابي 3 ماركرات

ماركاكات كتاكت مدري كيف اجمعها

المهم ابي 3 ماركر

ابي واحد تدخل تصير تيم شرطي

والثاني تدخه تصير تيم مجرم

وثالث تدخله تصير تيم مسعف

تكفووون

Link to comment

جـرب *

local marker = createMarker( . . . . . ) 
Team = createTeam('Police') 
  
addEventHandler('onMarkerHit',marker,function(player) 
  if getElementType(player) == 'player' then 
   setPlayerTeam( player, Team ) 
    end 
 end 
) 
Link to comment
local myMarker = createMarker( x, y, z, 'cylinder', 2.0, 255, 0, 0, 150) 
local pollice = createTeam ( "Police", 0, 255, 0 ) 
local ID = رقم شخصية الشرطة 
  
addEventHandler( "onMarkerHit", myMarker, 
function ( plr ) 
    if getElementType( plr ) == 'player' and getTeamName( getPlayerTeam(source) ) ~= 'Police' then 
       setPlayerTeam ( plr, pollice ) 
         setElementModel ( plr, ID ) 
     end 
  end 
) 

Link to comment
local myMarker = createMarker( x, y, z, 'cylinder', 2.0, 255, 0, 0, 150) ---- عمل ماركر 
local pollice = createTeam ( "Police", 0, 255, 0 ) ----- عمل تيم 
local ID = 285 --- رقم شخصية الشرطى 
  
addEventHandler( "onMarkerHit", myMarker, ---- عند لمس الماركر 
function ( plr ) --- وظيفة 
    if getElementType( plr ) == 'player' and getTeamName( getPlayerTeam(source) ) ~= 'Police' then --- تحقق من النوع والتيم 
       setPlayerTeam ( plr, pollice ) ----- ضبط التيم 
         setElementModel ( plr, ID ) ---- ضبط الشخصية 
     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...