AR/playSoundFrontEnd: Difference between revisions
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
teteomar خنيث | teteomar خنيث | ||
==مثال== | |||
<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 00:11, 2 June 2013
. هذه الدالة تشغل الواجهة الأمامية الصوت للمشغل المحدد teteomar خنيث
مثال
Click to collapse [-]
serverهذه المثال يشغل الصوت عند السباون
function onPlayerSpawn ( theSpawnpoint, theTeam ) playSoundFrontEnd ( source, 16 ) end addEventHandler ( "onPlayerSpawn", getRootElement(), onPlayerSpawn ) --- الحدث عند السباون
Click to collapse [-]
client'/sound' هذه المثال عندما الاعب يكتب في الشات
function onSoundEvent ( ) playSoundFrontEnd ( 16 ) end addCommandHandler("sound", onSoundEvent)
^_^