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: (policjanta)
1. Blip Gracza (Policjanta) Nie Widoczny Dla Innych
Witajcie jak zrobi? aby gracze nie widzieli policjant?w na mapie i radarze.

Mam skrypt na frakcje i nadawanie blip?w :

[lua]

cywile11 = createTeam ( "Cywile", 255, 255, 255 )
addEventHandler("onPlayerLogin", root,
function()
setPlayerTeam ( source, cywile11 )
setElementModel ( thePlayer, 0 )
blipcywil = createBlipAttachedTo ( source, 0, 2, 255, 255, 255, 222, 0, 99999999, getRootElement() )
end
)

-- Administracja
local admin = createTeam ( "Administracja", 255, 0, 0 )

function admin1 ( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Admin" ) ) then
setPlayerTeam ( thePlayer, admin )
setPlayerNametagColor ( thePlayer, 255, 0, 0 )
blipadm = createBlipAttachedTo ( thePlayer, 0, 2, 255, 0, 0, 222, 0, 99999999, getRootElement() )
else

outputChatBox( "Nie jestes Administratorem.", thePlayer)
end
end
addCommandHandler ( "loginadmin", admin1 )

-- Policja
local poli = createTeam( "Policja", 0, 0, 255 )

function poli1( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Policja" ) ) then
setPlayerTeam ( thePlayer, poli )
giveWeapon ( thePlayer, 31, 10000 )
giveWeapon ( thePlayer, 23, 10000 )
giveWeapon ( thePlayer, 29, 1000...