0 Üye ve 1 Ziyaretçi konuyu incelemekte.
function setMySkin(skinid) if isPedDead(source) then local x, y, z = getElementPosition(source) if isPedTerminated(source) then x = 0 y = 0 z = 3 end local r = getPedRotation(source) local interior = getElementInterior(source) spawnPlayer(source, x, y, z, r, skinid) setElementInterior(source, interior) setCameraInterior(source, interior) else setElementModel(source, skinid) setElementHealth(source, 100) end setCameraTarget(source, source) setCameraInterior(source, getElementInterior(source))endfunction spawnMe(x, y, z) if not x then x, y, z = getElementPosition(source) end if isPedTerminated(source) then repeat until spawnPlayer(source, x, y, z, 0, math.random(9, 288)) else spawnPlayer(source, x, y, z, 0, getPedSkin(source)) end if ( getOption('weapons.kniferestrictions') ) then addEventHandler ( "onPlayerStealthKill", client, knifeCancelEvent ) -Hatalı satır setTimer ( removeKnifeRestrictions, 5000, 1, client ) end setCameraTarget(source, source) setCameraInterior(source, getElementInterior(source))end
function arac_yok_etme()toggleVehicleRespawn(source, false)setTimer(destroyElement, 5000, 1, source) --Hatalı satırendaddEventHandler ("onVehicleExplode", getResourceRootElement(getThisResource()), arac_yok_etme)