function player_Wasted (ammo, attacker, weapon, bodypart )x,y,z =1184,-1324,13 if(not attacker)thensetTimer(spawnPlayer, 5000, 1, source,x,y,z )fadeCamera(source, true)setCameraTarget(source, source)end if(attacker) thenif ( getElementType ( attacker ) == \"player\" or getElementType ( attacker ) == \"vehicle\" ) thensetCameraTarget(source,attacker)fadeCamera(source, true)setTimer(spawnPlayer, 5000, 1, source, x, y, z )setTimer(function()fadeCamera(source, true)setCameraTarget(source, source)end,5000,1)athp = getElementHealth(attacker)setElementHealth(attacker,athp+5)givePlayerMoney(attacker,100)takePlayerMoney(source,100)stars = getPlayerWantedLevel(attacker)setPlayerWantedLevel(attacker,stars+1)endend
if attacker ~= source then
function player_Wasted (ammo, attacker, weapon, bodypart )x,y,z =1184,-1324,13if(not attacker)thensetTimer(spawnPlayer, 5000, 1, source,x,y,z )fadeCamera(source, true)setCameraTarget(source, source)end if(attacker) thenif ( getElementType ( attacker ) == \"player\" or getElementType ( attacker ) == \"vehicle\" ) thenif attacker~= source thensetCameraTarget(source,attacker)fadeCamera(source, true)setTimer(spawnPlayer, 5000, 1, source, x, y, z )setTimer(function()fadeCamera(source, true)setCameraTarget(source, source)end,5000,1)athp = getElementHealth(attacker)setElementHealth(attacker,athp+5)givePlayerMoney(attacker,100)takePlayerMoney(source,100)stars = getPlayerWantedLevel(attacker)setPlayerWantedLevel(attacker,stars+1)endendend
function player_Wasted (ammo, attacker, weapon, bodypart )x,y,z =1184,-1324,13 if(not attacker)thensetTimer(spawnPlayer, 5000, 1, source,x,y,z )fadeCamera(source, true)setCameraTarget(source, source)end if attacker ~= source thenif ( getElementType ( attacker ) == \"player\" or getElementType ( attacker ) == \"vehicle\" ) thensetCameraTarget(source,attacker)fadeCamera(source, true)setTimer(spawnPlayer, 5000, 1, source, x, y, z )setTimer(function()fadeCamera(source, true)setCameraTarget(source, source)end,5000,1)athp = getElementHealth(attacker)setElementHealth(attacker,athp+5)givePlayerMoney(attacker,100)takePlayerMoney(source,100)stars = getPlayerWantedLevel(attacker)setPlayerWantedLevel(attacker,stars+1)endend
function player_Wasted (ammo, attacker, weapon, bodypart )x,y,z =1184,-1324,13 if(not attacker)thensetTimer(spawnPlayer, 5000, 1, source,x,y,z )fadeCamera(source, true)setCameraTarget(source, source)end if attacker ~= source thenif ( getElementType ( attacker ) == \"player\" or getElementType ( attacker ) == \"vehicle\" ) thensetTimer(functionsetCameraTarget(source,attacker)fadeCamera(source, true)spawnPlayer(source, x, y, z)end,5000,1 )setTimer(function()fadeCamera(source, true)setCameraTarget(source, source)end,5000,1)athp = getElementHealth(attacker)setElementHealth(attacker,athp+5)givePlayerMoney(attacker,100)takePlayerMoney(source,100)stars = getPlayerWantedLevel(attacker)setPlayerWantedLevel(attacker,stars+1)endend