function cmdArmedPed( command )
local x,y,z = getElementPosition(localPlayer)
local thePed = createPed(0, x + 1, y, z)
setTimer ( givePedWeapon,500,1,thePed,30,5000,true )
setPedControlState(thePed,"fire", true)
setPedAimTarget( thePed, x,y,z)
end
addCommandHandler("armedped", cmdArmedPed)
يب شوف يطلق بس مو علي ..