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: skinu.
1. Przypisanie , Broni, Pojazdu i Skinu.
Witam

Chcia?bym zrobi? co? na styl Przypisanie Pojazdu, Broni i Skinu Tylko dla danej Grupy naprzyk?ad Policji, czy naprzyk?ad Tylko Skiny dla Gang?w.

Posiadam Co? Takiego i do tego chcia?ym doda? Przypisanie Pojazdu, Broni i Skinu tylko dla Policji :

local police = createTeam ( "Policja", 0, 0, 255 )
local marker = createMarker ( -1616.04, 678.62, 7.18, "cylinder", 1.5, 0, 0, 0, 10 )
local blip = createBlip (-1616.346, 685.831, 7.185, 30)

function 
login ( hitElement, matchingDimension )
local accName = getAccountName ( getPlayerAccount ( hitElement ) ) 
  if 
isObjectInACLGroup ("user."..accName, aclGetGroup ( "Policja" ) ) then 
  setPlayerTeam 
( hitElement, police )
  
giveWeapon ( hitElement, 12, 10000 )
  
giveWeapon (hitElement, 22, 100)
  
giveWeapon (hitElement, 25, 50)
  
setPedArmor ( hitElement, 100 )
  
setElementModel ( hitElement, 281 )
  else
outputChatBox ( "Nie jestes w policji", hitElement, 255, 0, 0 )

end
end
addEventHandler 
( "onMarkerHit", marker, login )

function 
leavePoli(source, player, Policja)
    
setElementModel(source, 0)
    
setPlayerTeam (source, nil)
end                                                                                                    ---- Wychodzenie
addEventHandler 
("onMarkerHit", marker, add)
addCommandHandler("off", leavePoli)