Jump to content

تم الافادة


CRoW,,#

Recommended Posts

marker = createMarker ( 1791.1716308594, 1372.0931396484, 6.7419948577881, "cylinder", 4, 255, 255, 0, 170 )      
-------- 
function kill(thePlayer) 
local accName = getAccountName (getPlayerAccount(thePlayer)) 
if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
killPed ( thePlayer ) 
   end 
end 
addEventHandler( "onMarkerHit", marker, kill ) 
  

By 3nad

Link to comment

marker = createMarker ( x,y,z, "cylinder", 2, 255, 255, 0, 170 )      
  
addEventHandler( "onMarkerHit", marker,  
function (player) 
if (getElementType (player) == "player") then 
local team = getPlayerTeam (player) 
if ( team and getTeamName ( team ) ~= "اسم التيم" ) then 
killPed (player) 
       end 
  end 
end 
) 

للمعلومية يالغالي لازم تكون بـ تيم عشان تموت يعني اذا مماكنت بتيم ماراح تموت (= ! واذا كنت بتيم الاسم اللي انت حاطة ماراح تموت واذا كنت بتيم وماحطيتة انت بالمكان فوق راح تموت وصلت ذذ

Link to comment

إذا تبي ماحد يقدر يضرب إلا الشرطة

marker = createMarker( X, Y, Z, "cylinder", 50, 0, 255, 0, 0 ) 
  
addEventHandler( "onMarkerHit", root, 
    function ( ) 
        if ( getElementType ( source ) == "player" ) then 
            local team = getPlayerTeam ( source ) 
            if ( team and getTeamFromName ( team ) ~= "Police" ) then 
                toggleControl( source, "fire", false ) 
                toggleControl( source, "aim_weapon", false ) 
            end 
        end 
    end 
) 
  
addEventHandler( "onMarkerLeave", root, 
    function ( ) 
        if ( getElementType ( source ) == "player" ) then 
            toggleControl( source, "fire", true )  
            toggleControl( source, "aim_weapon", true ) 
        end 
    end 
) 
  

:D وإذا شي ثاني, ياليت توضح أكثر

Edited by Guest
Link to comment
-- Server Side 
ColShape = createColRectangle (x,y, Width, Height )  
Radar = createRadarArea (leftX,bottomY,sizeX,sizeY,r,g, b,a) --The Arguments . 
  
addEventHandler( "onColShapeHit", ColShape,  
function (player) 
if (getElementType (player) == "player") then 
local team = getPlayerTeam (player) 
if ( team and getTeamName ( team ) ~= "اسم التيم" ) then 
killPed (player) 
       end 
  end 
end 
) 

Link to comment
إذا تبي ماحد يقدر يضرب إلا الشرطة
marker = createMarker( X, Y, Z, "cylinder", 50, 0, 255, 0, 0 ) 
  
addEventHandler( "onMarkerHit", root, 
    function ( ) 
        if ( getElementType ( source ) == "player" ) then 
            local team = getPlayerTeam ( source ) 
            if ( team and getTeamFromName ( team ) ~= "Police" ) then 
                toggleControl( source, "fire", false ) 
                toggleControl( source, "aim_weapon", false ) 
            end 
        end 
    end 
) 
  

وإذا شي ثاني, ياليت توضح أكثر

https://wiki.multitheftauto.com/wiki/OnMarkerHit

The source of this event is the marker that got hit by the element.

بالنسبة للسطر ذا

if ( team and getTeamFromName ( team ) ~= "Police" ) then 

شوف ردي بالموضوع ذا

viewtopic.php?f=160&t=54250&start=15

Link to comment
-- Server Side 
ColShape = createColRectangle (احداثي x , احداثي y , ارتفاع المساحة , عرض المساحة )  
  
 addEventHandler( "onColShapeHit", ColShape,  
function (player) 
if (getElementType (player) == "player") then 
local team = getPlayerTeam (player) 
if ( team and getTeamName ( team ) ~= "اسم التيم" ) then 
killPed (player) 
       end 
  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...