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: pickup.
1. Pickup.
Witam, mam taki oto kod na pobieranie broni, czyli jak wchodzisz w niego to dostajesz tylko bro? dla ACL.W tym b??d tylko ?e wszyscy mog? bra? to.Oto jest w?a?nie ten :

test = createPickup ( 258.69, 107.70, 1003.23, 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 ( "Policja" ) ) then
giveWeapon 
( hitElement, 22, 50 ) end end end )