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: poprawności
1. [DM] Prośba o sprawdzenie poprawności kodu
Witam. Napisa?em sobie skrypt na frakcje Policji. Prosi? bym o sprawdzenie poprawno?ci. Ewentualnie prosze o naniesienie poprawek.


[code]Policja = createTeam ( "Policja", 38, 12, 235)
Cywile = createTeam ( "Cywile", 0, 0, 0 )
markerSluzba = createMarker ( 256.79998779297, 64.6999969482422, 1002.5999755859, "cylinder", 1.5, 0, 0, 255 )
markerEndSluzba = createMarker ( 256.79998779297, 66.099998474121, 1002.5999755859, "cylinder", 1.5, 0, 0, 255 )
przebieranie = createMarker ( 255, 77.099998474121, 1002.5, "cylinder", 1.5, 230, 244, 10 )

function poliStartSluzba( thePlayer )
setElementInterior ( markerSluzba, 6 )
setElementInterior ( markerEndSluzba, 6 )
setElementInterior ( przebieranie, 6 )
setElementInterior ( blipSzafka, 6 )
local markerSluzba = createMarker ( 256.79998779297, 64.6999969482422, 1002.5999755859, "cylinder", 1.5, 0, 0, 255 )
local blipSzafka = createBlip( 255, 77.099998474121, 1002.5, 0, 0, 0, 0, 255 )
local loginGracza = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." ..loginGracza.. aclGetGroup ( "Policja") ) then
setPlayerTeam ( thePlayer, Policja)
outputChatBox("#00ff00Rozpocz??e? s?u?b?. Id? do szafki, aby przebra? si? w umundurowanie i zabra? ekwipunek.", thePlayer )
else

outputChatBox( "Nie jeste? zatrudniony w Policji!", thePlayer )
end
end
addEventHandler( "onMarkerHit&...