Wysłany: 2014-10-06, 15:43
xBolekk
Wiek: 24 Na forum: 4474 dni Posty: 113
Nick w MP: Bolek.
Piwa : 190
Cze??, mam kod na pobieranie broni tylko dla teamu, jednak mog? j? bra? wszyscy. O to kod.
test = createPickup ( 267.67556762695 , 107.71537017822 , 1004.6171875 , 2 , 22 , 1 )
setElementInterior ( test , 10 )
addEventHandler ( "onPickupHit" , test ,
function ( hitElement , matchingDimension )
if ( getElementType ( hitElement ) == "player" ) then
local team = getPlayerTeam ( hitElement )
if ( team == getTeamFromName ( "LVPD" ) ) then
giveWeapon ( hitElement , 22 , 9999 )
end
end
end
)
Pom??cie!
Wysłany: 2014-10-07, 08:39
Maximerr
Programmer PHP, LUA
Wiek: 25 Na forum: 4427 dni Posty: 548
Piwa : 1051
test = createPickup ( 267.67556762695 , 107.71537017822 , 1004.6171875 , 2 , 22 , 1 ) setElementInterior ( test , 10 )
addEventHandler ( "onPickupHit" , test , function ( hitElement )
if ( getElementType ( hitElement ) == "player" ) then
local konto = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. konto , aclGetGroup ( "LVPD" ) ) then
giveWeapon ( hitElement , 22 , 9999 ) end end end )
Masz tu na ACL.
Wysłany: 2014-10-07, 14:14
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
Maximerr , b?ad jest z lokalna konto thePlayer
Wysłany: 2014-10-07, 15:03
xBolekk
Wiek: 24 Na forum: 4474 dni Posty: 113
Nick w MP: Bolek.
Piwa : 190
Czyli jak to ma wygl?da??
Wysłany: 2014-10-07, 18:38
Oski
LUA Scripter
Wiek: 30 Na forum: 5246 dni Posty: 428
Nick w MP: Oski
Piwa : 56
Okej, okej ale kod kt?ry poda?e? w pierwszym po?cie blokuje pobieranie broni na wszystkich a daje mo?liwo?? tylko tym co s? w teamcie LVPD
Wysłany: 2014-10-07, 19:00
xBolekk
Wiek: 24 Na forum: 4474 dni Posty: 113
Nick w MP: Bolek.
Piwa : 190
Daje wszystkim.
[ Dodano : 2014-10-18, 10:49 ]
Nadal prosz? o pomoc.
Tagi: pickup :: dla :: teamu :: komplikacje.
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: