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: sapd.
1. Megafon w SAPD.
Witam, megafon dzia?a ale.

Jak wpisz? /meg sta? tutaj..........

to pojawia si? tylko [POLICJA] sta?!!

a nie ca?e zdanie.

a jak wpisez stac-tutaj

to juz wszystko okej

jakies porady?

kod to


function megafon(plr, cmd, msg)
    if 
not msg then return end
    
if getElementData(plr,'player:duty') == 'SAPD' then
        local posX
, posY, posZ=getElementPosition(plr)
        
local sphere=createColSphere( posX, posY, posZ, 55)
        
local nearbyPlayers=getElementsWithinColShape(sphere, 'player')
        
destroyElement(sphere)
        for 
index, player in ipairs( nearbyPlayers ) do
            
outputChatBox('[POLICJA] Megafon: '..msg..'!', player, 255, 255, 0)
        
end
    end
end
addCommandHandler
('meg', megafon)