Wysłany: 2017-04-08, 22:32
Atroth
Wiek: 23 Na forum: 3677 dni Posty: 1089
Nick w MP: Atroth
Piwa : 4808
Witam.
Jakiej funkcji u?y?, aby nosze porusza?y si? z graczem, ale nie obraca?y si?. Chodzi mi, ?e jak si? ma co? w r?ce aby to nie macha?o si?. Co? podobnego jak torba R1.
Podpis
Użytkownik - 10-05-2016
Support Team - 17.06.2017
Moderator - 25.11.2017
Mod-Team - 02.07.2018
Więcej szczegółów
Wystawiono 1 piw(a):ŚwiniaDupa
Wysłany: 2017-04-08, 22:45
amited
Wiek: 26 Na forum: 3714 dni Posty: 1233
Nick w MP: Amited
Piwa : 512
Podpis
"amited" napisał/a :
Więcej szczegółów
Wystawiono 1 piw(a):LodomirYT
Wysłany: 2017-04-09, 09:52
Atroth
Wiek: 23 Na forum: 3677 dni Posty: 1089
Nick w MP: Atroth
Piwa : 4808
Ok chodz? z tymi noszami. Teraz jak zrobi?, aby je normalnie postawi??
Podpis
Użytkownik - 10-05-2016
Support Team - 17.06.2017
Moderator - 25.11.2017
Mod-Team - 02.07.2018
Wysłany: 2017-04-09, 22:32
Yokosik
Wiek: 25 Na forum: 3629 dni Posty: 58
Nick w MP: Yokosik
Piwa : 1048
Je?eli chcesz odczepi? to u?yj:
Wysłany: 2017-04-09, 22:43
Atroth
Wiek: 23 Na forum: 3677 dni Posty: 1089
Nick w MP: Atroth
Piwa : 4808
Yokosik , Nie dzia?a, brak db3
function consoleCreateObject ( thePlayer , commandName )
if ( thePlayer ) then
local x , y , z = getElementPosition ( thePlayer )
local theObject = createObject ( 1210 , x + 0.2 , y , z , 0 , 0 , 0 )
attachElements ( theObject , thePlayer , 0.8 , 0 , - 0.35 , 0 , 0 , 90 )-- check if the Obeject was created successfully
setElementCollisionsEnabled ( theObject , false )
outputChatBox ( "Bierzesz nosze." , thePlayer )
setElementData ( thePlayer , "theObject" , true )
end
end
addCommandHandler ( "nosze" , consoleCreateObject )
function postawnosze ( theObject , thePlayer )
if ( isElementAttached ( theObject ) ) then
detachElements ( theObject )
else
outputChatBox ( "Nie masz noszy!" , source )
end
end
addCommandHandler ( "pnosze" , postawnosze )
Podpis
Użytkownik - 10-05-2016
Support Team - 17.06.2017
Moderator - 25.11.2017
Mod-Team - 02.07.2018
Wysłany: 2017-04-09, 22:48
ZZiomek
..::LUA::..
Wiek: 26 Na forum: 3867 dni Posty: 134
Nick w MP: NexBoy
Piwa : 5961
function consoleCreateObject ( thePlayer , commandName )
if ( thePlayer ) then
local x , y , z = getElementPosition ( thePlayer )
theObject = createObject ( 1210 , x + 0.2 , y , z , 0 , 0 , 0 )
attachElements ( theObject , thePlayer , 0.8 , 0 , - 0.35 , 0 , 0 , 90 )-- check if the Obeject was created successfully
setElementCollisionsEnabled ( theObject , false )
outputChatBox ( "Bierzesz nosze." , thePlayer )
setElementData ( thePlayer , "theObject" , true )
end
end
addCommandHandler ( "nosze" , consoleCreateObject )
function postawnosze ( theObject , thePlayer )
if ( isElementAttached ( theObject ) ) then
detachElements ( theObject )
else
outputChatBox ( "Nie masz noszy!" , source )
end
end
addCommandHandler ( "pnosze" , postawnosze )
Podpis
Dodaj na Steam: Kod: 1093365219
Discord: NoOne#3644
Wysłany: 2017-04-09, 22:50
Atroth
Wiek: 23 Na forum: 3677 dni Posty: 1089
Nick w MP: Atroth
Piwa : 4808
ZZiomek , Nadal nie :_:
Podpis
Użytkownik - 10-05-2016
Support Team - 17.06.2017
Moderator - 25.11.2017
Mod-Team - 02.07.2018
Wysłany: 2017-04-10, 17:07
marcin778
Krytyk serwerów MTA
Wiek: 24 Na forum: 4149 dni Posty: 2268
Nick w MP: Marcineg
Piwa : 4662
Bo?e widzisz i nie grzmisz.. Poza tym nie wiem czy wiesz, ale taki kod b?dzie powodowa?, ?e gdy kto? wpisz /nosze to tobie si? usun?.
function consoleCreateObject ( thePlayer , commandName )
local x , y , z = getElementPosition ( thePlayer )
theObject = createObject ( 1210 , x + 0.2 , y , z , 0 , 0 , 0 )
attachElements ( theObject , thePlayer , 0.8 , 0 , - 0.35 , 0 , 0 , 90 )-- check if the Obeject was created successfully
setElementCollisionsEnabled ( theObject , false )
outputChatBox ( "Bierzesz nosze." , thePlayer )
setElementData ( thePlayer , "n" , true )
end
addCommandHandler ( "nosze" , consoleCreateObject )
function postawnosze ( thePlayer , cmd )
if getElementData ( plr , "n" ) then
detachElement ( theObject )
else
outputChatBox ( "Nie masz noszy!" , thePlayer ) -- source , kto to ?
end
end
addCommandHandler ( "pnosze" , postawnosze )
Wysłany: 2017-04-10, 17:38
Atroth
Wiek: 23 Na forum: 3677 dni Posty: 1089
Nick w MP: Atroth
Piwa : 4808
marcin778 , Bad argument 1 got nil z "getelementdata"
Podpis
Użytkownik - 10-05-2016
Support Team - 17.06.2017
Moderator - 25.11.2017
Mod-Team - 02.07.2018
Wysłany: 2017-04-10, 19:56
marcin778
Krytyk serwerów MTA
Wiek: 24 Na forum: 4149 dni Posty: 2268
Nick w MP: Marcineg
Piwa : 4662
Rookspack , Ci??ko by?o samemu pomy?le? i poprawi? - nie?
function postawnosze ( thePlayer , cmd )
if getElementData ( thePlayer , "n" ) then
detachElement ( theObject )
else
outputChatBox ( "Nie masz noszy!" , thePlayer ) -- source , kto to ?
end
end
addCommandHandler ( "pnosze" , postawnosze )
Wysłany: 2017-04-10, 20:46
Atroth
Wiek: 23 Na forum: 3677 dni Posty: 1089
Nick w MP: Atroth
Piwa : 4808
marcin778 , "deathElement(theObject)" - a nil value, dodalem, po przecinku "thePlayer' nie pomoglo :C.
[ Dodano : 2017-04-10, 20:54 ]
Poprawione, lock.
Podpis
Użytkownik - 10-05-2016
Support Team - 17.06.2017
Moderator - 25.11.2017
Mod-Team - 02.07.2018
Tagi: nosze
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: