Zastanawiam si? czy trzymanie jednych tekstur i czcionek w jednym skrypcie jest optymalne? Czy lepiej jak do ka?dego skryptu wgrywamy czcionki i tekstury do mety itd i wywo?ujemy za pomoc? exportowanych funkcji?? Co o tym my?licie?
Witam.
Ot?? mam problem z przyciskiem do nowego okna GUI.
Chodzi mi o to ?e jak klikniemy w przycisk (LABEL) to powinno nam zamkn?? okno nr.1 a wy?wietli? okno nr.2 i tutaj jest problem w tym ?e nie wywala mi b??du a okno nr.2 si? nie wy?wietla oto niezb?dny kod:
Mam problem, poniewa? nie dzia?aj? mi: bankomaty, kicki, bany itd. oraz celowanie suszark?, serwer ca?y jest ju? zrobiony tylko tego brakuje i prosz? o pomoc
Witam ,Wi?c sprawa wygl?da tak : Mam skrypt na pojazdy kt?ry sprawdza licencje kat .A i chodzi mi o to aby robi? on wyj?tek na pojazd faggio o id 462 ,tzn aby by?o mo?na tylko nim je?dzi? bez prawka kat A..
Za pomoc Stawiam Zimne Pozdrawiam
Witam mam problem bo zrobi?em sobie skrypt na powiadomienia u?ytkownik?w co w danym miejscu jest si? znajduje ale po wej?ciu w Pickup wy?wietla powiadomienie wszystkim w pobli?u mam teraz pro?b? o pomoc tak ?eby powiadomienie si? pokazywa?o tylko osobie co wesz?a w Pickup dodaje fragment kodu
Z G?RY, NIE WIEM CZY NAPISA?EM W DOBRYM DZIALE JAK CO? PROSZ? O PRZENIESIENIE GO, A NIE USUWANIE!
Cze?? napisa?em tutaj oto taki skrypt:
Ten kod jest na "respienie graczy" jak gracz jest nowy to respi go w miejscu wyznaczonym coordynatami, a jak juz gral gracz na serwerze to respi go w ostatnim miejscu, mo?e kto? mi pom?c bo wyskakuje mi takie co? w konsoli i nie do ko?ca wime jak to naprawi? z g?ry dzi?ki, stawiam piwko!
Cze??. Mam takie troch? dziwne pytanie, czy da si? wykona? kod mapy w skrypcie? Tzn. mam skrypt i chc? aby przy wykonywaniu skryptu sprawdza?o czy gracz ma VIPa (warunek z gamemodu). Da si? takie co? zrobi?, czy lepiej ju? ten skrypt doda? do gamemodu?
Siemanko , ot?? jestem zielony w tym i mam problem , macie pewnie podstawowy killmesages wiec kodu nie musze podawac , chodzi oto ze u mnie jest tak
,?e jak kto? kogo? zabije t owidac mu np. #ff0000Nick zabi? Gracza3232
Co chce zrobi? no chce aby Ten nick , nie mia? tego wiecie napisu kolorku tylko mia? ten kolorek tam : D
jak kto? nie rozumie to powtorze
#ff0000Nick zabi? Gracza3232
Jak jest
[color=red]Nick [/color]zabi? Gracza3232
a jak ma by?
kolorek podalem losowy jako przyklad ale wiecie o co chodzi
Myslalem ze sam to zrobie ale nie mog znalesc nigdzie cos co odpowiada za wyswietlanie aby to moglem jakos zmodyfikowac
szukalem w killmesages_client
[lua]
addEvent ("onClientPlayerKillMessage",true)
function onClientPlayerKillMessage ( killer,weapon,wr,wg,wb,kr,kg,kb,width,resource )
if wasEventCancelled() then return end
outputKillMessage ( source, wr,wg,wb,killer,kr,kg,kb,weapon,width,resource )
end
addEventHandler ("onClientPlayerKillMessage",getRootElement(),onClientPlayerKillMessage)
function outputKillMessage ( source, wr,wg,wb,killer,kr,kg,kb,weapon,width,resource )
if not iconWidths[weapon] then
if type(weapon) ~= "string" then
weapon = 999
end
end
local killerName
local wastedName
if not tonumber(wr) then wr = 255 end
if not tonumber(wg) then wg = 255 end
if not tonumber(wb) then wb = 255 end
if not tonumber(kr) then kr = 255 end
if not tonumber(kg) then kg = 255 end
if not t...
[lua]--[[
This script was made by Xownage, please do not re-release any part of this script without xownage's permission
--]]
player = getRootElement()
function clickmenupd (mouseButton, buttonState, clickedElement, worldPosX, worldPosY, worldPosZ, screenPosX, screenPosY)
-- outputChatBox ("1")
if ( buttonState == "down" ) then
-- outputChatBox ("2")
local team = getPlayerTeam(source)
if team then
if getTeamName(team) == "DUPA" and isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(source)), aclGetGroup("RCON")) then
-- outputChatBox ("3")
if ( getElementData ( source, "pdclickopen" ) == false ) then
-- outputChatBox ("4")
if ( getElementData (source, "pdmousebind") == true ) then
-- outputChatBox ("5")
if ( mouseButton == "right" ) then
if ( clickedElement ) then
Ot?? mam skrypt GEOGAMING (fgaming) - nie nie robi? go na role play. Chodzi mi aby zmieni? edytowanie sampowe kt?re tam jest czyli ruszanie obiektami WSAD itp a ?eby by?o to "MTA", pomocy!
[b]Witam potrzebuj? pomocy w skrypcie,
ot?? mam skrypt na prace i w ka?dej z nich po wyj?ciu z np auta ono znika problem pojawia si? wtedy gdy kto? zrobi /quit albo /reconnect lub /disconnect
wtedy auto nie znika i stoi ... dop?ki nie zrestartuje si? skryptu prosz? pom??cie daj? wam kawa?ek skryptu
Chodzi mi o to ?e jak gracz wpisze np /quit to usunie sie pojazd [/b]
client:
[quote]local jobTarget
local jobMarker
local jobVehicle
local maxTarget = #districtsBus
function finishJob()
if jobMarker and isElement(jobMarker) then
destroyElement(jobMarker)
jobMarker = nil
end
if jobTarget and isElement(jobTarget) then
destroyElement(jobTarget)
jobTarget = nil
jobTarget = 0
function busDriver(el, md)
if el ~= localPlayer or not md then return end
if jobTarget > maxTarget and getPedOccupiedVehicle(el) then return end
if jobTarget == maxTarget and not getPedOccupiedVehicle(el) then return end
if jobTarget == #districtsBus then
finishJob()
playSoundFrontEnd(5)
outputChatBox("* Zako?czy?e?/a? prac?.")
else
showMarker()
playSoundFrontEnd(12)
triggerServerEvent("givePlayerMoney", localPlayer, 20, 0)
end
end
function showMarker()
if jobMarker and isElement(jobMarker) then
des...
local function follow()
local dokogo=getElementData(localPlayer,"kajdanki")
if (not dokogo or not isElement(dokogo)) then
setElementData(localPlayer,"kajdanki", nil)
removeEventHandler("onClientPreRender", root, follow)
triggerServerEvent("setPedAnimation", localPlayer)
return
end
if (getPedOccupiedVehicle(dokogo) or getElementInterior(dokogo)~=getElementInterior(localPlayer) or getElementDimension(dokogo)~=getElementDimension(localPlayer)) then
setElementData(localPlayer,"kajdanki", nil)
removeEventHandler("onClientPreRender", root, follow)
triggerServerEvent("setPedAnimation", localPlayer)
return
end
local x,y,z=getElementPosition(dokogo)
local x2,y2,z2=getElementPosition(localPlayer)
local kat=0
kat=math.deg(math.atan(-1*(x2-x)/(y2-y)))
if (y2-y)<0 then
kat=kat+180.0
end
kat=(kat+180)%360
Cze??, kolejna pro?ba dotycz?ca skryptu pana prezesa http://hostuje.net/file.p...69b94a1ae77887a
Aby zablokowa? cene np. -999999 ? Pr?bowa?em co? takiego:
jednak teraz jak klikam "Sprzedaj" nic sie nie dzieje nic w DS3 tez nie ma
Prosz? o pomoc nagradzam tym co zawsze czyli piwkiem oraz respektem
local jobTarget
local jobMarker
local jobVehicle
local maxTarget = #districtsBus
function finishJob()
if jobMarker and isElement(jobMarker) then
destroyElement(jobMarker)
jobMarker = nil
end
if jobTarget and isElement(jobTarget) then
destroyElement(jobTarget)
jobTarget = nil
jobTarget = 0
end
triggerServerEvent("destroyVeh", localPlayer)
end
function busDriver(el, md)
if el ~= localPlayer or not md then return end
if jobTarget > maxTarget and getPedOccupiedVehicle(el) then return end
if jobTarget == maxTarget and not getPedOccupiedVehicle(el) then return end
if jobTarget == #districtsBus then
finishJob()
playSoundFrontEnd(5)
outputChatBox("* Zako?czy?e?/a? prac?.")
else
showMarker()
playSoundFrontEnd(12)
triggerS...
Witam, wszystko jest z tym kodem w symie ok, tylko gdy jak dojdzie do 7 to nie tworzy si? tabela z nowym indexem czyli 2. Nic nie wyrzuca w debugu.
local savedClientItems = {} local itemsPage = {1,1} --strona oraz ile stron aktualnie przetwarzanego ekwipunku
local itemsSorted = {} local page = 1
function refreshClientItems ( itemTable ) savedClientItems = itemTable
itemsSorted[page] = {}
for i,v in ipairs(savedClientItems) do
if i == 7 or i == 13 or i == 19 then
page = page + 1
itemsPage[2] = page
itemsSorted[page] = {} end
itemsSorted[page][i] = { v[1] , v[2] , v[3] } outputChatBox(page .. " " .. i .. " " ..#itemsSorted[itemsPage[1]])
end
end
addEvent( "refreshClientItems", true ) addEventHandler( "refreshClientItems", localPlayer, refreshClientItems )
Chce ?e gdy iterator (i) dojdzie do 7 to tworzy tabele z nowym indexem. Dodam ?e na pocz?tku normalnie si? tworz? tylko gdy jak sprawdze
Mam problem, ten skrypt nie chce mi za?o?y? konta.
Tzn. Nie dzia?aj? przyciski "Zaloguj" i "Zarejestruj Si?".
Prosz? o pomoc.
[lua]wdwLogin_Pannel = {}
tabPannel_Main = {}
tab_Login = {}
tab_Register = {}
--Settings
blackLoginScreen = true --True/false Black screen, while player login...
blackScreenTime = 5 --Time to complete disappearance of the black screen in seconds.
GuestEnable = false --Can a Player play as Guest, or no. [true/false]
EnableMTAControlsOnLogin = false --Set false to not open the chat when you press "t" on fields, for example. [true/false]
function open_log_reg_pannel()
if not(isElement(wdwLogin_Pannel)) then
showPlayerHudComponent ( "all", false )
local sWidth,sHeight = guiGetScreenSize() -- The variables
local Width,Height = 350,284 --Main Window sizes
local X = (sWidth/2) - (Width/2) --Main Window horizontal position
local Y = (sHeight/2) - (Height/2) --Main Window vertical position
toggleAllControls(EnableMTAControlsOnLogin)
C:UsersrudyyDesktopPAWNOaim.pwn(118) : error 001: expected token: "#endif", but found "-end of file-"
C:UsersrudyyDesktopPAWNOaim.pwn(118) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
case 25..27, 16..18, 34..37, 39..40, 43..200: return 0;
// Blocks shotguns, sniper rifle, RPG, heat seaker satchel charges etc - besides shotguns these are unaffected by autoaim
// the reason shotguns are removed from checking is because i've found them to be unreliable.
default:return 1;
}
return 1;
}
Mam ma?e pytanko odno?nie obiekt?w lepiej je wkleja? do mapy czy przez streamer w skrypcie ? Co b?dzie bardziej optymalne ?eby nie by?o lag?w i szybko si? wczytywa?y ?
Cze??. U?ywam skryptu GarHouse na swoim serwerze i mam z tym problem. Gdy postawi?em 12 dom?w wszystko by?o ok, od 13 wzwy? gracze nie mog? ju? ich kupi?, nic si? nie wy?wietla Jaki mo?e by? tego pow?d? Zamieszczam PWN skryptu, gdyby kto? m?g?by mi to naprawi? - bardzo prosz?, ja sam tego nie dam rady zrobi?.