Witajcie! Nauk? LUA rozpocz??em wczoraj. I dzisiaj wzi??em si? za pisanie pierwszego skryptu, aby nauczy? si? sk?adni itp. Meta jest ustawiona na server. B??d polega na tym, ?e po wpisaniu komendy nic si? nie dzieje i b??d?w pod DB3 tez nie ma.
addEventHandler("onClientMarkerHit", loop, function(el,md)
if not md or el~=localPlayer then return end
guiSetVisible( GUIEditor.window[1], true)
showCursor(true,false)
end)
local function win()
guiSetVisible(GUIEditor.window[1], false)
showCursor(false)
end
addEventHandler("onClientMarkerLeave", loop, function(el,md)
if el~=localPlayer then return end
win()
end)
addEventHandler("onClientGUIClick", GUIEditor.button[2], function(plr)
local mandaty = getPlayerWantedLevel(plr)
local mandat = mandaty * 700
if mandaty == 0 then
outputChatBox("* Nie posia...