Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2014-10-06, 15:43


xBolekk







Wiek: 24
Na forum: 4474 dni
Posty: 113
Nick w MP: Bolek.

Piwa: 190

Respekt: 60

Cze??, mam kod na pobieranie broni tylko dla teamu, jednak mog? j? bra? wszyscy. O to kod.

test createPickup 267.67556762695107.715370178221004.61718752221)
setElementInterior (test10)

addEventHandler "onPickupHit"test,
    function ( hitElementmatchingDimension )
        if ( getElementType hitElement ) == "player" then
            local team getPlayerTeam hitElement )
            if ( team == getTeamFromName "LVPD" ) ) then
                giveWeapon hitElement229999 ) 
            end
        end
    end


Pom??cie!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-07, 08:39


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4427 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3

test createPickup 267.67556762695107.715370178221004.61718752221setElementInterior (test10addEventHandler "onPickupHit"test, function ( hitElement ) 
if ( getElementType hitElement ) == "player" then
local konto getAccountName getPlayerAccount thePlayer ) )
if isObjectInACLGroup ("user."..kontoaclGetGroup "LVPD" ) ) then
giveWeapon hitElement229999 end end end 

Masz tu na ACL.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-07, 14:14


luki123luki123

Place Game






Wiek: 28
Na forum: 5275 dni
Posty: 1948
Nick w MP: LuKiO

Piwa: 6101

Respekt: 611
Respekt: 611Respekt: 611

Maximerr, b?ad jest z lokalna konto :D thePlayer

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-07, 15:03


xBolekk







Wiek: 24
Na forum: 4474 dni
Posty: 113
Nick w MP: Bolek.

Piwa: 190

Respekt: 60

Czyli jak to ma wygl?da??

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-07, 18:38


Oski

LUA Scripter






Wiek: 30
Na forum: 5246 dni
Posty: 428
Nick w MP: Oski

Piwa: 56

Respekt: 75,1

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

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-07, 19:00


xBolekk







Wiek: 24
Na forum: 4474 dni
Posty: 113
Nick w MP: Bolek.

Piwa: 190

Respekt: 60

Daje wszystkim.

[ Dodano: 2014-10-18, 10:49 ]
Nadal prosz? o pomoc.

Postaw piwo autorowi tego posta
 

 
Tagi: pickup :: dla :: teamu :: komplikacje.
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Pickup dla teamu, komplikacje. Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku