Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: poprawka
1. Poprawka Kodu na Spawn
Siema to zn?w ja xd

mam problemik kt?ry dotyczy kodu Na Odradzanie/ Spawnienie si?.

Kod wygl?da tak:

ddEventHandler("onPlayerWasted", root, function(totalAmmo, killer, killerWeapon, bodypart, stealth)
  if 
isGuestAccount (getPlayerAccount(source)) then return end
bron 
= getPedWeapons(source)
skin = getElementModel(source)
team = getPlayerTeam(source)
team = getTeamName(team)

fadeCamera(source, false, 3)
if 
team ~= "Policja" then 
setTimer 
(spawnPlayer, 10000, 1, source, 1146.67, -1512.52, 15.80, math.random(0,360), skin)
setTimer (setCameraTarget, 10000, 1, source, source)
setTimer (fadeCamera, 10000, 1, source, true, 2)
setTimer(dajBron, 10000, 1, source, bron)

elseif 
team ~= "Mafia" then 
setTimer 
(spawnPlayer, 10000, 1, source, 2504.12, -1682.33, 13.55, math.random(0,360), skin)
setTimer (setCameraTarget, 10000, 1, source, source)
setTimer (fadeCamera, 10000, 1, source, true, 2)
setTimer(dajBron, 10000, 1, source, bron)

end
end
)


gdzie tu jest b?ad :/ Poniewa? gdy Jestem w Teamie Mafia to przenosi mnie na spawn Policji :C
a jak jestem w Teamie Policja no to do Policji (ale to ju? normalnie)

Chcia?bym by to by?o ?e jak Policja zginie to jest odradza si? na terenie/respawnie Policji

A jak jest w Mafi to jak zginie to odradza si? na terenie/respawnie Policji