0 Üye ve 1 Ziyaretçi konuyu incelemekte.
spawnLocations = { {-1980.51184, 883.51471, 45.20313}, {2. spawn koordinatları},}function onWasted(totalAmmo, killer, killerWeapon, bodypart, stealth) if not( isGuestAccount (getPlayerAccount(source)) ) then local theWeapon = getPedWeapon (source) local weaponAmmo = getPedTotalAmmo (source) local x, y, z = unpack(spawnLocations[math.random(1, #spawnLocations)]) fadeCamera (source, false) setTimer (spawnPlayer, 2000, 1, source, x, y, z, 270, getPedSkin (source), 0, 0, getPlayerTeam(source)) setTimer (setCameraTarget, 1250, 1, source, source) setTimer (fadeCamera, 2000, 1, source, true) setTimer (giveWeapon, 2000, 1, source, theWeapon, weaponAmmo, true) endendaddEventHandler ("onPlayerWasted", getRootElement(), onWasted)
Bu işini görür. Yazdığın konumlar arasından rastgele seçip spawnlıyor.KodspawnLocations = { {-1980.51184, 883.51471, 45.20313}, {2. spawn koordinatları},}function onWasted(totalAmmo, killer, killerWeapon, bodypart, stealth) if not( isGuestAccount (getPlayerAccount(source)) ) then local theWeapon = getPedWeapon (source) local weaponAmmo = getPedTotalAmmo (source) local x, y, z = unpack(spawnLocations[math.random(1, #spawnLocations)]) fadeCamera (source, false) setTimer (spawnPlayer, 2000, 1, source, x, y, z, 270, getPedSkin (source), 0, 0, getPlayerTeam(source)) setTimer (setCameraTarget, 1250, 1, source, source) setTimer (fadeCamera, 2000, 1, source, true) setTimer (giveWeapon, 2000, 1, source, theWeapon, weaponAmmo, true) endendaddEventHandler ("onPlayerWasted", getRootElement(), onWasted)