| Tematy otagowane jako: shuffle |
| 1. Problem z pracą Taxi ( By Shuffle ) . Nie pokazuje Taxówek. |
Witam, mam problem z prac? by Shuffle (taxi)
Chodzi o to ze nie respi mi tych tax?wek .
Kod:
[lua]
local allow_vehs={
[420]=true,
}
local vehs={
{1779.7333984375, -1931.029296875, 13.521888732911},
{1784.7333984375, -1931.029296875, 13.521001266479},
{1791.7333984375, -1931.029296875, 13.521606445312},
{1797.7333984375, -1931.029296875, 13.521175384521},
{1803.7333984375, -1931.029296875, 13.521175384521},
}
taxi={}
for k,v in ipairs(vehs)do
taxi[k]=createVehicle(420,v[1],v[2],v[3])
setElementRotation ( taxi[k], 0, 0, 89.538452148438 )
setElementData(taxi[k],"vehicle:taxi",true)
end
addEventHandler("onPlayerVehicleEnter",root,function(veh,seat)
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Taxi")) then
if seat==0 then
if allow_vehs[getElementModel(veh)] then
if getElementData(veh,"vehicle:taxi") then
outputChatBox("*Zacz??es prac?. Dostaniesz informacj? o po?o?eniu klienta po wezwaniu us?ugi.",source,255,255,255)
setElementData(source,"player:taxi",true)
end
end
end
if allow_vehs[getElementModel(veh)] then
if getElementData(veh,"vehicle:taxi") then
setElementData(source,"taxi",false)
end
end
end
end)
if allow_vehs[getElementModel... |
| 2. praca Shuffle |
[lua]local allow_vehs={
[420]=true,
}
local vehs={
{-166.7333984375, 1013.029296875, 19.52188873291},
{-178.064453125, 1013.1181640625, 19.522001266479},
{-166.794921875, 1019.005859375, 19.521606445312},
{-178.0478515625, 1019.0419921875, 19.521175384521},
}
taxi={}
for k,v in ipairs(vehs)do
taxi[k]=createVehicle(420,v[1],v[2],v[3])
setElementData(taxi[k],"vehicle:taxi",true)
end
addEventHandler("onPlayerVehicleEnter",root,function(veh,seat)
if seat==0 then
if allow_vehs[getElementModel(veh)] then
if getElementData(veh,"vehicle:taxi") then
outputChatBox("*Zosta?e?(a?) taks?wkarzem. Dostaniesz informacj? o po?o?eniu klienta po wezwaniu us?ugi.",source,255,255,255)
setElementData(source,"player:taxi",true)
end
end
end
if allow_vehs[getElementModel(veh)] then
if getElementData(veh,"vehicle:taxi") then
setElementData(source,"taxi",false)
end
end
end)
addEventHandler("onPlayerVehicleExit",root,function(veh,seat)
if seat==0 then
if allow_vehs[getElementModel(veh)] then
if getElementData(veh,"vehicle:taxi") then
respawnVehicle(veh)
setElementData(source,"player:taxi",false)
end
end
end
end)
addCommandHandler("taxi",function(plr)
if getElementData(plr,"taxi") then
return outputChatBox("*Zam?wi?e?(a?) ju? us?ug?. Poczekaj cierpliwie na taks?wk?&qu... |
|