الإيفنت يجي على نوعين
مثال :
addEventHandler("onPlayerChat",root,function ( msg )
if msg == "السلام عليكم" then
outputChatBox("وعليكم السلام",source,255,255,255)
end
end
)
function onPlayerChat ( msg )
if msg == "السلام عليكم" then
outputChatBox("وعليكم السلام",source,255,255,255)
end
end
addEventHandler("onPlayerChat",root,onPlayerChat)
كليهما بيطلعون نفس النتيجة