Jump to content

طلب كود


MR:SADIQ

Recommended Posts

ججرب ذا،

اذا ما شتغل قول

function playerDamage(attacker, weapon) 
local Team = getTeamFromName("Grove") 
local aTeam = getPlayerTeam(attacker) 
local sTeam = getPlayerTeam(source) 
if Team == aTeam and Team ~= sTeam and (weapon == 3) then 
setElementPosition ( source, posX, posY, posZ ) 
end 
end 
addEventHandler("onPlayerDamage", root, playerDamage) 
  

Link to comment

جرب ذا

function playerDamage(attacker, weapon) 
     local Team = getTeamFromName("Police") 
     local aTeam = getPlayerTeam(attacker) 
     if Team and aTeam and Team == aTeam and (weapon == 3) then 
setElementPosition ( source, posX, posY, posZ ) 
     end 
end 
addEventHandler("onPlayerDamage", root, playerDamage) 

الكود سيرفر

تستبدل

posX, posY, posZ

بـ احداثيات المكان

Link to comment
    function playerDamage(attacker, wp) 
         if getPlayerTeam ( source ) ~= getTeamFromName ( "Police" ) then 
            if getPlayerTeam ( attacker ) == getTeamFromName ( "Police" ) then 
               if wp == 3 then 
    setElementPosition ( source, posX, posY, posZ ) 
               end 
            end 
         end     
    end 
    addEventHandler("onPlayerDamage", root, playerDamage) 

غير مجرب ^^

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