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"00255 )
local marker createMarker ( -1616.04678.627.18"cylinder"1.500010 )
local blip createBlip (-1616.346685.8317.18530)

function 
login hitElementmatchingDimension )
local accName getAccountName getPlayerAccount hitElement ) ) 
  if 
isObjectInACLGroup ("user."..accNameaclGetGroup "Policja" ) ) then 
  setPlayerTeam 
hitElementpolice )
  
giveWeapon hitElement1210000 )
  
giveWeapon (hitElement22100)
  
giveWeapon (hitElement2550)
  
setPedArmor hitElement100 )
  
setElementModel hitElement281 )
  else
outputChatBox "Nie jestes w policji"hitElement2550)

end
end
addEventHandler 
"onMarkerHit"markerlogin )

function 
leavePoli(sourceplayerPolicja)
    
setElementModel(source0)
    
setPlayerTeam (sourcenil)
end                                                                                                    ---- Wychodzenie
addEventHandler 
("onMarkerHit"markeradd)
addCommandHandler("off"leavePoli)