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: żeby
1. Jak usunąć TR_chat z JustPlay żeby działał?
Cześć. Mam problem, gdy usuwam TR_chat nie działają cmd np. admina oraz nie wyświetla się chat. Jak mogę to zrobić
2. Jak zrobić żeby leciała playlista w danym miejscu
Witam, czy da si? zrobi? tak ?eby w danym miejscu na mapie lecia?a np. jaka? playlista (nie jedna piosenka) (nie radio) po prostu ?eby lecia?o kilka piosenek...
3. Szukam poradnika jak zrobić żeby asortyment salonu sie zmien
Szukam poradnika jak zrobi? ?e po zakupie auta w salonie lub u cygana to sie automatyccznie po jakim? czasie zmienia? prosze nawet o skrypt
[color=red][/color]
4. Co mam zrobić żeby tego nie było?
Wgra?em paczke fort carson i pisze mi w konsoli to

No i nwm co zrobi? bo ju? pr?bowa?em wszystko ale na sw?j spos?b mo?e wie kto? jak to naprawi??

[18-11-12 16:47:07] ERROR: Unable to start resource maps; Failed to start resource item fortcarson.map which is required
[18-11-12 16:47:07] ERROR: mysql/connection.lua:62: attempt to call global 'mysql_ping' (a nil value)
[18-11-12 16:47:07] ERROR: money/server.lua:4: call: failed to call 'mysql:query' [string "?"]
[18-11-12 16:47:08] ERROR: Couldn't find resource pwnage. Check it exists.
[18-11-12 16:47:08] ERROR: Couldn't find resource cinema. Check it exists.
[18-11-12 16:47:08] Creating new DB table vending_machines
[18-11-12 16:47:08] ERROR: Couldn't find resource changename-system. Check it exists.
[18-11-12 16:47:08] Querying MTA master server... success! (Auto detected IP:193.70.126.129)
[18-11-12 16:47:08] Authorized serial account protection is enabled for the ACL group(s): `Admin` See http://mtasa.com/authserial
[18-11-12 16:47:08] WARNING: owner_email_address> not set
[18-11-12 16:47:08] Server started and is ready to accept connections!
[18-11-12 16:47:08] To stop the server, type 'shutdown' or press Ctrl-C
[18-11-12 16:47:08] Type 'help' for a list of commands.
[18-11-12 16:47:08] Stopping global
[18-11-12 16:47:08] Starting global
[18-11-12 16:47:08] ERROR: mysql/connection.lua:62: attempt to call global 'mysql_ping' (a nil value)
[18-11-12 16:47:08] ERROR: global/money_globals.lu...
5. Jak zmienić żeby heksa nie było widać tylko kolory w sc
Siema tak jak w temacie postawie piwo

[lua]local screenW, screenH = guiGetScreenSize()
local sx, sy = guiGetScreenSize()
local w, h=(sx/1680), (sy/1050)

function isMouseIn(psx,psy,pssx,pssy,abx,aby)
if not isCursorShowing() then return end
cx,cy=getCursorPosition()
cx,cy=cx*sx,cy*sy
if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then
return true,cx,cy
else
return false
end
end

local tabulator = false
local czcionka = dxCreateFont("f.ttf", 11*w)
local czcionka2 = dxCreateFont("f.ttf", 17*w)


local k = 1
local n = 13
local m = 13

if not czcionka then
czcionka = "default"
end

local zakladki = {
id = "ID",
name = "Nazwa",
reputation = "RP",
organization = "Organizacja",
uid = "UID",
ping = "Ping",
faction = "Frakcja",
forum = "mta-storiesrpg.pl"
}

local ss = 1
local tabulator=false
local ping = {}


function sort(op1, op2)
if isElement(op1) and isElement(op2) then
return getElementData(op1, "id") < getElementData(op2, "id")
end
end

function gui()
local players = {}
for i,v in ipairs(getElementsByType("player")) do
table.insert(players, v)
end
table.sort(players, sort)


