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", 999, 333, 0 ) 
pickupeq = createPickup ( -278.10000610352, 1449.3000488281, 1084.4000244141 , 3,1277, 1 )
setElementInterior ( pickupeq, 4 )
setElementData(pickupeq,"message","Logowanie do Warsztatu Fort Carson")
function 
ls1 ( thePlayer ) 
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
if 
isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Cywile" ) ) then 
setPlayerTeam 
( thePlayer, fc ) 
setElementModel ( thePlayer, 50 )
outputChatBox( "Szef: Zacz??e? prace, a teraz do roboty!",thePlayer, 225,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", pickupeq, ls1 )