مثــــــــال :
addEventHandler("onPlayerDamage",getRootElement(),
setTimer function ( attacker, attackerWeapon )
if ( attackerWeapon == 3 ) then -- رقم السلاح
local attackert = getTeamFromName ("اسم تيم الشرطة")
local id = getElementModel ( source )
local Dimension = getElementDimension ( source )
local Interior = getElementInterior ( source )
local level = getPlayerWantedLevel ( source )
if level == 5 and getPlayerTeam ( attacker ) == attackert then -- اذا كانت نجوم الحرامي 5 يعتقله
setElementPosition ( source, X, Y, Z )
outputChatBox("تم اعتقالك !", source, 255, 0, 0)
end, 5*60000, 1 ) -- الوقت 5 دقايق
end
end
)
بدل X,Y,Z الى احداثيات السجن
# تخبيصصص , لو ما تعرف مو لأزم تسأعد .
انا قلت مثال ما قلت حقه ياخذه