dxDrawImage(530*w, 307*h, 612*w, 490*h, ":srpg-tab/bg.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
...
6. Nie działa zrobiłem żeby tylko prawko L
Siema chcia?em zmieni? kordy ?eby jak nie zdam prawka ?eby tam tepa?o na podane kordy

addEventHandler("onPlayerQuit"root, function()
    
local veh=getPedOccupiedVehicle(source)
    if 
not veh then return end
    
if getVehicleController(veh) ~= source then return end
    
if not getElementData(veh,"vehicle:lic"then return end
    destroyElement
(veh)
    
destroyElement(elka)
end)

addEventHandler("onVehicleDamage"resourceRoot, function(loss)
    if 
getElementData(source,"player:license:pjL"then return end
    local kierowca
=getVehicleController(source)
    if 
not kierowca then return end
    
if not getElementData(source,"vehicle:lic"then return end
    destroyElement
(source)
    
destroyElement(elka)
    
outputChatBox("* Uszkodzi?e?(a?) pojazd, nie zdajesz egzaminu!"kierowca25500)
    
triggerClientEvent(kierowca"license:finish"resourceRoottrue)
    
setElementDimension(kierowca0)
    
fadeCamera(kierowca,false,1)
    
setTimer(fadeCamera,1000,1,kierowca,true,1)
    
setTimer(setElementPosition,1001,1,kierowca,399.87,2532.34,16.54)    
end)
7. Możecie pomóc żeby dodać 3 range komend na dawanie premek
Siema mo?ecie pom?c ?eby doda? dla rangi 3 komende na dawanie premek

if exports['pystories-admin']:getAdmin(plr,4then
8. jak zrobić żeby gui się włączało
GUIEditor = {
    
staticimage = {}
}
    function 
tuning()
        
GUIEditor.staticimage[1] = guiCreateStaticImage(387167554410":K_pojazdy-tuning/TLO/tlo.png"true)
        
GUIEditor.staticimage[2] = guiCreateStaticImage(2924138134":K_pojazdy-tuning/US/ulepszsilnik.png"true
        
GUIEditor.staticimage[3] = guiCreateStaticImage(39024139136":K_pojazdy-tuning/NAPED/AWD.png"true)
        
GUIEditor.staticimage[4] = guiCreateStaticImage(30254137135":K_pojazdy-tuning/NAPED/FWD.png"true
        
GUIEditor.staticimage[5] = guiCreateStaticImage(390254137136":K_pojazdy-tuning/NAPED/RWD.png"true
        
GUIEditor.staticimage[6] = guiCreateStaticImage(2401687574":K_pojazdy-tuning/EXIT/EXIT.png"true)
    
end
marker 
createMarker ( -2328.54297, -168.0212933.83862"cylinder"3.000180200 )

addEventHandler("onClientMarkerHit"marker, function()
    
guiSetVisible(GUIEditor.staticimage[1], true)
    
guiSetVisible(GUIEditor.staticimage[2], true)
    
guiSetVisible(GUIEditor.staticimage[3], true)
    
guiSetVisible(GUIEditor.staticimage[4], true)
    
guiSetVisible(GUIEditor.staticimage[5], true)
    
guiSetVisible(GUIEditor.staticimage[6], true)
    
showCursor(false)
end)


nie wiem jak to zrobi? jak kto? wie to pomo?e kto??
9. jak zrobić żeby tylko policja mogła używać suszarki
nie wiem jak to zrobi? pom??cie pliska
client
[lua]
GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[6] = guiCreateWindow(496, 279, 383, 270, "Suszarka", false)
guiSetVisible(GUIEditor.window[6], false)
guiWindowSetSizable(GUIEditor.window[6], false)
guiSetAlpha(GUIEditor.window[6], 1.00)

GUIEditor.button[1] = guiCreateButton(99, 66, 166, 133, "We?nsuszarke", false, GUIEditor.window[6])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
end
)


marker = createMarker( 1568.36243, -1690.81848, 4.89063, "cylinder", 1, 0, 0, 255, 170 )


function hit(ele)
if source == marker then else return end
if getElementType( ele ) == "player" then else return end
if ele == getLocalPlayer() then else return end
if isElementWithinMarker ( ele, marker ) then else return end
guiSetVisible(GUIEditor.window[6], true)
showCursor(true)
end
addEventHandler("onClientMarkerHit", marker, hit)

function wezsuszare()
if source ~= GUIEditor.button[1] then return end
triggerServerEvent("wezsuszare2", localPlayer)
guiSetVisible(GUIEditor.window[6], false)
showCursor(false)
end
addEventHandler("onClientGUIClick", root, wezsuszare)[/lua]


server
[lua]addEvent("wezsuszare2", true)
addEventHandler(...
10. Jak zrobić żeby usunac ten napis po zalogowaniu na serwerze
Witam mam problem loguje si? na serwer i pisze mi takie co? * SweetNightlight41 is now known as Nezzi [Mam wylaczony freeroam i tryb gry play za pomoc daje zimne :piwo:
11. Co zrobić, żeby pojazd był nie zniszczalny?
Postawi?em samoch?d w map editorze, w pliku .map doda?em do samochodu

Kod:

breakable="false"


Niestety samoch?d mo?na nadal nisczy? taranuj?c go, czy w inny spos?b. Jak temu zaradzi?? Stawiam :arrow: :piwo: !!
12. Jak podpisać przycisk, żeby np. panel zniknął albo wyjsc?
[lua]GUIEditor = {
button = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.button[1] = guiCreateButton(598, 483, 174, 57, "Wyjdz", false)
guiSetAlpha(GUIEditor.button[1], 0.86)
guiSetFont(GUIEditor.button[1], "default-bold-small")


GUIEditor.button[2] = guiCreateButton(419, 288, 135, 52, "Kamizelka", false)
guiSetFont(GUIEditor.button[2], "default-bold-small")


GUIEditor.button[3] = guiCreateButton(601, 289, 141, 51, "Pistolet", false)
guiSetFont(GUIEditor.button[3], "default-bold-small")


GUIEditor.button[4] = guiCreateButton(773, 290, 138, 50, "Pa?ka policyjna", false)
guiSetFont(GUIEditor.button[4], "default-bold-small")


GUIEditor.button[5] = guiCreateButton(504, 360, 144, 56, "Teleport na baze", false)
guiSetFont(GUIEditor.button[5], "default-bold-small")


GUIEditor.button[6] = guiCreateButton(699, 359, 149, 57, "Zejdz ze skina", false)
guiSetFont(GUIEditor.button[6], "default-bold-small")
end
)

addEventHandler("onClientRender", root,
function()
dxDrawRectangle(382, 197, 590, 360, tocolor(10, 242, 234, 180), false)
dxDrawText("Panel Policji", 403, 211, 962, 269, tocolor(54, 1, 252, 180), 3.50, "default-bold&q...
13. Co zrobić, żeby neony zapisały się w bazie danych?
Witam,
posiadam skrypt na panel neon?w, lecz nie wiem co zrobi?, ?eby sie zapisa?y po zostawieniu ich w przecho. Jakies pomysly?
14. Jak zmusić pojazd żeby poruszał się
Czy jest mo?liwe w MTA ?eby zmusi? jaki? pojazd ?eby porusza? si? tylko po konkretnej linii, np. jak to robi tramwaj?
15. Jak dodać żeby pokazywało kto pisze ?
Tak jak w temacie chce ?eby to mniej wi?cej wygl?da?o tak

">>TEKS//Evil"

-- KOMENDY DLA ROOTA
addCommandHandler("r", function(plr, cmd, ...)
if getElementData(plr, "duty") == 3 then
local text = table.concat(arg, " ")
outputChatBox(">> "..text, getRootElement(), 255, 0, 0)
end
end)
Jakiej funkcji u?y? ?
16. Jak to przerobić żeby działał na lotnicze ;)
Witam mam taki problem i? pr?bowa?em przerobi? ten o to skrypt z aut na samoloty no ale kij z tego wysz?o wi?c zwracam si? do was o pomoc mam nadziej? ?e kto? mi pomo?e

[code]
--kolejne wspolrzedne punktow
local trasa = {
{331.14,2521.66,17.62},
{406.52,2520.04,17.42},
{415.17,2493.63,17.39},
{227.50,2494.52,22.06},
{-101.72,2516.16,53.80},
{-469.62,2628.77,103.28},
{-1036.08,2706.44,123.19},
{-1489.50,2685.24,126.43},
{-2054.34,2576.14,185.25},
{-2426.47,2433.82,172.17},
{-2529.07,1869.53,113.27},
{-2552.66,1428.96,100.02},
{-2353.43,1129.38,130.42},
{-1898.94,990.85,171.07},
{-1616.00,916.49,172.80},
{-1109.09,757.67,112.79},
{-514.78,667.07,108.58},
{310.23,688.36,80.34},
{676.04,733.93,67.75},
{915.37,784.27,75.93},
{1236.82,978.49,94.99},
{1306.72,1319.95,149.90},
{1244.70,1785.84,222.58},
{1142.23,2023.80,223.29},
{1036.86,2217.57,175.90},
{862.41,2376.28,110.71},
{707.11,2441.82,85.39},
{526.06,2488.73,52.99},
{368.71,2500.40,22.78},
{289.51,2502.47,17.42},
{243.87,2544.52,17.60},
}--{x, y, z}, prosze pamietac o przecinku, dziekuje

--nasze kategorie oraz ceny
local kategorie = {
{"A", 100},
{"B", 50},
{"C", 150},
}

--gui
mojeW,mojeH = 640, 480
sW,sH = guiGetScreenSize()
width, height = (sW/mojeW), (sH/mojeH)

local guiprawko = {}
guiprawko[1] = guiCreateWindow(150*width, 65*height, 321*width, 309*height, "Prawo Jazdy", false)
guiWindowSetSi...
17. Jak zrobić żeby znalazło się to w dimensionie
Witam posiadam taki kod

[lua]local skins={
["SAMA"]={
code="SAMA",
positions={
{-2722.25,688.96,51.23,274,"Skin ratownika",0,0,2},
{-2714.70,689.31,51.23,70,"Skin Kadra",0,0,9},
{1527.54,1458.44,10.98,275,"Skin Pielegniarzy",0,0},
{-2734.68,682.11,51.23,178,"Skin Kobiety",0,0},
},
SetElementInterior(positions, 10)
text=" Nie pracujesz jako SAMA lub nie jeste? na s?u?bie lub nie masz uprawnien do tego skina.",
},
["SAPD"]={
code="SAPD",
positions={
{-456.81,4.93,-73.55,310,"Kadra",0,0,10},
--{-454.48,4.93,-73.55,309,"Kadra",0,0,10},
{-452.37,4.93,-73.55,285,"SWAT",0,0,2},
{-456.95,9.77,-73.55,284,"SAPD1",0,0,2},
{-454.51,9.77,-73.55,283,"SAPD2",0,0,2},
--{-6766.26,-1464.93,97.26,282,"SAPD3",0,0,3},
{-454.48,4.93,-73.55,281,"SAPD3",0,0,1},
{-6763.59,-1463.09,97.26,311,"SAPD5",0,0,4},
},
text=" Nie jeste? SAPD lub nie jeste? na s?u?bie lub nie masz uprawnien do tego skina.",
},
["ASA"]={
code="ASA",
positions={
--{-2735.89, 690.40, 51.23,276,"Skin akademii"},
{-1317.49,489.22,11.20,285,"Skin Bojowy"},
{-1313.90,488.96,11.20,179,"Skin Koszarowy"},
},
text=" Nie jeste? ASA lub nie jeste? na s?u?bie lub nie...
18. Jak zrobić żeby kolor nicku się nie zmieniał
Hej mam pytanie jak zrobi? ?eby kolor nicku si? nie zmienia?. Dopiero by si? zmieni? jakby?my do??czyli do np. frakcji Policja
19. Praca rolnika.Jak zrobić żeby inni gracze nie widzieli
Witam mam problem poniewa? gdy gracz wejdzie w marker i stworzy mu si? pojazd do pracy (traktor) jego markery wida? chcia?bym ?eby nie by?o ich wida? dla innych graczy tylko dla rolnika.

[code]Start = createMarker(-1034.9000244141,-1177.6999511719,128.19999694824,"cylinder",3,255,0,0,255,getRootElement())
blip = createBlip (-1034.9000244141,-1177.6999511719,128.19999694824, 52, 0, 0, 0, 255, myPlayer )

function startjob (hitElement,myPlayer)
if source == Start then
outputChatBox("Jestes rolnikiem, twoim zadaniem jest zrobic orke po wyznaczonych markerach",hitElement)
auto1 = createVehicle ( 531,-1035.9000244141,-1172.5999755859, 129.19999694824)
warpPedIntoVehicle (hitElement,auto1)
marker1 = createMarker(-1191.5,-1060.5999755859,129.19999694824,"checkpoint",3,255,0,0,255,myPlayer,hitElement)
destroyElement (Start,localplayer)
end
end
addEventHandler("onMarkerHit",getRootElement(),startjob)

function marker1f (hitElement,myPlayer,Source)
if source == marker1 then
destroyElement (marker1)
marker2 = createMarker(-1099.4000244141,-1057,129.19999694824,"checkpoint",3,255,0,0,255,myPlayer,hitElement)
end
end
addEventHandler("onMarkerHit",getRootElement(),marker1f)

function marker2f (hitElement,myPlayer)
if source == marker2 then
destroyElement (marker2)
marker3 = createMarker(-1027.4000244141,-1058.5,129.19999694824,"checkpoint",3,255,0,0,255,myPlayer,hitElement)
end
end
addEven...
20. Jak to wezwanie ustawić żeby pokazało się tylko team`owi
Witajcie! Napisa?em skrypcik, na wezwania... Lecz nie wiem jak odwo?a? si? ?eby pokazywa?o tylko w frakcji kt?r? wezwali?my wezwanie, a nie wszystkim graczom. Oto potrzebne linijki:

function poli(a,b,c)
outputChatBox getPlayerName (a).. " Potrzebuje Policji ! "getRootElement())
end

addCommandHandler
("policja"poli)


Za pomoc postawi? piwko!
21. [INNE] Co zrobić żeby pobrana mapa zaczęła działać?
Cze?? !
W tym temacie chcia?bym powiedzie? o moim problemie mi?dzy innymi chodzi mi o to ?e gdy odpalam serwer w pobranej mapie np.Polski serwer zabawy,to wszystko si? w??cza a gra ?aduje lecz gdy wchodz? na serwer wyskakuje b??d "server closed the connection".Czy m?g? by mi kto? udzieli? rady co zrobi? poniewa? jestem pocz?tkuj?cym w gta samp i og?lnie w pawnie a chcia?em tylko zrobi? serwer ?eby ze znajomymi pogra?.Bardzo prosi? bym o nie zignorowanie mojego postu.A tym kt?rzy si? podejmi? pomocy serdecznie dzi?kuj?. :)
22. [INNE] Jak zrobić żeby cmd działało na frakcje i typ
Witam mam tak? komend? i chce zrobi? ?eby dzia?a?a na id frakcji i na typ frakcji przest?pczej typ 3 :)
Kod:

CMD:przeszukaj(playerid, cmdtext[]) //PD && Gangi && Szajki
{
if(!ToFrakcja(playerid,2)) return 1; //To dzia?a na id frakcji
if(!ToFrakcja(playerid,PlayerInfo[playerid][pFrakcja]))return 1; // A to typ frakcji
if(FrakcjaInfo[PlayerInfo[playerid][pFrakcja]][fTyp]!=3)return 1;// to te?
new playa;
if(sscanf(cmdtext, "i",playa))
{
GuiInfo(playerid,""BIALY"U?yj: /przeszukaj (id)");
return 1;
}
if(!IsPlayerConnected(playa)||playa==playerid)
{
GuiInfo(playerid,""BIALY"Nie poprawne id gracza!");
return 1;
}
if(!OdlegloscGracze(5.0, playerid, playa))
{
GuiInfo(playerid,""BIALY"Gracz nie jest ko?o ciebie!");
return 1;
}
format(String, sizeof(String),""BIALY"(%d) %s przeszuka? ciebie",playerid,Nick[playerid]);
GuiInfo(playa,String);
WyswietlPrzedmiotyGracza(playa,playerid);
return 1;
}
23. Jak Zrobić żeby marker nie łapał na wysokość
Siema mam problem wraz z kumplami robimy serwer ale mamy jeden problem bo nw jak zrobi? ?eby marker nie ?apa? nas na wysoko?? jak np.
Lecimy maverem i przelatujemy nad markerem systemu paliwa to ?eby nie ?apa? nas z wysoko?ci.Da si? co? takiego zrobic?
Daje :arrow: :piwo: Za Pomocne odpowiedzi.
24. [DM] Jak zrobić żeby level i exp był nad graczem 3d.
Witam mam problem chce ?eby nad graczem pisa?o tak:
Poziom: (level)
Exp: Respekt/IleDoNextlevela
Noi pr?bowa?em co? takiego:
Kod:


if(logged[playerid]){
Update3DTextLabelText(PlayerLabel[playerid],COLOR_GREY,"|Poziom %d|",GetPlayerLevel(playerid));
return 1;
}

Taki warning:
(3102) : warning 202: number of arguments does not match definition
Linijka 3102:
Update3DTextLabelText(PlayerLabel[playerid],COLOR_GREY,"|Poziom %d|",GetPlayerLevel(playerid));

Prosz? o pomoc.
Level: GetPlayerLevel(playerid);
Respekt: Respekt[playerid];
Respekt do next levela: GetPlayerNextExp(playerid);
25. [INNE] Jak zrobic żeby obiekty dodane np. droga i itp były w
Cze?c mam problem, czy zna kto? funkcje na to ?eby obiekty np budynki czy droga dodana na mapie by?a widoczna na radar ? Tylko niech nikt mi nie m?wi ze sie nie da bo wiem ?e da bo widzia?em na jednym serwerze :)
26. [INNE] Jak zrobić komende, żeby dać komuś miniguna?
Jak zrobi? komende, ?eby da? komu? miniguna? Tylko dla admina i zrobi? tak : /minigun-g (id). Dam piwka!
27. [DM] Jak zmienić /cheats żeby działało
Witam kompletnie nie znam si? na pawno, wi?c prosz? o pomoc.
Pobra?em skrypt na /cheats jednak po wgraniu go do mapki itp. po wpisaniu /cheats otwiera si? normalnie menu w GUI (poprawnie) ale po klikni?ciu w dan? opcj? pokazuje mi logowanie na konto.
Prosz? o pomoc, co zmieni? ?eby dzia?a?o na pewno mi, oto kod:
[code]
#include <a_samp>
new Opcja[250];

forward OdblokujSkok(p);
public OdblokujSkok(p)
{
Opcja[p]=11;
return 1;
}

public OnFilterScriptInit()
{
print("n");
print("* Player Cheats by Pr0f3ssi0n4LisT loaded...n");
return 1;
}

public OnPlayerConnect(playerid)
{
Opcja[playerid]=0;
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
Opcja[playerid]=0;
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/cheats", true)) {
new listitems[] = "1tPodskakiwanien2tTurbon3tStopniowe zwalnianien4tNatychmiastowy stopn5tObrot o 180 stopnin6tObrot o 90 stopnin7tZmiana koloru pojazdun8tSpeed tylko w przodn9tSpeed tylko w tyln10tAuto Flipn11tMega Jumpn12tWylacz czity";
ShowPlayerDialog(playerid,7,DIALOG_STYLE_LIST,"Dostepne Opcje:",listitems,"Wybierz","Anuluj");
return 1;
}
return 0;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if((newkeys & 2) && (Opcja[playerid] > 0 && Opcja[playerid] <= 10) && (!GetPlayerVehicleSeat(playerid))) {
switch(Opcja...