Jump to content

تصحيح كود


D7Ommy

Recommended Posts

Posted

السلام عليكم

بسم الله الرحمن الرحيم

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

بدي هذا الكود ما يقدر يقتل الما علي نجوم و شكرا

function outputWantedLevel () 
local wantedLvl = getPlayerWantedLevel ( ) 
if wantedLvl == 0 then 
outputChatBox ( "ليس لدية نجوم", 0, 255, 0) 
else 
outputChatBox ( "You have ".. wantedLvl .." wanted stars!", 255, 0, 0) 
end 
 end 
addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), outputWantedLevel ) 

Posted

addEventHandler("onClientPlayerDamage", root, 
function () 
local wanted = getPlayerWantedLevel( ) 
if wanted > 2 then 
outputChatBox("You can kill him", 255, 255, 0) 
else 
cancelEvent () 
outputChatBox("You can't kill him", 255, 0, 0) 
end 
end 
) 
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...