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: ogranicznie
1. Ogranicznie Pracy
Witam m?j problem polega na tym jak zrobi? ograniczenie do logowanie teamu np. Chcia?bym ?eby tylko mog?o 5 osob si? zalogowa? na serwie a jak si? zaloguje to np jedna wyjdzie z serwa to ?eby mog?a zalogowa? si? za nia.
Jakich funkcji u?y? itp

Kod:

fc createTeam "Warsztat Los Santos"999333
pickupeq createPickup ( -278.100006103521449.30004882811084.4000244141 3,1277)
setElementInterior pickupeq)
setElementData(pickupeq,"message","Logowanie do Warsztatu Fort Carson")
function 
ls1 thePlayer 
local playerName getAccountName getPlayerAccount thePlayer ) ) 
if 
isObjectInACLGroup "user." .. playerNameaclGetGroup "Cywile" ) ) then 
setPlayerTeam 
thePlayerfc 
setElementModel thePlayer50 )
outputChatBox"Szef: Zacz??e? prace, a teraz do roboty!",thePlayer225,0,0)  
else 

outputChatBox"Nie jeste? pracownikiem warsztatu, a wi?c nie mo?esz si? zalogowa? do frakcji!"getRootElement(),225,0,0
end 
end 
addEventHandler 
"onPickupHit"pickupeqls1 )