Jump to content

مطلوب مود


Recommended Posts

  • Replies 51
  • Created
  • Last Reply

Top Posters In This Topic

لا ي دلخ :lol:

هو يبي ماوس لما يظغط على الاعب يسويله سلاب

و لما سياره يسحبها

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 
addEventHandler('onElementClicked',root,click 

Link to comment
لا ي دلخ :lol:

هو يبي ماوس لما يظغط على الاعب يسويله سلاب

و لما سياره يسحبها

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 
addEventHandler('onElementClicked',root,click 

استعجلت بالموضوعع وانا اقرا :oops::oops:

Link to comment
لا ي دلخ :lol:

هو يبي ماوس لما يظغط على الاعب يسويله سلاب

و لما سياره يسحبها

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 
addEventHandler('onElementClicked',root,click 

    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 
addEventHandler('onElementClicked',root,click) 

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(player,false) 
    else 
        showCursor(player,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 
) 
  

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

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

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

شكرا

ما يشتغل!

Link to comment
[2012-12-06 15:56:39] WARNING: 1212\server.lua:13: Bad argument @ 'bindKey'
يوه نسيت كود اظهار الماوس :lol:
show = false 
bindKey('a','down', 
function() 
if(show==false)then 
showCursor(source,true) 
else 
showCursor(source,false) 
end 
end) 

show = false 
bindKey("a","down", 
function() 
if(show==false)then 
showCursor(source,true) 
else 
showCursor(source,false) 
end 
end) 

Link to comment
   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 
addEventHandler('onElementClicked',root,click) 
  
show = false 
bindKey("a","down", 
function() 
if(show==false)then 
showCursor(source,true) 
else 
showCursor(source,false) 
end 
end) 

سطر 12

Link to comment
   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) 
    if isCursorShowing(player) then 
        showCursor(false) 
    else 
        showCursor(true) 
    end 
end 
bindKey(source,'a','down',cursor) 
  

Link to comment
   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) 
    if isCursorShowing(player) then 
        showCursor(false) 
    else 
        showCursor(true) 
    end 
end 
bindKey(source,'a','down',cursor) 
  

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

Link to comment
   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) 
    if isCursorShowing(player) then 
        showCursor(false) 
    else 
        showCursor(true) 
    end 
end 
bindKey(source,'a','down',cursor) 
  

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

تاكد انه سيرفر

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