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

Wysłany: 2015-05-22, 16:32


Tomakan

Człowiek






Wiek: 26
Na forum: 4061 dni
Posty: 94
Nick w MP: Tomakan

Piwa: 5

Respekt: 50

Mam taki kod:
    local theWeapon1 getPedWeapon (source1)
    local theWeapon2 getPedWeapon (source2)
    local theWeapon3 getPedWeapon (source3)
    local theWeapon4 getPedWeapon (source4)
    local theWeapon5 getPedWeapon (source5)
    local theWeapon6 getPedWeapon (source6)
    local theWeapon7 getPedWeapon (source7)
    local theWeapon8 getPedWeapon (source8)
    local theWeapon9 getPedWeapon (source9)
    local theWeapon10 getPedWeapon (source10)
    local theWeapon11 getPedWeapon (source11)
    local theWeapon12 getPedWeapon (source12)
    
    local weaponAmmo1 getPedTotalAmmo (source1)
    local weaponAmmo1 getPedTotalAmmo (source2)
    local weaponAmmo1 getPedTotalAmmo (source3)
    local weaponAmmo1 getPedTotalAmmo (source4)
    local weaponAmmo1 getPedTotalAmmo (source5)
    local weaponAmmo1 getPedTotalAmmo (source6)
    local weaponAmmo1 getPedTotalAmmo (source7)
    local weaponAmmo1 getPedTotalAmmo (source8)
    local weaponAmmo1 getPedTotalAmmo (source9)
    local weaponAmmo1 getPedTotalAmmo (source10)
    local weaponAmmo1 getPedTotalAmmo (source11)
    local weaponAmmo1 getPedTotalAmmo (source12)
    
    setTimer (giveWeapon40001sourcetheWeapon1tonumber(weaponAmmo1), true)
    setTimer (giveWeapon40001sourcetheWeapon2tonumber(weaponAmmo2), true)
    setTimer (giveWeapon40001sourcetheWeapon3tonumber(weaponAmmo3), true)
    setTimer (giveWeapon40001sourcetheWeapon4tonumber(weaponAmmo4), true)
    setTimer (giveWeapon40001sourcetheWeapon5tonumber(weaponAmmo5), true)
    setTimer (giveWeapon40001sourcetheWeapon6tonumber(weaponAmmo6), true)
    setTimer (giveWeapon40001sourcetheWeapon7tonumber(weaponAmmo7), true)
    setTimer (giveWeapon40001sourcetheWeapon8tonumber(weaponAmmo8), true)
    setTimer (giveWeapon40001sourcetheWeapon9tonumber(weaponAmmo9), true)
    setTimer (giveWeapon40001sourcetheWeapon10tonumber(weaponAmmo10), true)
    setTimer (giveWeapon40001sourcetheWeapon11tonumber(weaponAmmo11), true)
    setTimer (giveWeapon40001sourcetheWeapon12tonumber(weaponAmmo12), true)


Jest on umieszczony w onPlayerWasted, wszystko dzia?a. Jedynym minusem jest to, ?e niby pobiera t? amunicj?, jednak nie daje tyle ile powinno, np mam 163, a przywraca po ?mierci 0.30 do ka?acha :shock: Pomys?y?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-22, 17:06


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Spr?buj zrobi? to tabelowo i zap?tli?. Mo?e b?dzie optymalniej i wtedy poznamy b??d.

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-22, 18:13


Tomakan

Człowiek






Wiek: 26
Na forum: 4061 dni
Posty: 94
Nick w MP: Tomakan

Piwa: 5

Respekt: 50

M?g?by? dopom?c i powiedzie? jak wstawi? to w tabel??

[ Dodano: 2015-05-22, 18:16 ]
Naprawi?em, zrobi?em dodatkow? funkcje giveWeaponAmmo czy jak tam

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-22, 19:06


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

[clo]

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Tagi: giveplayerweapon :: nie :: daje :: całej :: amunicji.
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » GivePlayerWeapon, nie daje całej amunicji. 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