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: skrypcie.
1. Kłopoty w skrypcie.
Ostatnio zrobi?em sobie skrypt i pojawi? si? b??d w kt?rym nie wiem o co chodzi. W skrypcie chodzi o to aby po wpisaniu komendy /ut pojawia sie blip i to dziala, lecz gdy wpisuje ponownie /ut to wyswietla sie napis, lecz blip sie nie usuwa.

function ut(plrcmd)
if 
getElementData(plr,'player:duty') == 'SAPD' then
if not getElementData(plr"player:ut"then
outputChatBox
("Dodano X"plr255255255true)
--
local poz getElementPosition(source)
local xygetElementPosition (plr)
local blip createBlip(xyz47200000275source)
setElementData(plr"player:ut"true)
elseif 
getElementData(plr"player:ut"then
setElementData
(plr"player:ut"false)
for 
blip in ipairs(getElementData(plr"player:ut")) do
destroyElement(blip)
--
destroyElement(source)
outputChatBox("Usunieto X"plr255255255true)
            
end
        end
    end
end
addCommandHandler
("ut"ut)