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...
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]
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...
[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)
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(...
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
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? ?
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
[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...
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.
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...
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:
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?.
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 Za Pomocne odpowiedzi.
Witam mam problem chce ?eby nad graczem pisa?o tak:
Poziom: (level)
Exp: Respekt/IleDoNextlevela
Noi pr?bowa?em co? takiego:
Prosz? o pomoc.
Level: GetPlayerLevel(playerid);
Respekt: Respekt[playerid];
Respekt do next levela: GetPlayerNextExp(playerid);
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
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...