Wysłany: 2013-06-15, 20:34
TheSznajper
Wiek: 27 Na forum: 4737 dni Posty: 1
Nick w MP: Snajper
Kod:
function scriptCreateInfernus ( player, command )
local luckyBugger = getRandomPlayer()
local x, y, z = getElementPosition ( luckyBugger )
createVehicle ( 411, x + 3, y, z )
outputChatBox ( "Masz infernusa", luckyBugger )
end
addCommandHandler ( "infernus", scriptCreateInfernus )
function repireVehicle(gracz, theVeicle)
if isPedinVehicle(gracz)then
local theVehicle = getPedoccupiedVehicle(gracz)
if theVehicle then
outputChatBox("Pojazd naprawiony!", gracz 220,220,0)
fixVehicle(theVehicle)
playSoundFrontEnd(gracz, 46)
end
else
outputChatBox("Musisz by? w poje?dzie!", gracz 220,220,0)
end
end
end
addCommandHandler("napraw",reairVehicle)
function bind()
for k,v in ipairs(getElementsByType("player")) do
unbindKay ( v, "2")
bindKey(v, "2" , "down", repairVehicle)
end
end
addEventHandler("onResourceStart", root, bind)
A kod b??du to: Kod: SCRIPT ERROR: Spawneraut\script.lua:13: ')' expected near '220'
WARNING: Loading script failed: Spawneraut\script.lua:13: ')' expected near '220'
Wysłany: 2013-06-15, 20:49
vipSEBOvip
A poor begginer
Wiek: 26 Na forum: 5178 dni Posty: 597
Nick w MP: xSebaPL
Piwa : 77
function scriptCreateInfernus ( player , command )
local luckyBugger = getRandomPlayer ()
local x , y , z = getElementPosition ( luckyBugger )
createVehicle ( 411 , x + 3 , y , z )
outputChatBox ( "Masz infernusa" , luckyBugger )
end
addCommandHandler ( "infernus" , scriptCreateInfernus )
function repireVehicle ( gracz , theVeicle )
if isPedinVehicle ( gracz ) then
local theVehicle = getPedoccupiedVehicle ( gracz )
if theVehicle then
outputChatBox ( "Pojazd naprawiony!" , gracz 220 , 220 , 0 )
fixVehicle ( theVehicle )
playSoundFrontEnd ( gracz , 46 )
end
else
outputChatBox ( "Musisz by? w poje?dzie!" , gracz 220 , 220 , 0 )
end
end
addCommandHandler ( "napraw" , reairVehicle )
function bind ()
for k , v in ipairs ( getElementsByType ( "player" )) do
unbindKay ( v , "2" )
bindKey ( v , "2" , "down" , repairVehicle )
end
end
addEventHandler ( "onResourceStart" , root , bind )
Da?e? jedno end za du?o
Tagi: czemu :: nie :: działa?
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: