Jump to content

طلب كود


MR:SADIQ

Recommended Posts

Posted

ججرب ذا،

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

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) 
  

Posted

جرب ذا

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

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

Posted

انت جربت تروح

تيم police

لازم تروح

تيم police

وتضرب واحد من تيم ثاني بـ Nightstick

ولازم ما يكون من تيم الـ police

+

لازم تحط احداثيات المكان

بدل

posX, posY, posZ

Posted
    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) 

غير مجرب ^^

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