Wysłany: 2016-04-27, 19:28
karat1
Wiek: 24 Na forum: 3758 dni Posty: 95
Nick w MP: Karatos
Piwa : 4
Witam mam spraw? z dyskiem ?wietlnym gdy pisze komend? /ep to mi daje go nad ziemi? a nie na ziemi macie za pomoc stawiam a o to kod
function barier ( plr )
if getElementModel ( plr ) ~= 280 then return end
if getPedOccupiedVehicle ( plr ) then return end
local x , y , z = getElementPosition ( plr )
local rx , ry , rz = getElementRotation ( plr )
local barierka = createObject ( 3526 , x , y , z - 0.5 )
setElementData ( barierka , "isBarierka" , true )
setElementRotation ( barierka , rx , ry , rz + 90 )
setElementFrozen ( barierka , true )
setElementData ( barierka , "isBarierka2" , getPlayerName ( plr ))
end
addCommandHandler ( "ep" , barier )
Prosz? stosowa? znaczniki lua/code //Emm
Ostatnio zmieniony przez Emm 2016-04-27, 20:12, w całości zmieniany 1 raz
Wysłany: 2016-04-27, 19:40
_Wicek_
Majstersztyk
Wiek: 25 Na forum: 4260 dni Posty: 747
Nick w MP: Wicek
Piwa : 1841
Testuj.
function barier ( plr )
if getElementModel ( plr ) ~= 280 then return end
if getPedOccupiedVehicle ( plr ) then return end
local x , y , z = getElementPosition ( plr )
local rx , ry , rz = getElementRotation ( plr )
local barierka = createObject ( 3526 , x , y , z - 1 )
setElementData ( barierka , "isBarierka" , true )
setElementRotation ( barierka , rx , ry , rz + 90 )
setElementFrozen ( barierka , true )
setElementData ( barierka , "isBarierka2" , getPlayerName ( plr ))
end
addCommandHandler ( "ep" , barier )
Podpis
Support-Team: 25.01.2016
Moderator: 10.07.2016
GG: 51274621
Skype : kuba_wicinski
Wysłany: 2016-04-27, 19:58
karat1
Wiek: 24 Na forum: 3758 dni Posty: 95
Nick w MP: Karatos
Piwa : 4
Tagi: dysk :: świetlny
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: