AR/playSoundFrontEnd: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 4: Line 4:
teteomar  خنيث
teteomar  خنيث


==مثال==
Tete omar <-----------هذا طفل
<section name="server" class="server" show="true">
هذه المثال يشغل الصوت عند السباون
<syntaxhighlight lang="lua">
function onPlayerSpawn ( theSpawnpoint, theTeam )
    playSoundFrontEnd ( source, 16 )
end
addEventHandler ( "onPlayerSpawn", getRootElement(), onPlayerSpawn ) --- الحدث عند السباون
</syntaxhighlight>
</section>
<section name="client" class="client" show="true">
'/sound'  هذه المثال عندما الاعب يكتب في الشات
<syntaxhighlight lang="lua">
function onSoundEvent ( )
    playSoundFrontEnd ( 16 )
end
addCommandHandler("sound", onSoundEvent)
</syntaxhighlight>
</section>


==أنظر أيضاً==
==أنظر أيضاً==

Revision as of 23:05, 1 June 2013