Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: komputer
1. komputer pogotowia
Cze??, mam problemik ;p Ot?? gdy pr?buj? odczyta? tekst to nic si? nie pojawia ;/

[img]https://i.imgur.com/0NmFysO.jpg[/img]

Kawa?ek kodu:
[lua]addEvent("RescuePanel_client",true)
addEventHandler("RescuePanel_client",resourceRoot,function(cmd,d)
if cmd=="showWindow" then
if d then
if panelEnabled then return end
addEventHandler("onClientRender",root,RescuePanel)
addEventHandler("onClientClick",root,onClientClick)
addEventHandler("onClientKey",root,onClientKey)
panelEnabled=true
showCursor(true)
guiSetInputMode("no_binds")
setElementData(localPlayer,"3dtext_status",false)
triggerServerEvent("RescuePanel",resourceRoot,"odswiezTabeleStatusowPR")
elseif not d then
removeEventHandler("onClientRender",root,RescuePanel)
removeEventHandler("onClientClick",root,onClientClick)
removeEventHandler("onClientKey",root,onClientKey)
panelEnabled=false
showCursor(false)
guiSetInputMode("allow_binds")
setElementData(localPlayer,"3dtext_status",true)
end
elseif cmd=="odswiezTabeleStatusowPR" then
for i,v in ipairs(d) do
for k,p in ipairs(btn) do
if v.veh==p.veh then p.status=v.status end
end
end
elseif cmd=="pobierzAktyZgonow" then
for i,v in ipairs(d) do table.insert(btn,{typ="lista",id=i,dbid=v.id,text={v.dat...
2. Skrypt, komputer OSP
Witam, pobra?em dzisiaj taki o to skrypt z tej strony: http://gtao.pl/%3Cfont-co...str-vt93386.htm

Jest to komputer OSP, aczkolwiek, gdy podchodz? w blip, aby w??czy? SYRENE/ALARM OSP, to w??cza si? ona, lecz si? zacina i wi?kszo?ci nie s?ycha?, czy wie kto? jak to zrobi?, zeby p?ynnie t? syrene bylo slychac, bez zacinania?

Kody tutaj:

pcosp_c.lua - https://pastebin.com/BsEQjQPM

https://pastebin.com/5UcQzjFA

Z gory dziekuje za pomoc!
3. Komputer policyjyny
Witam, przerobi?em komputer policyjny z NewPlace na ogrpg. Gdy wpisuje id pojazdu lub gracza w komputer na komendzie to wyskakuje b??d w DB3:
GDY WPISUJE ID POJAZDU:
[code]WARNING: [db]/ogrpg-db/s_db.lua:27: dbPoll failed; Unknown column 'ownerPlayer' in 'field list' [/code]

GDY WPISUJE ID/NICK GRACZA:
[code[WARNING: [db]/ogrpg-db/s_db.lua:27: dbPoll failed; You have an error in your SQL syntax; check the manual that correspondes to your MariaDB server versiopn for the right syntax to use near 'FROM ogrpg_users WHERE id='1'at line 1 [/code]

Oto ca?y skrypt, serverside :
[lua]-- By madvalue <[email protected]>

local locations = {
{2269.24, 2448.45, 296.59, int=0, dim=16},
};

addEventHandler("onResourceStart", resourceRoot, function ()
for k,v in ipairs(locations) do
local marker = createMarker(v[1], v[2], v[3]-0.98, "cylinder", 1, 22, 168, 125, 100);
setElementInterior(marker, v.int);
setElementDimension(marker, v.dim);

local sphere = createColSphere(v[1], v[2], v[3], 1);
setElementInterior(sphere, v.int);
setElementDimension(sphere, v.dim);

addEventHandler("onColShapeHit", sphere, hitMDC);
end
end);

function hitMDC(hitElement, matchDimensions)
if getElementType(hitElement) ~= "player" or isPedInVehicle(hitElement) or not matchDimensions then return false; end

if getElementData(hitElement, "frakcja:sluzba") ~= "LSPD" then
outputChatBox("Na ek...
4. komputer OSP
Witam chcia?bym by kto? naprawi? ten ten skrypt http://gtao.pl/93386.htm .Jest to skrypt na komputer osp ale jest jeden b??d.Po w??czeniu syreny s?yszy j? tylko osoba kt?ra j? w??czy?a.Wi?c prosz? o naprawienie tego :)
PS. Nagradzam :arrow: :piwo:
5. Komputer - refresh starego tematu
Witam. Ju? dawno temu pisa?em podobny temat, chodzi o to, aby marker w??cza? si? tylko w wyznaczonej pozycji, ?eby nie w??cza? si? jak kto? leci samolotem lub stoi na parterze. Bodaj?e Tey poda? mi kod:


addEventHandler
("onClientMarkerHit"marker, function(graczdimension)
    if 
not getElementType(gracz)=="player" then return end

    local x
,y,getElementPosition(marker)
    
local px,py,pz getElementPosition(gracz)
    if 
math.abs(pz-z)>6 then return end

    guiSetVisible 
(monitortrue)
    
showCursor (true)
    
outputChatBox ("Zalogowa?e? si? na komputer OSP." )
end


Niestety sprawdzi?em go dopiero dzi? bo nie mia?em czasu. Ale problem polega na tym, ?e marker w??cza funkcj? nawet 50 metr?w na markerem...
6. [SAMP] Komputer starczy do sampa ?
Cze?c , temat chyba nie w odpowiednim miejscu , jak tak prosze o Moderatora o przeniesienie

Witajcie mam Laptopa DeLL starczy on na sampa ?

Parametry :

Intel(R) Prentium(R) M
procesor 1,73 GHz
367 MHz 0,99 GB RAM