-
Sziasztok az lenne a kerdesem hogy miert nem mukodik a script lespawnolok de a gyilkosomat mutatja allandoan es engemet nem szoval bebuggol a camera
Szerver oldal
function player_Wasted (ammo, attacker, weapon, bodypart )
x,y,z =1184,-1324,13
if(not attacker)then
setTimer(spawnPlayer, 5000, 1, source,x,y,z )
fadeCamera(source, true)
setCameraTarget(source, source)
end
if(attacker) then
if ( getElementType ( attacker ) == \"player\" or getElementType ( attacker ) == \"vehicle\" ) then
setCameraTarget(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)
end
end
-
if attacker ~= source then
-
ja de ugysem megy gondolom erre gondoltal javits ki ha tevednek
function player_Wasted (ammo, attacker, weapon, bodypart )
x,y,z =1184,-1324,13
if(not attacker)then
setTimer(spawnPlayer, 5000, 1, source,x,y,z )
fadeCamera(source, true)
setCameraTarget(source, source)
end
if(attacker) then
if ( getElementType ( attacker ) == \"player\" or getElementType ( attacker ) == \"vehicle\" ) then
if attacker~= source then
setCameraTarget(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)
end
end
end
-
function player_Wasted (ammo, attacker, weapon, bodypart )
x,y,z =1184,-1324,13
if(not attacker)then
setTimer(spawnPlayer, 5000, 1, source,x,y,z )
fadeCamera(source, true)
setCameraTarget(source, source)
end
if attacker ~= source then
if ( getElementType ( attacker ) == \"player\" or getElementType ( attacker ) == \"vehicle\" ) then
setCameraTarget(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)
end
end
-
meg mindig buggol a kamera ujra eledek te a CameraTarget a killeren marad ez miert lehet ?
-
Csak eggy tipp rakd bele a spawn player funkcióba a setCameraTarget et
-
Erre gondoltal mert ugysem megy
function player_Wasted (ammo, attacker, weapon, bodypart )
x,y,z =1184,-1324,13
if(not attacker)then
setTimer(spawnPlayer, 5000, 1, source,x,y,z )
fadeCamera(source, true)
setCameraTarget(source, source)
end
if attacker ~= source then
if ( getElementType ( attacker ) == \"player\" or getElementType ( attacker ) == \"vehicle\" ) then
setTimer(function
setCameraTarget(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)
end
end
-
A téma elavult, zárom és helyezem.