Wysłany: 2013-01-23, 20:53
MrRevol
Wiek: 29 Na forum: 5443 dni Posty: 8
Nick w MP: Yamata_Narazaki
Piwa : 83
Witajcie , napisa?em oto taki prosty skrypt :
Kod: function repair( thePlayer, command )
getVehicleDamage = tonumber math.random = getVehicleProcentage
takePlayerMoney (thePlayer, 0, true )
setVehicleFixed
= outputChatBox("", getRootElement(), 125, 125, 0 )
end
bindKey ( source, "x", "down", repair )
addEventHandler("onPlayerDamage", getRootElement(), repair )
Chce aby naprawa by?a pod klawiszem X , helpnie ktos ?
Wysłany: 2013-01-25, 09:07
HartHol
Log Out
Wiek: 27 Na forum: 5037 dni Posty: 116
Nick w MP: HartHol
Piwa : 14
Napraw? pojazdu gracza, kt?ry wci?nie przycisk "x" mo?esz zrobi? tak:
Server Side:
function repair ( thePlayer )
local playerVehicle = getPedOccupiedVehicle ( thePlayer ) -- jak nie b ? dzie dzia ? a ? o to daj "source"
fixVehicle ( playerVehicle )
outputChatBox ( "Naprawiles swoj pojazd!" , thePlayer ) -- jak nie to "source"
end
bindKey ( source , "x" , "down" , repair )
Tagi: naprawa :: pojazdu
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: