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: wezwania.
1. Wezwania.
Witam ot?z zrobi?em co? takiego:

function pogotowie(thePlayer)

local gracz = getPlayerName(thePlayer)

outputChatBox (gracz.."  Wzywa Pogotowie Ratunkowe ! ", getRootElement(),120, 235, 63)
     
setTimer(function()

local x, y, z = getElementPosition( thePlayer )
local thePlayer = createBlip( x, y, z, 22, 0, 0, 0, 255 )

end,2000,0)
end
addCommandHandler
("999", pogotowie)


Co zrobi?, by ten marker si? usuwa? a nie powstawa? kolejny ?

[ Dodano: 2017-01-11, 17:12 ]
Dobra dzia?a, mam co? takiego, ale co zrobi?, ?eby tylko Pogotowie widza?o, ?e kto? ich wzywa



local gracz 
= getPlayerName(thePlayer)

outputChatBox (gracz.." Was wzywa! ", getRootElement(),120, 235, 63)


local x, y, z = getElementPosition( thePlayer )
local thePlayer = createBlip( x, y, z, 22, 0, 0, 0, 255 )

     
setTimer(function()
    
destroyElement(thePlayer) 
end,2000,1)
end
addCommandHandler
("999", pogotowie)