Jump to content

طلب تصحيح كود


Recommended Posts

اريد تصحيح الكود

هاذا الكود اي واحد علية نجوم اذا قتلة تيم الشرطة يروح السجن

لمدهـ 60 ثانية ويطلع

اريد تصحيحة

الكود غير مجرب

addEventHandler ("onPlayerWasted"(), 
function () 
if ( getPlayerTeam(source) ) and ( getTeamName(getPlayerTeam(source)) ) == "Police" then 
local Levels = getPlayerWantedLevel ( source ) 
if ( Levels > 1 ) then 
setElementPosition(source,x,y,z) 
setTimer(setElementPosition,60000,1,source,x,y,z) 
end 
end) 

Link to comment
addEventHandler ("onPlayerWasted", root,function (_,killer) 
if ( killer and getElementType(killer) == "player" ) then 
if ( getPlayerTeam(source) ~= getTeamFromName("Police") and getPlayerTeam(killer) == getTeamFromName("Police") ) then 
local Levels = getPlayerWantedLevel ( source ) 
if ( Levels > 1 ) then 
setElementPosition(source,x,y,z) 
setTimer(setElementPosition,60000,1,source,x,y,z) 
end 
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...