Jump to content

كيف اعمل روتيتون ؟؟!!


Recommended Posts

مساعده كيف بدي اعمل لف للبيد Ped
CirimnalPed = createPed(293,1962.0010,2322.26699,15.45581) 

بدي اخليه يلف

يعني اخلي البيد يلف 380 درجه دورا دائري

CirimnalPed = createPed(293,1962.0010,2322.26699,15.45581, 0, 0, 380) 

Link to comment
الان انا عملت وظيفه شرطي لما اخذ الوظيفه يحولني تيم بوليس الان ابي لما اي واحد يطلق علي رصاص يجيه نجوم هل في مود منشور من قبل ؟

مدري منشور ولا لا تقدر تستخدم

getPlayerTeam 
onPlayerDamage 
setPlayerWantedLevel 

Link to comment

local tTEAM = createTeam ( "Nteam", 255, 0, 0 ) 
  
addEventHandler ( "onPlayerDamage", root, function ( atk, _, _, los ) 
    if ( atk ) and ( atk ~= source ) and ( getElementType ( atk ) == "player" ) then 
        local teamm = getPlayerTeam ( atk ) 
            if ( teamm ) then 
                if ( getTeamName ( teamm ) ~= "Police" ) then 
            setPlayerWantedLevel ( atk, getPlayerWantedLevel ( atk ) + 1 ) 
        else 
            outputChatBox ("",atk,0,0,0,true) 
        end 
    else 
        setPlayerTeam ( atk, tTEAM ) 
    end 
end ) 
Edited by Guest
Link to comment

يا احمد كودك خرابيط

addEventHandler("onPlayerDamage", root, 
 function(plr,_, killer) 
 if killer and killer ~= source and getElementType(killer) == "player" then 
  local team = getPlayerTeam(plr) 
  if team and getTeamName(team) == "Police" then 
  setPlayerWantedLevel ( killer, 6 ) 
    end 
  end 
end 
) 
  
addEventHandler("onPlayerDamage", root, 
function(plr,_,killer) 
 if killer and killer ~= source and getElementType(killer) == "player" then 
  local team = getPlayerTeam( plr ) 
local level = getPlayerWantedLevel ( killer ) 
if team and getTeamName(team) == "Police" then 
if level < 3 then 
cancelEvent() 
    end 
  end 
end 
) 

من وين جايب plr,_

Link to comment

يا احمد كودك خرابيط

addEventHandler("onPlayerDamage", root,
 function(plr,_, killer)
 if killer and killer ~= source and getElementType(killer) == "player" then
  local team = getPlayerTeam(plr)
  if team and getTeamName(team) == "Police" then
  setPlayerWantedLevel ( killer, 6 )
    end
  end
end
)
 
addEventHandler("onPlayerDamage", root,
function(plr,_,killer)
 if killer and killer ~= source and getElementType(killer) == "player" then
  local team = getPlayerTeam( plr )
local level = getPlayerWantedLevel ( killer )
if team and getTeamName(team) == "Police" then
if level < 3 then
cancelEvent()
    end
  end
end
)

من وين جايب plr,_

انا وقتها ما جربتو سويتو له علي السريع

+

مثل ما قال عمر عندي خطاء لان

'onPlayerDamage'

ما تتكنسل

addEventHandler("onPlayerDamage", root,
 function(_, killer)
 if killer and killer ~= source and getElementType(killer) == "player" then
  local team = getPlayerTeam(localPlayer)
  if team and getTeamName(team) == "Police" then
  setPlayerWantedLevel ( killer, 6 )
    end
  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...