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

Wysłany: 2016-08-03, 16:35


STOPseba

Emeryt na scenie MTA






Wiek: 25
Na forum: 3771 dni
Posty: 448
Nick w MP: STOPseba

Piwa: 5014

Respekt: 576,3
Respekt: 576,3

Witam mo?e kto? mi pom?c z tym kodem ?eby bro? o id 23,22 Mo?na by?o u?ywa? ale nie strzela? a bro? o id 41 by?a odblokowana
function sprawdzBronie()
    local weapon getPedWeapon(localPlayer)
    if weapon == 22 then -- suszarka
        toggleControl("fire"false)
        toggleControl("action"false)
        toggleControl("aim_weapon"true)
        toggleControl("vehicle_fire"true)
    elseif weapon == 22 then -- suszarka
        toggleControl("fire"false)
        toggleControl("action"false)
        toggleControl("aim_weapon"true)
        setPlayerHudComponentVisible("ammo"true)    --43
    elseif weapon == 29 then -- mp5
        toggleControl("fire"true)
        toggleControl("action"true)
        toggleControl("aim_weapon"true)
    elseif weapon == 23 then -- Aparat
        toggleControl("fire"false)
        toggleControl("action"false)
        toggleControl("aim_weapon"true)
        toggleControl("vehicle_fire"true)
    elseif weapon == 3 then -- m4
        toggleControl("fire"true)
        toggleControl("action"true)
        toggleControl("aim_weapon"true)
        toggleControl("vehicle_fire"true)
    elseif weapon == 42 then -- ga?nica
        toggleControl("fire"true)
        toggleControl("action"true)
        toggleControl("aim_weapon"true)
    elseif weapon == 41 then -- spray
        toggleControl("fire"false)
        toggleControl("action"false)
        toggleControl("aim_weapon"false)
    if weapon == 38 then -- minigun
        toggleControl("fire"true)
        toggleControl("action"true)
        toggleControl("aim_weapon"true)
    else -- nic
        toggleControl("action"false)
        toggleControl("vehicle_fire"false)
        setPlayerHudComponentVisible("ammo"true)
    end
end
end
setTimer(sprawdzBronie1000)

Za pomoc :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-03, 16:37


marcin778

Krytyk serwerów MTA






Wiek: 24
Na forum: 4149 dni
Posty: 2268
Nick w MP: Marcineg

Piwa: 4662

Respekt: 1436,8
Respekt: 1436,8

function sprawdzBronie()
    local weapon getPedWeapon(localPlayer)
    if weapon == 22 then -- suszarka
        toggleControl("fire"false)
        toggleControl("action"true)
        toggleControl("aim_weapon"true)
        toggleControl("vehicle_fire"true)
   -- elseif weapon == 22 then -- suszarka
        --toggleControl("fire"false)
       -- toggleControl("action"false)
       -- toggleControl("aim_weapon"true)
        --setPlayerHudComponentVisible("ammo"true)    --43
    elseif weapon == 29 then -- mp5
        toggleControl("fire"true)
        toggleControl("action"true)
        toggleControl("aim_weapon"true)
    elseif weapon == 23 then -- Aparat
        toggleControl("fire"false)
        toggleControl("action"true)
        toggleControl("aim_weapon"true)
        toggleControl("vehicle_fire"true)
    elseif weapon == 3 then -- m4
        toggleControl("fire"true)
        toggleControl("action"true)
        toggleControl("aim_weapon"true)
        toggleControl("vehicle_fire"true)
    elseif weapon == 42 then -- ga?nica
        toggleControl("fire"true)
        toggleControl("action"true)
        toggleControl("aim_weapon"true)
    elseif weapon == 41 then -- spray
        toggleControl("fire"true)
        toggleControl("action"true)
        toggleControl("aim_weapon"true)
    if weapon == 38 then -- minigun
        toggleControl("fire"true)
        toggleControl("action"true)
        toggleControl("aim_weapon"true)
    else -- nic
        toggleControl("action"false)
        toggleControl("vehicle_fire"false)
        setPlayerHudComponentVisible("ammo"true)
    end
end
end
setTimer(sprawdzBronie1000)


Podpis
Moje prace: https://www.youtube.com/c...MuaWGHPp1mhlGnw

-- obecnie
-- obecnie
-- dawniej
-- dawniej
-- dawniej
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-03, 16:42


STOPseba

Emeryt na scenie MTA






Wiek: 25
Na forum: 3771 dni
Posty: 448
Nick w MP: STOPseba

Piwa: 5014

Respekt: 576,3
Respekt: 576,3

Dzia?a dzi?ki piwko leci.

Podpis



Kontakt
Discord: STOPseba#7603
STOPseba na fejsie
Messenger


Postaw piwo autorowi tego posta
 

 
Tagi: graczy
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Dm graczy 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