Wysłany: 2012-10-18, 18:21
pidbulxd
Wiek: 28 Na forum: 5230 dni Posty: 135
Nick w MP: Word
Piwa : 540
Witam, robi? system wypadk?w. Czy moge was poprosi? o funkcje?
Potrzbne funkcje to: Frezz pojazdu, frezz gracza. blokada wyjscia.
Z pomoc piwko
Wysłany: 2012-10-18, 18:46
Riot
3X
Wiek: 29 Na forum: 5729 dni Posty: 1123
Nick w MP: Riot/3X
Piwa : 286
Wysłany: 2012-10-18, 19:13
pidbulxd
Wiek: 28 Na forum: 5230 dni Posty: 135
Nick w MP: Word
Piwa : 540
Ziomek11 , Czy mog? ci? prosi? o pomoc w zrobieniu panelu leczenia ? Zrobi?em 3 spos?b.
Edit. Ju? sobie poradzi?em, dzi?ki za pomoc. Ziomek11, zimny zywiec dla ciebie.
Ostatnio zmieniony przez pidbulxd 2012-10-18, 20:26, w całości zmieniany 1 raz
Wysłany: 2012-10-18, 20:22
Riot
3X
Wiek: 29 Na forum: 5729 dni Posty: 1123
Nick w MP: Riot/3X
Piwa : 286
Panel leczenia? Na komend? czy w GUI?
Wysłany: 2012-10-18, 20:43
pidbulxd
Wiek: 28 Na forum: 5230 dni Posty: 135
Nick w MP: Word
Piwa : 540
Ziomek11 , sciagnelem panel pogo z neta i doda?em moj system wypadkow do niego i dzia?a. Teraz pr?buje zrobi? nowy panel.
Cytat: GUIEditor_Window = {}
GUIEditor_Button = {}
GUIEditor_Grid = {}
GUIEditor_Window[1] = guiCreateWindow(410,198,478,217,"Panel Pogotowia",false)
guiSetAlpha(GUIEditor_Window[1],1)
guiWindowSetSizable(GUIEditor_Window[1],false)
GUIEditor_Button[1] = guiCreateButton(22,163,105,38,"Ulecz",false,GUIEditor_Window[1])
GUIEditor_Button[3] = guiCreateButton(360,162,100,39,"Wyjdz",false,GUIEditor_Window[1])
GUIEditor_Grid[1] = guiCreateGridList(53,37,383,106,false,GUIEditor_Window[1])
guiGridListSetSelectionMode(GUIEditor_Grid[1],2)
guiGridListAddColumn(GUIEditor_Grid[1],"Gracze",0.2)
function show()
if getPlayerTeam(getLocalPlayer()) == getTeamFromName("Pogotowie") then
guiGridListClear(GUIEditor_Grid[1])
for id, playeritem in ipairs(getElementsByType("player")) do
local row = guiGridListAddRow ( GUIEditor_Grid[1] )
guiGridListSetItemText ( GUIEditor_Grid[1], row, kolumna, getPlayerName ( playeritem ), false, false )
end
guiSetVisible(GUIEditor_Window[1], true)
showCursor(true)
end
end
end
function down ()
if (source == GUIEditor_Button[3]) then
guiSetVisible(GUIEditor_Window[1], false)
showCursor(false)
guiGridListClear(GUIEditor_Grid[1])
end
end
addEventHandler("onClientGUIClick", GUIEditor_Button[3], down)
function heal()
local player = guiGridListGetItemText (GUIEditor_Grid[1], guiGridListGetSelectedItem (GUIEditor_Grid[1]), 1)
triggerServerEvent("healp", getRootElement(), player)
end
addEventHandler( "onClientGUIClick", GUIEditor_Button[1], heal, false )
addCommandHandler("pogop2", show)
Mozesz zobaczyc co mam zle ?
Wysłany: 2012-10-18, 20:59
Riot
3X
Wiek: 29 Na forum: 5729 dni Posty: 1123
Nick w MP: Riot/3X
Piwa : 286
Poka? urywek funkcji gdzie Ci? freezuje.
Wysłany: 2012-10-18, 21:03
pidbulxd
Wiek: 28 Na forum: 5230 dni Posty: 135
Nick w MP: Word
Piwa : 540
Ziomek11 , chodzi o to ze panel sie nie otwiera, a jak widzisz chcial bym aby dalo sie otwierac np bindem. Tego zrobic wlasnie nie potrafie. Bind kay. Teraz otwiera sie komenda, a chcial bym zeby zamykalo sie przyciskiem 'Wyjdz'. A co do frezowania to : Kod: function uitMetDamage (loss)
if (loss > 64) then
local driver = getVehicleOccupant ( source )
if ( driver ) then
local pogo = getPlayersInTeam ( getTeamFromName("Pogotowie"))
for _,v in pairs(pogo) do
outputChatBox(getPlayerName(driver).." ulegl wypadkowi, udaj sie do niego i go ulecz !", v, 102, 255, 255)
end
toggleControl ( driver, "enter_exit", false ) -- enable their fire key
toggleControl ( driver, "accelerate", false ) -- enable their fire key
toggleControl ( driver, "brake_reverse", false ) -- enable their fire key
[ Dodano : 2012-10-20, 10:40 ]
Dzi?kuje Ziomek11 , do b??du doszed?em sam. Panel ?miga jak malina: ) Browar dla ciebie Ziomek
Tagi: system :: wypadków.
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: