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 )