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: playerblips
1. Jak gracz wychodzi nie usuwa się playerblips
Siema mam taki problem ?e jak kto? wychodzi z serwera nie usuwa si? blips

[lua]function onResourceStart ( resource )
for id, player in ipairs( getElementsByType ( "player" ) ) do
if ( players[player] ) then
createBlipAttachedTo ( player, 0, 2, players[source][1], players[source][2], players[source][3] )
else
createBlipAttachedTo ( player, 0, 2, color[1], color[2], color[3] )
end
end
end

function onPlayerSpawn ( spawnpoint )
if ( players[source] ) then
createBlipAttachedTo ( source, 0, 2, players[source][1], players[source][2], players[source][3] )
else
createBlipAttachedTo ( source, 0, 2, color[1], color[2], color[3] )
end
end

function onPlayerQuit ()
destroyBlipsAttachedTo ( source )
end

function onPlayerWasted ( totalammo, killer, killerweapon )
destroyBlipsAttachedTo ( source )
end

function setBlipsColor ( source, commandName, r, g, b )
if ( tonumber ( b ) ) then
color = { tonumber ( r ), tonumber ( g ), tonumber ( b ) }
for id, player in ipairs( getElementsByType ( "player" ) ) do
destroyBlipsAttachedTo ( player )
if ( players[player] ) then
createBlipAttachedTo ( player, 0, 2, players[source][1], players[source][2], players[source][3] )
else
createBlipAttachedTo ( player, 0, 2, color[1], color[2], color[3] )
end
end
end
end

function setBlipColor ( source, commandName, r, g, b )
if ( tonumber ( b ) ) then
destroyBlipsAttachedTo ( source )
play...
2. playerblips
Witam, chodzi mi konkretnie o komende /setblipcolor . Widzialem na jakims filmiku Chyba u WonszU. Jak rozwala pseudola na GM PYS'a, bindami ktore zmienialy kolor blipy wszystkim gracza. Na tomiast ta komende zmienia chyba tylko Mi blipa. W poszukiwaniu komendy, ktorej uzywal Wonszu przeszukalem calego GM'a Pysa od A do Z i nic nie znalazlem konkretnego. Za pomoc stawiam zimne piwko i respekcik daje
3. Nowe PlayerBlips
Nowe PlayerBlips

Ot?z Napisa?em skrypt na tworzenie blipu ale nie umiem go zniszcyc przy logowaniu do teamu

oto kod BLIPA

root = getRootElement ()

function onPlayerJoin()
fadeCamera ( source, true )
spawnPlayer(source, -2030.6766357422, 172.64482116699, 28.485162734985, 0, 0)
setCameraTarget ( source, source )
Gracz = createBlipAttachedTo ( source, 0, 1, 255, 0, 0, 255, 0, 99999.0)
end
addEventHandler ( "onPlayerJoin", root, onPlayerJoin )

function quitPlayer ( quitType )
local quittingPlayerName = getPlayerName ( source )
outputChatBox ( "Gracz:"..quittingPlayerName .. "Wyszed? z Gry Pow?d:(" .. quitType .. ")" )
destroyBlipsAttachedTo ( source )
end
addEventHandler ( "onPlayerQuit", getRootElement(), quitPlayer )


A to Kod Logowania Frakcji

function poli1 ( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Policja" ) ) then
setPlayerTeam ( thePlayer, poli )
giveWeapon ( thePlayer, 12, 10000 )
setPedArmor ( thePlayer, 100 )
setElementModel ( thePlayer, 275 )
setElementPosition ( thePlayer, -1968.5272216797, 293.55743408203, 34.821102142334 )
setPlayerNametagColor ( thePlayer,0,0, 255 )
destroyElement ( Gracz )
else
outputChatBox( "Nie jestes pracownikiem Policji.",thePlayer,255,0,0)
end
end
addCommandHandler ( "loginpolicja", pol...