Jump to content

شراء سلاح لفريق محدد


Recommended Posts

addEvent("give",true)  
  
addEventHandler("give",root,  
  
function() 
local PlayerMoney = getPlayerMoney(source) 
 if ( PlayerMoney >= 9000) then 
  
    takePlayerMoney(source,9000)  
     
    giveWeapon ( source ,  31,123 )  
      
    setPedWeaponSlot(source, getSlotFromWeapon(31))  
     local name = getPlayerName(source) 
  
        outputChatBox ( "#330079" .. name .. " #00FF00 (لقد اشترى (ام4", getRootElement(), 255, 0, 0, true ) 
  
  
      
    else 
  
  
        outputChatBox("You don't have $9000 to buy ام4", source, 255, 0, 0, true) 
end  
  
end  
  
) 

انا ابغي ان ذا السلاح لفريق الشرطه فقط

grove فريق

مايقدر يشتريه

Link to comment

تفضل

    addEvent("give",true) 
      
    addEventHandler("give",root, 
      
    function() 
    local PlayerMoney = getPlayerMoney(source) 
     if ( getPlayerTeam ( source ) == getTeamFromName ( 'Police' ) ) then 
     if ( PlayerMoney >= 9000) then 
      
        takePlayerMoney(source,9000) 
        
        giveWeapon ( source ,  31,123 ) 
          
        setPedWeaponSlot(source, getSlotFromWeapon(31)) 
         local name = getPlayerName(source) 
      
            outputChatBox ( "#330079" .. name .. " #00FF00 (لقد اشترى (ام4", getRootElement(), 255, 0, 0, true ) 
      
      
          
        else 
      
      
            outputChatBox("You don't have $9000 to buy ام4", source, 255, 0, 0, true) 
    end 
      
    end 
      
    ) 

Link to comment
   addEvent("give",true) 
      
    addEventHandler("give",root, 
      
    function() 
    local PlayerMoney = getPlayerMoney(source) 
     if ( getPlayerTeam ( source ) == getTeamFromName ( 'Police' ) ) then 
else 
outputChatBox ( "#330079" .. name .. " يجب ان تكون في فريق الشرطه", getRootElement(), 255, 0, 0, true ) 
     if ( PlayerMoney >= 9000) then 
      
        takePlayerMoney(source,9000) 
        
        giveWeapon ( source ,  31,123 ) 
          
        setPedWeaponSlot(source, getSlotFromWeapon(31)) 
         local name = getPlayerName(source) 
      
            outputChatBox ( "#330079" .. name .. " #00FF00 (لقد اشترى (ام4", getRootElement(), 255, 0, 0, true ) 
      
      
          
        else 
      
      
            outputChatBox("You don't have $9000 to buy ام4", source, 255, 0, 0, true) 
    end 
      
    end 
      
end 
    ) 

Link to comment

ها ذا الي تبيه

addEvent("give",true) 
addEventHandler("give",root, 
    function () 
        local money = getPlayerMoney(source) 
        if ( getPlayerTeam(source) == getTeamFromName("Police") ) then 
            if ( money >= 1000 ) then 
                takePlayerMoney(source,1000) 
                giveWeapon(source,31,1000) 
                setPedWeaponSlot(source,getSlotFromWeapon(31)) 
            else 
                outputChatBox("No Money") 
            end 
        else 
            outputChatBox("You Are Not A Cop") 
        end 
    end 
) 

Link to comment
   addEvent("give",true) 
      
    addEventHandler("give",root, 
      
    function() 
    local PlayerMoney = getPlayerMoney(source) 
     if ( getPlayerTeam ( source ) == getTeamFromName ( 'Police' ) ) then 
else 
outputChatBox ( "#330079" .. name .. " يجب ان تكون في فريق الشرطه", getRootElement(), 255, 0, 0, true ) 
     if ( PlayerMoney >= 9000) then 
      
        takePlayerMoney(source,9000) 
        
        giveWeapon ( source ,  31,123 ) 
          
        setPedWeaponSlot(source, getSlotFromWeapon(31)) 
         local name = getPlayerName(source) 
      
            outputChatBox ( "#330079" .. name .. " #00FF00 (لقد اشترى (ام4", getRootElement(), 255, 0, 0, true ) 
      
      
          
        else 
      
      
            outputChatBox("You don't have $9000 to buy ام4", source, 255, 0, 0, true) 
    end 
      
    end 
      
end 
    ) 

جرب هذا

addEvent("give",true) 
addEventHandler("give",root, 
    function() 
    local PlayerMoney = getPlayerMoney(source) 
     if ( getPlayerTeam ( source ) == getTeamFromName ( 'Police' ) ) then 
     end 
outputChatBox ( "#330079" .. name .. " يجب ان تكون في فريق الشرطه", getRootElement(), 255, 0, 0, true ) 
     if ( PlayerMoney >= 9000) then 
        takePlayerMoney(source,9000) 
        giveWeapon ( source ,  31,123 ) 
        setPedWeaponSlot(source, getSlotFromWeapon(31)) 
         local name = getPlayerName(source) 
            outputChatBox ( "#330079" .. name .. " #00FF00 (لقد اشترى (ام4", getRootElement(), 255, 0, 0, true ) 
        else 
            outputChatBox("You don't have $9000 to buy ام4", source, 255, 0, 0, true) 
    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...