Wysłany: 2017-11-21, 17:27
kesemdi
Początkujący Mapper
Wiek: 36 Na forum: 3356 dni Posty: 24
Nick w MP: kesemdi
Piwa : 13
Czy wie kto? jak mog? przerobi? skrypt hedit (skrypt na ustawianie handlingu) tak aby m?g? z niego korzysta? tylko gracz dodany do grupy admin w acl?
Wysłany: 2017-11-21, 18:08
lukas60055
Wiek: 25 Na forum: 3917 dni Posty: 53
Nick w MP: Lukasino
Masz tu taki przyk?ad
addCommandHandler ( "turbo" , function( plr )
local accName = getAccountName ( getPlayerAccount ( plr ))
if isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "Admin" )) then
local pojazd = getPedOccupiedVehicle ( plr )
outputChatBox ( "* Zamontowa?e?(a?) uk?ad Turbo." , plr )
setVehicleHandling ( pojazd , "engineAcceleration" , getVehicleHandling ( pojazd ). engineAcceleration + 10 )
setVehicleHandling ( pojazd , "maxVelocity" , getVehicleHandling ( pojazd ). maxVelocity + 35 )
setVehicleHandling ( pojazd , "tractionMultiplier" , 0.8 )
setVehicleHandling ( pojazd , "steeringLock" , 50 )
setVehicleHandling ( pojazd , "driveType" , "awd" )
end
end )
Wysłany: 2017-11-21, 19:16
Kalizman
Wiek: 23 Na forum: 3651 dni Posty: 1394
Piwa : 4619
Tam gdzie masz komend? hedit dajesz warunek 'if'
Tagi: handling :: tylko :: dla :: adminów
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: