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: frakcyjne.
1. Wypłaty frakcyjne.
Witam umia?by kto? tak przerobi? skrypt, aby wyp?ata z frakcji zamiast i?? na konto do nas, aby sz?a na konto bankowe.

Baza danych: pystories

Skrypt:

[lua]local Frakcje = { ----- ILOSC PLNOW ZA 1 PRZEPRACOWANA MINUTE!!!!!!!!!!!!!!!!!!
["SAPD"] = 250000,
["SARA"] = 250000,
["CZF"] = 750000,
["SAMD"] = 250000,
}

local text=createElement('text')
setElementPosition(text,709.15,-117.29,4545.40+1.2)
setElementData(text,"name","Odbi?r Wyp?aty")

function RGBToHex(red, green, blue, alpha)
if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then
return nil
end
if(alpha) then
return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha)
else
return string.format("#%.2X%.2X%.2X", red,green,blue)
end
end

function odbierz(el,md)
local sid = getElementData(el,"player:sid")
local result=exports["pystories-db"]:dbGet("SELECT * FROM pystories_factions WHERE sid=?", sid)
if #result > 0 then
if Frakcje[result[1].code] then
if getElementData(el,"player:workinjob") and getElementData(el,"player:workinjob") >= 1 then
local money = (Frakcje[result[1].code] * getElementData(el,"player:workinjob"))
local czas = getElementData(el,"player:workinjob")
setElementData(el,"playe...
2. [INNE] Pojazdy frakcyjne.
Witam. Mam kod na pojazdy frakcyjne, ale "frakcja == 1" blokuje dost?p policji do radiowozu, a innymi sposobami, kt?rymi pr?bowa?em blokowa?o dost?p do wszystkich aut. Prosz? o pomoc. Oto kod:

Kod:


public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger)
{
new frakcja = gGracz[playerid][Frakcja];
if(Toradiowoz(vehicleid) && frakcja == 1 && !ispassenger)
{
ClearAnimations(playerid);
SendClientMessage(playerid, -1, "Nie masz kluczyk?w do tego pojazdu!");
}
return 1;
}