Wysłany: 2020-11-12, 16:28
Kezoto [Usunięty ]
Server side script:
[lua]local cub = createColCuboid(2230.46, 2294.08, 9.82, 50.67, 62.59, 78.89)
createBlip(2260.92, 2328.16, 10.82, 63, 25, 0, 0, 0, 0, 0, 175)
addEventHandler("onColShapeHit", cub, function(smiec, dawaj)
if getElementType(smiec) == 'player' then
giveWeapon ( smiec, 46, 9999999 )
end
end)
addEventHandler("onColShapeLeave", cub, function(smiec, zabieraj)
if getElementType(smiec) == 'player' then
takeWeapon(smiec, 46)
end
end)[/lua]
DB3 nie ma bledow , cuboid sie pojawia lecz nie daje broni
Wysłany: 2020-11-12, 17:33
VVirmex
Sgrypter luja
Wiek: 21 Na forum: 3365 dni Posty: 281
Nick w MP: AxyZ
Piwa : 234
Mo?e cuboid za ma?y? Z tego co wiem to ca?y model musi si? znajdowa? w ?rodku cuboida lub ?eby cuboid by? odrobink? wi?kszy.
Spr?buj zwi?kszy? Cuboid i daj rezultat.
Wysłany: 2020-11-12, 18:58
Qwertick
Coming soon...
Wiek: 23 Na forum: 3577 dni Posty: 472
Nick w MP: Qwertick
Piwa : 2726
Mi to dzia?a normalnie local cub = createColCuboid ( 2230.46 , 2294.08 , 8.82 , 50.67 , 62.59 , 78.89 )
createBlip ( 2260.92 , 2328.16 , 10.82 , 63 , 25 , 0 , 0 , 0 , 0 , 0 , 175 )
addEventHandler ( "onColShapeHit" , cub , function( element )
if getElementType ( element ) ~= "player" then return end
giveWeapon ( element , 46 , 9999999 )
end )
addEventHandler ( "onColShapeLeave" , cub , function( element )
if getElementType ( element ) ~= "player" then return end
takeWeapon ( element , 46 )
end )
Wysłany: 2020-11-12, 19:08
Kezoto [Usunięty ]
dobra nie wazne 5 razy upieralem sie ze mam mete na server a teraz patrze i jest client xD
do zamkniecia dziekuje
Tagi: nie :: daje :: broni
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: