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: jedną
1. Licznik widziany tylko przez jedną osobe
Witam, jak zrobi? aby licznik by? widziany przez kierowc? i pasa?er?w pojazdu?
Aktualnie jest widziany tylko przez kierowc?.
Pozdrawiam!

c.lua

[lua]local x, y = guiGetScreenSize()

show_speed = false

local smothedRotation = 0

local indikator_1 = "images/1.png"
local indikator_2 = "images/2.png"
local indikator_3 = "images/3.png"
local indikator_4 = "images/4.png"
local indikator_5 = "images/5.png"
local indikator_6 = "images/6.png"
local indikator_7 = "images/7.png"
local indikator_8 = "images/8.png"

alpha = 255

function fons ()
if show_speed == false then

local veh = getPedOccupiedVehicle(getLocalPlayer())
if not veh or getVehicleOccupant ( veh ) ~= localPlayer then return true end
if not driveDistance then lastTick = getTickCount() driveDistance = getElementData ( veh, "driveDistance" ) or 0 end

local vehs = getElementSpeed(getPedOccupiedVehicle(getLocalPlayer()), "kmh")
local fuel = getElementData(getPedOccupiedVehicle ( localPlayer ), "vehicle:fuel" ) or 0

local rot = math.floor(((270/9800)* getVehicleRPM(getPedOccupiedVehicle(getLocalPlayer()))) + 0.5)

local actualspeed = getElementSpeed (veh, 1)
local kmh = math.floor(actualspeed)

local num = getElementData(veh,"vehicle:mileage") or 0
local mileage = ""..math.floor(num)
repeat mileage = "0"..mileage until #...
2. Więcej skinów na jedną broń
Witam, mam pytanie czy da si? na?o?y? np. 2 skiny na m4, za???my ?e team1 ma skin zielonego m4, a team2 niebieskiego m4. Dok?adnie chodzi oto ?e chce mie? 2 skiny na m4.
3. [INNE] Serwer wpuszcza tylko jedną osobę.
Witam, posiadam problem z serwerem, mianowicie na serwerze mo?e przebywa? tylko jedna osoba.
Ka?dej kolejnej kt?ra wejdzie nie wy?wietla si? okno logowania i nie ma ?adnych funkcji gamemoda, dodatkowo po wej?ciu na serwer tej "drugiej" osoby w logach zostaj? b??dy.

[code][16:40:06] [join] John_Smith has joined the server (1:89.72.25.147)
[16:40:06] [debug] Run time error 4: "Array index out of bounds"
[16:40:06] [debug] Accessing element at index 1 past array upper bound 0
[16:40:06] [debug] AMX backtrace:
[16:40:06] [debug] #0 0000f144 in public SSCANF_OnPlayerConnect (0x00000001) from rp.amx
[16:40:06] [debug] #1 native CallLocalFunction () [080dbf60] from samp03svr
[16:40:06] [debug] #2 00000600 in public OnPlayerConnect (0x00000001) from rp.amx
[16:40:06] [debug] Run time error 4: "Array index out of bounds"
[16:40:06] [debug] Accessing element at index 1 past array upper bound 0
[16:40:06] [debug] AMX backtrace:
[16:40:06] [debug] #0 0002cf5c in public OnPlayerRequestClass (0x00000001, 0x00000000) from rp.amx
[16:40:11] [debug] Run time error 4: "Array index out of bounds"
[16:40:11] [debug] Accessing element at index 1 past array upper bound 0
[16:40:11] [debug] AMX backtrace:
[16:40:11] [debug] #0 0002cf5c in public OnPlayerRequestClass (0x00000001, 0x00000000) from rp.amx
[16:40:11] [debug] Run time error 4: "Array index out of bounds"
[16:40:11] [debug] Accessing element at index 1 past array u...
4. [INNE] Jak zrobić jedną cmd na dwie zmienne
Witam zrobi?em cmd na dwie rangi jej g?ra wygl?da tak:

if(strcmp(cmd, "/veh", true) == 0 && Ranga[playerid] == 10 && Ranga[playerid] == 9){

i ona niestety nie dzia?a jak powinna wygl?da? ona?:


if(strcmp(cmd, "/veh", true) == 0 && Ranga[playerid] == 10){

tak dzia?a

if(strcmp(cmd, "/veh", true) == 0){

tak te? dzia?a


z g?ry dzi?kuje za pomoc
5. [GF] Brama na jedną komende
Mam co? takiego

Kod:

new brama, szlaban;


OnGameModeInit
Kod:

new bool:brama, szlaban = CreateDynamicObject(968,-222.2400055,1007.5900269,19.3999996,0.0000000,0.0000000,0.0000000);


Koniec mapy:
Kod:

CMD:szlaban(playerid, cmdtext[])
{
if(!ToFrakcja(playerid,PlayerInfo[playerid][pFrakcja]) || FrakcjaInfo[PlayerInfo[playerid][pFrakcja]][fTyp]!=1) return true;
if(!DoInRange(3.0,playerid,-222.2400055,1007.5900269,19.3999996)) return GuiInfo(playerid,"Nie jeste? ko?o szlabanu!"), true;

if(brama)
{
MoveDynamicObject(szlaban,-222.2400055,1007.5900269,19.3999996,0.0000000,90.0000000,0.0000000);
brama = false;
}
else
{
MoveDynamicObject(szlaban,-222.2400055,1007.5900269,19.3999996,0.0000000,0.0000000,0.0000000);
brama = true;
}
return true;
}

I szlaban nie dzia?a, pokazuje jak stoje za daleko ?e nie jestem ko?o szlabanu, jak podchodze to si? nei otwiera.