function createExplosionForPlayer ( thePlayer, command )
timer = setTimer ( createJihadForPlayer, 2500, 1, thePlayer, x, y, z )
triggerClientEvent ( "playTheSound", getRootElement(), thePlayer )
end
addCommandHandler ( "Jihad", createExplosionForPlayer )
addCommandHandler ( "jihad", createExplosionForPlayer )
function createJihadForPlayer ( thePlayer, x, y, z )
local x, y, z = getElementPosition ( thePlayer )
local createdExplosion = createExplosion ( x, y, z, 2 )
local createdExplosion = createExplosion ( x, y, z, 9 )
local createdExplosion = createExplosion ( x, y, z, 10 )
if ( createdExplosion == true ) then
outputChatBox ( getPlayerName ( thePlayer ) .." comitted a Jihad!" )
end
end
function playTheSound ( thePlayer )
local x, y, z = getElementPosition ( thePlayer )
local uSound = playSound3D ( 'Jihad.mp3', x, y, z, false )
setSoundMaxDistance ( uSound, 100 )
setSoundVolume ( uSound, 1 )
end
addEvent ( "playTheSound", true )
addEventHandler ( "playTheSound", getRootElement(), playTheSound )