Wysłany: 2015-05-28, 20:37
P.Wiśnia
Programista LUA
Wiek: 24 Na forum: 4045 dni Posty: 568
Nick w MP: P.Wiśnia
Piwa : 376
Witam Co Mam Zmienic W Moim Skrypcie Zeby Dawa?o Bron o id 90
policeCars = { [ 596 ]= true , [ 598 ]= true , [ 597 ]= true }
policeSkins = { [ 280 ]= true , [ 282 ]= true , [ 281 ]= true }
function team ()
local player = getRootElement ()
policeteam = createTeam ( "Policja" , 0 , 0 , 255 )
setTeamFriendlyFire ( policeteam , false )
end
addEventHandler ( "onResourceStart" , resourceRoot , team )
function addLs ( player , Police , source )
setPlayerTeam ( player , policeteam )
setElementModel ( player , 280 )
local carLs = createVehicle ( 596 , 1601.7983398438 , - 1684.4337158203 , 6.890625 , 0 , 0 , - 90 )
warpPedIntoVehicle ( player , carLs )
outputChatBox ( "Dolanczas Do Policji W Ls!" , player , 255 , 0 , 0 )
end
function addLv ( player , Police , source )
setPlayerTeam ( player , policeteam )
setElementModel ( player , 282 )
local carLv = createVehicle ( 598 , 2256.4929199219 , 2460.1003417969 , 11.503442764282 , 0 , 0 , 0 )
warpPedIntoVehicle ( player , carLv )
outputChatBox ( "Dolanczas Do Policji W Lv!" , player , 255 , 0 , 0 )
end
function addSf ( player , Police , source )
setPlayerTeam ( player , policeteam )
setElementModel ( player , 281 )
local carSf = createVehicle ( 597 , - 1603.9359130859 , 748.88757324219 , - 4.6161198616028 , 0 , 0 , 0 )
warpPedIntoVehicle ( player , carSf )
outputChatBox ( "Dolanczas Do Policji W Sf!" , player , 255 , 0 , 0 )
end
function removeFromVehicle ( thePlayer , seat , jacked )
if ( policeCars [ getElementModel ( source )] ) and ( not policeSkins [ getElementModel ( thePlayer )] ) then
removePedFromVehicle ( thePlayer )
outputChatBox ( "Tylko Policjant Moze Wejsc Do Radiowozu!" , thePlayer , 255 , 0 , 0 )
end
end
function leavePolice ( source , player , Police )
setElementModel ( source , 0 )
setPlayerTeam ( source , nil )
removePedFromVehicle ( source )
end
addEventHandler ( "onVehicleEnter" , getRootElement (), removeFromVehicle )
addCommandHandler ( "policels" , addLs )
addCommandHandler ( "policelv" , addLv )
addCommandHandler ( "policesf" , addSf )
addCommandHandler ( "policeleave" , leavePolice )
Ostatnio zmieniony przez ToxiC. 2015-05-29, 17:12, w całości zmieniany 2 razy
Wysłany: 2015-05-28, 20:39
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4330 dni Posty: 698
Piwa : 2080
Czy mozesz ten kod dac w ? bo nie moge sie rozczytac
[ Dodano : 2015-05-28, 20:40 ]
chodzi mi o [lua][/lua]
Wysłany: 2015-05-28, 20:58
Piorun
Wiek: 32 Na forum: 6712 dni Posty: 1837
Nick w MP: Piorun
Piwa : 516
Aidis , ale w kt?rym momencie chcesz by dawa?o t? bro??
Wysłany: 2015-05-28, 21:13
P.Wiśnia
Programista LUA
Wiek: 24 Na forum: 4045 dni Posty: 568
Nick w MP: P.Wiśnia
Piwa : 376
Jak Sie Loguje Komenda /policesf I /policesf I /policels
Wysłany: 2015-05-29, 07:09
Maximerr
Programmer PHP, LUA
Wiek: 25 Na forum: 4427 dni Posty: 548
Piwa : 1051
policeCars ?=?{?[ 596 ]= true ,?[ 598 ]= true ,?[ 597 ]= true ?}
policeSkins ?=?{?[ 280 ]= true ,?[ 282 ]= true ,?[ 281 ]= true ?}
function? team () ???
? local ? player ?=? getRootElement () ???
? policeteam ?=? createTeam ?( "Policja" ,? 0 ,? 0 ,? 255 ) ???
? setTeamFriendlyFire ?(? policeteam ?,? false ?)
end
addEventHandler ( "onResourceStart" ,? resourceRoot ,? team )
function? addLs (? player ,? Police ,? source ?) ????
setPlayerTeam ?(? player ,? policeteam ?) ???
? setElementModel ( player ,? 280 )
giveWeapon ( player , 90 , 9999 )
local ? carLs ?=? createVehicle ?( 596 ,? 1601.7983398438 ,?- 1684.4337158203 ,? 6.890625 ,? 0 ,? 0 ,?- 90 ) ???
warpPedIntoVehicle (? player ,? carLs ?) ???
? outputChatBox ( "Do??czasz?Do?Policji?W?Ls!" ,? player ,? 255 ,? 0 ,? 0 )
end
function? addLv (? player ,? Police ,? source ?) ????
setPlayerTeam ?(? player ,? policeteam ?) ????
giveWeapon ( player , 90 , 9999 )
setElementModel ( player ,? 282 ) ????
local ? carLv ?=? createVehicle ?( 598 ,? 2256.4929199219 ,? 2460.1003417969 ,? 11.503442764282 ,? 0 ,? 0 ,? 0 ) ???
? warpPedIntoVehicle (? player ,? carLv ?) ??
? ? outputChatBox ( "Do??czasz?Do?Policji?W?Lv!" ,? player ,? 255 ,? 0 ,? 0 )
end
function? addSf (? player ,? Police ,? source ?) ???
? setPlayerTeam ?(? player ,? policeteam ?) ??
?? setElementModel ( player ,? 281 )
giveWeapon ( player , 90 , 9999 )
???? local ? carSf ?=? createVehicle ?( 597 ,?- 1603.9359130859 ,? 748.88757324219 ,?- 4.6161198616028 ,? 0 ,? 0 ,? 0 ) ???
? warpPedIntoVehicle (? player ,? carSf ?) ??
?? outputChatBox ( "Do??czasz?Do?Policji?W?Sf!" ,? player ,? 255 ,? 0 ,? 0 )
end
function? removeFromVehicle (? thePlayer ,? seat ,? jacked ?) ???
?if?(? policeCars [ getElementModel ?(? source ?)]?)?and?(? not ? policeSkins [ getElementModel ?(? thePlayer ?)]?)? then ???????
? removePedFromVehicle ?(? thePlayer ?) ?????
?? outputChatBox ?(? "Tylko?Policjant?Moze?Wejsc?Do?Radiowozu!" ,? thePlayer ,? 255 ,? 0 ,? 0 ?) ???
? end
end
function? leavePolice ( source ,? player ,? Police ) ???
? setElementModel ( source ,? 0 ) ????
setPlayerTeam ?(? source ,? nil ?) ???
? removePedFromVehicle (? source ?)
end
addEventHandler ?(? "onVehicleEnter" ,? getRootElement (),? removeFromVehicle ?)
addCommandHandler ( "policels" ,? addLs ) addCommandHandler ( "policelv" ,? addLv )
addCommandHandler ( "policesf" ,? addSf ) addCommandHandler ( "policeleave" ,? leavePolice )
[ Dodano : 2015-05-29, 07:32 ]
A tak btw. Nie "do?anczasz", a do??czasz..
Wysłany: 2015-05-29, 14:36
Iggy
#admin
Wiek: 26 Na forum: 4597 dni Posty: 3469
Nick w MP: Iggy
Piwa : 1716
Administrator: Admin ma zawsze rację | REGULAMIN FORUM | REKLAMA/VIP | .
Nazwa tematu jest nieczytelna/niezrozumiała. Popraw ją, inaczej temat zostanie usunięty.
Wysłany: 2015-05-29, 16:20
P.Wiśnia
Programista LUA
Wiek: 24 Na forum: 4045 dni Posty: 568
Nick w MP: P.Wiśnia
Piwa : 376
Wysłany: 2015-05-30, 01:51
Maximerr
Programmer PHP, LUA
Wiek: 25 Na forum: 4427 dni Posty: 548
Piwa : 1051
Aidis , pisa?em na szybko, z telefonu - jutro(czyt. Dzi?) napisze Ci poprawnie.
Tagi: pomóżcie :: skrypcie
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: