Code
addCommandHandler ( "tango", function ( player )
if ( antispam[player] or 0 ) + 2000 <= getTickCount() then
if isSwat ( player ) then
local playername = getPlayerName ( player )
for thePlayer, _ in pairs ( fraktionMembers[1] ) do
outputChatBox ( "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++", thePlayer, 255, 0, 0 )
outputChatBox ( playername.." hat einen Tango im Einsatz Ausgeschaltet!", thePlayer, 0, 0, 255 )
outputChatBox ( "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++", thePlayer, 255, 0, 0 )
end
for thePlayer, _ in pairs ( fraktionMembers[6] ) do
outputChatBox ( "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++", thePlayer, 255, 0, 0 )
outputChatBox ( playername.." hat einen Tango im Einsatz Ausgeschaltet!", thePlayer, 0, 0, 255 )
outputChatBox ( "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++", thePlayer, 255, 0, 0 )
end
for thePlayer, _ in pairs ( fraktionMembers[14] ) do
outputChatBox ( "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++", thePlayer, 255, 0, 0 )
outputChatBox ( playername.." hat einen Tango im Einsatz Ausgeschaltet!", thePlayer, 0, 0, 255 )
outputChatBox ( "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++", thePlayer, 255, 0, 0 )
end
end
end
end )
Alles anzeigen
Wie bekomme ich es hin das bei den Fraktionen die die Nachricht Bekommen ein Sound Abgespielt wird? Bitte um Hilfe
Mit Freundlichen Grüßen
Sebastian aka. Fireman19