Well, first off, you can make anything explosive by just setting its isexplosive property in the entity's settings. Second, if it's set as explosive then when it's health reaches zero then it'll explode. You can force that to happen by the following:
All you're left with now is spawning the entity, which you should be able to do by just setting the entity's position to the player's position with something like this:
SetPosition(e, g_PlayerPosX, g_PlayerPosY, g_PlayerPosZ)
System Specs: OS - Windows 7 Home Premium 64-bit SP1, CPU - AMD Phenom II X4 945, 3.0Ghz, RAM - 8Gb DDR3, GFX Card - 2048MB NVIDIA GeForce GT 640, FPSC-R Version - Beta 1.0085