Wysłany: 2020-04-06, 15:54
Szyszka947
ASP NET Core / Lua
Wiek: 19 Na forum: 2579 dni Posty: 288
Piwa : 16
Witam. Jak oznaczy? gracza w evencie onMarkerHit?
function markerhit ( thePlayer )
local team = getPlayerTeam ( thePlayer )
Z?y argument getPlayerTeam [oczekiwany gracz otrzymano marker]
Wysłany: 2020-04-06, 16:20
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
Poka? b??d. Albo wklej jego tre??.
Sprawdzaj czy thePlayer to gracz.
Wysłany: 2020-04-06, 16:42
Szyszka947
ASP NET Core / Lua
Wiek: 19 Na forum: 2579 dni Posty: 288
Piwa : 16
Wysłany: 2020-04-06, 17:00
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
Poka? ca?y kod. Duplikat 3794 razy? Mo?e nie podpi??e? tego pod onMarkerHit? Na pewno serwer masz w mecie?
Wysłany: 2020-04-06, 17:10
Szyszka947
ASP NET Core / Lua
Wiek: 19 Na forum: 2579 dni Posty: 288
Piwa : 16
function markerhit ( thePlayer )
local team = getPlayerTeam ( thePlayer )
if team == gang1 and source == markerSF then
outputChatBox ( "baza" , thePlayer , 255 , 255 , 255 , true )
end
end
addEventHandler ( "onMarkerHit" , getRootElement (), markerhit )
function gangiMarkery ()
markerSF = createMarker ( x , y , z , "arrow" , 1.5 , 255 , 255 , 0 , 170 )
end
addEventHandler ( "onResourceStart" , getRootElement (), gangiMarkery )
tak, w mecie strona serwera
Wysłany: 2020-04-06, 17:13
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
W funkcji addEventHandler dla onMarkerHit wstaw 'resourceRoot' zamiast 'getRootElement()'.
Wysłany: 2020-04-06, 17:28
Szyszka947
ASP NET Core / Lua
Wiek: 19 Na forum: 2579 dni Posty: 288
Piwa : 16
to samo, tylko, ?e duplikat x199
[ Dodano : 2020-04-06, 20:23 ]
Rozwiazalem problem. Do zamkniecia
Tagi: onmarkerhit
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: