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

Wysłany: 2018-02-16, 11:38


VVirmex

Sgrypter luja






Wiek: 21
Na forum: 3365 dni
Posty: 281
Nick w MP: AxyZ

Piwa: 234

Respekt: 110
Respekt: 110

Jak mog? naprawi? DM
Paczka: Play Your Stories 3.0

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-02-16, 12:08


Avenged

Młodszy Szkrypter






Wiek: 23
Na forum: 3510 dni
Posty: 654
Nick w MP: Avenged

Piwa: 1570

Respekt: 326,3
Respekt: 326,3Respekt: 326,3Respekt: 326,3

Co to znaczy naprawi? DM? Nie korzystam z takich paczek wi?c podaj kod

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-02-16, 12:34


VVirmex

Sgrypter luja






Wiek: 21
Na forum: 3365 dni
Posty: 281
Nick w MP: AxyZ

Piwa: 234

Respekt: 110
Respekt: 110

"BarteQ03" napisał/a:

Co to znaczy naprawi? DM? Nie korzystam z takich paczek wi?c podaj kod

Znaczy nie PYS tylko Your Adventure, bo poprostu nie wiem jaki skrypt mi DM blokuje

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-02-16, 12:38


Avenged

Młodszy Szkrypter






Wiek: 23
Na forum: 3510 dni
Posty: 654
Nick w MP: Avenged

Piwa: 1570

Respekt: 326,3
Respekt: 326,3Respekt: 326,3Respekt: 326,3

VVirmex, daj kod, a pomo?emy... nie znam ca?ego ogrpg na pami?? XD Nie u?ywam tego

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-02-16, 13:15


VVirmex

Sgrypter luja






Wiek: 21
Na forum: 3365 dni
Posty: 281
Nick w MP: AxyZ

Piwa: 234

Respekt: 110
Respekt: 110

"BarteQ03" napisał/a:

VVirmex, daj kod, a pomo?emy... nie znam ca?ego ogrpg na pami?? XD Nie u?ywam tego

Ale w?a?nie w tym jest problem, nie wiem gdzie si? kryje ten problem z DM

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-02-16, 13:18


DaVeCS

Mapper






Wiek: 31
Na forum: 3386 dni
Posty: 193
Nick w MP: DaVe

Piwa: 59

Respekt: 70,5

VVirmex, poszukaj w skrypcie na paralizator b?d? w core, ja w tych 2 rzeczach mia?em funkcje odpowiadaj?ce za blokad? DM

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-02-16, 13:20


VVirmex

Sgrypter luja






Wiek: 21
Na forum: 3365 dni
Posty: 281
Nick w MP: AxyZ

Piwa: 234

Respekt: 110
Respekt: 110

"DaVeCS" napisał/a:

VVirmex, poszukaj w skrypcie na paralizator b?d? w core, ja w tych 2 rzeczach mia?em funkcje odpowiadaj?ce za blokad? DM

Ani w tym ani w tym nie ma problemu

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-02-16, 15:54


nanKy







Wiek: 22
Na forum: 3865 dni
Posty: 498
Nick w MP: nanky

Piwa: 1773

Respekt: 239
Respekt: 239Respekt: 239

za to jest odpowiedzialna funkcja

Więcej informacji znajdziesz w Wikipedii MTA:

toggleControl

poszukaj jej w skryptach.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-02-16, 16:36


Ciastuuś

Truck soon...






Wiek: 26
Na forum: 3071 dni
Posty: 799
Nick w MP: Ciastuuś

Piwa: 4297

Respekt: 640
Respekt: 640Respekt: 640

Oto kod,

function blokada prevSlotnewSlot )
if not getElementData(localPlayer"player:admin") == true then
    if getPedWeapon(getLocalPlayer()) == 0 then
        toggleControl "fire"false )
        toggleControl("aim_weapon"false)
    elseif getPedWeapon(getLocalPlayer()) == 7 then
        toggleControl ("fire"false )
        toggleControl("aim_weapon"false)
    elseif getPedWeapon(getLocalPlayer()) == 41 then
        toggleControl ("fire"true )
        toggleControl("aim_weapon"true)
    elseif getPedWeapon(getLocalPlayer()) == 32 then
        toggleControl ("fire"false )
        toggleControl("aim_weapon"true)
    elseif getPedWeapon(getLocalPlayer()) == 46 then
        toggleControl ("fire"false )
        toggleControl("aim_weapon"false)
    elseif getPedWeapon(getLocalPlayer()) == 22 and getElementData(getLocalPlayer(),"player:admin") == true then
        toggleControl ("fire"false )
        toggleControl("aim_weapon"true)
    elseif getPedWeapon(getLocalPlayer()) == 22 and getElementData(getLocalPlayer(),"player:admin") == false then
        toggleControl("fire"false)
        toggleControl("aim_weapon"true)
    else
        toggleControl ("fire"true )
        toggleControl("aim_weapon"true)
    end
    if getElementData(localPlayer"player:admin") == true then toggleControl "fire"true ); toggleControl("aim_weapon"trueend
end
end
addEventHandler "onClientRender"getRootElement(), blokada )


Oto, przekierowanie gdzie znajduje si? kod:
Kod:

[skrypty_glowne]\ogrpg-core\dmg_c.lua


Podpis
Truck soon...
Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
VVirmex
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 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