Jump to content

مطلوب مود


Recommended Posts

  • Replies 51
  • Created
  • Last Reply

Top Posters In This Topic

نعم معه حق

نفس الخطا سطر 16

وانا مسويه سيرفر

يمكن كذا

       function click(m,s,p) 
            if(getPlayerTeam(p)==getTeamFromName('Police'))then 
           if(m=='right')then 
             if(getElementType(source)=='vehicle')then destroyElement(source) return end 
               if(getElementType(source)=='player')then setElementHealth(source,0) return end 
                    end 
    end 
    end 
function cursor(player, key) 
        if isCursorShowing(player) then 
            showCursor(false) 
        else 
            showCursor(true) 
        end 
    end 
    bindKey(source,"a","down",cursor) 

Link to comment
-- Server Side 
addEventHandler ( "onElementClicked", root, 
    function ( _, _, thePlayer ) 
        acc = getAccountName ( getPlayerAccount ( thePlayer ) )  
        if isObjectInACLGroup ("user.".. acc, aclGetGroup ( "Police" ) ) then 
            if getElementType ( source ) == "player" then 
                killPed ( source, thePlayer ) 
            elseif getElementType ( source ) == "vehicle" then 
                destroyElement ( source ) 
            end 
        end 
    end 
) 
  

-- Client Side 
bindKey ( "a", "down", 
    function ( ) 
        showCursor ( not isCursorShowing() ) 
    end 
) 
  

Link to comment
ترا سويته لاني طفشان
addEventHandler("onElementClicked",root, 
    function (_,_,player) 
        if ( getElementData(player,"Can") == true ) then 
            if ( getElementType(source) == "player" ) then 
                killPed(source,player) 
            elseif ( getElementType(source) == "vehicle" ) then 
                destroyElement(source) 
            end 
        end 
    end 
) 
  
function cursor(player) 
    if isCursorShowing(player) then 
        showCursor(false) 
    else 
        showCursor(true) 
    end 
end 
  
  
addEventHandler("onPlayerLogin",root, 
    function (_,acc) 
        if isObjectInACLGroup("user." .. getAccountName(acc),aclGetGroup("Police")) then 
            setElementData(source,"Can",true) 
            bindKey(source,"a","down",cursor) 
        end 
    end 
) 
  

لازم يكون في قروب الشرطة

ذا شغال و مضمون انت عندك مشكله و ورني وش يجي في الـ

/debugscript 3

Link to comment
ترا سويته لاني طفشان
addEventHandler("onElementClicked",root, 
    function (_,_,player) 
        if ( getElementData(player,"Can") == true ) then 
            if ( getElementType(source) == "player" ) then 
                killPed(source,player) 
            elseif ( getElementType(source) == "vehicle" ) then 
                destroyElement(source) 
            end 
        end 
    end 
) 
  
function cursor(player) 
    if isCursorShowing(player) then 
        showCursor(false) 
    else 
        showCursor(true) 
    end 
end 
  
  
addEventHandler("onPlayerLogin",root, 
    function (_,acc) 
        if isObjectInACLGroup("user." .. getAccountName(acc),aclGetGroup("Police")) then 
            setElementData(source,"Can",true) 
            bindKey(source,"a","down",cursor) 
        end 
    end 
) 
  

لازم يكون في قروب الشرطة

ذا شغال و مضمون انت عندك مشكله و ورني وش يجي في الـ

/debugscript 3

showCursor عندك خطأ في

في السيرفر مطلوب لاعب و أنت مو حاط

Link to comment
addEventHandler ( "onElementClicked", root, 
    function ( _, _, thePlayer ) 
        acc = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user.".. acc, aclGetGroup ( "admin" ) ) then 
            if getElementType ( source ) == "player" then 
                killPed ( source, thePlayer ) 
            elseif getElementType ( source ) == "vehicle" then 
                destroyElement ( source ) 
            end 
        end 
    end 
) 
  

سوري نسيت السيرفر

bindKey ( "m", "down", 
    function ( ) 
        showCursor ( not isCursorShowing() ) 
    end 
) 
  

Edited by Guest
Link to comment
addEventHandler ( "onElementClicked", root, 
    function ( _, _, thePlayer ) 
        acc = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user.".. acc, aclGetGroup ( "Admin" ) ) then 
            if getElementType ( source ) == "player" then 
                killPed ( source, thePlayer ) 
            elseif getElementType ( source ) == "vehicle" then 
                destroyElement ( source ) 
            end 
        end 
    end 
) 

بس المفروض تتحق من الماوس مثلا اذا بغيت كلك يمين هو الي يقتل وكلك يسار يسحب .

Link to comment
addEventHandler ( "onElementClicked", root, 
    function ( _, _, thePlayer ) 
        acc = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ("user.".. acc, aclGetGroup ( "Admin" ) ) then 
            if getElementType ( source ) == "player" then 
                killPed ( source, thePlayer ) 
            elseif getElementType ( source ) == "vehicle" then 
                destroyElement ( source ) 
            end 
        end 
    end 
) 

بس المفروض تتحق من الماوس مثلا اذا بغيت كلك يمين هو الي يقتل وكلك يسار يسحب .

a وتحدد انه مايسحب ويتقل الى اذا طلعت الماوس بي

لأنه لو فتحت لوحة وضغطت زر وقدامك احد يقتله

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