| Tematy otagowane jako: wstawic |
| 1. jak wstawic w kod skale? |
Witam jak mam wstawi? skalowanie z guieditora zamiast skali??
Kod skali:
[quote] dxDrawRectangle((sX * pos) - ((v.width + padding) * pos) - currentScreenOffset, yOffset+yO2, tiledWidth + padding, height, tocolor(0,0, 0, v.alpha * 0.6), true)
dxDrawText(v.text, (sX * pos) - ((v.width + padding) * pos)- currentScreenOffset+35, yOffset+yO2*2, (sX * pos) - ((v.width + padding) * pos) - currentScreenOffset + (tiledWidth + padding), yOffset + height, tocolor(r, g, b, v.alpha), 1, dxfont0_bold, "center", "center", true, false, true, true)
--dxDrawText("X", (sX * pos) - ((v.width + padding) * pos)- currentScreenOffset+10, yOffset, (sX * pos) - ((v.width + padding) * pos) - currentScreenOffset + (tiledWidth + padding), yOffset + height, tocolor(r, g, b, v.alpha), 1, dxfont0_bold, "left", "center", true, false, true, true)
dxDrawImage((sX * pos) - ((v.width + padding) * pos) - currentScreenOffset+5, yOffset+1.7+yO2+(additional/2), 26, 26, textures[v.type],0,0,0,tocolor(255,255,255,v.alpha), true)
yOffset = yOffset + height
--end[/quote]
jak wstawi? to wyskalowane w guieditorze zamiast skali
to sobie wyskalowalem:
local screenW, screenH = guiGetScreenSize()
addEventHandler("onClientRender", root,
function()
dxDrawImage(screenW * 0.8319, screenH * 0.3222, screenW * 0.0292, screenH * 0.0389, ":guieditor/images/x.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
end... |
| 2. gdzie i jaką linijke wstawic do spawnu? |
witaj mam problem chce wstawic linike kodu nie wiem jak? i nie wiem gdzie
dok?adnie chce wstawic linijke tak? ktora bedzie odpowiadac za to
?e gdy umre lub ktos nowy wbije na serwa dostnie spadochron odrazu na plecach
wzamian leci zimne
kod:
[lua] localspawnPositions = {
{-278.6669921875,-2882.1572265625,32.104232788086},
{-958.5595703125,-2887.9912109375,64.82421875},
{-1816.9375,-2748.18359375,1.7327127456665},
{-2816.166015625,-2439.0546875,2.4004096984863},
{-2941.5673828125,-1206.2373046875,2.7848854064941},
{-2911.51171875,-895.22265625,2.4013109207153},
{-2185.6669921875,2957.380859375,11.474840164185},
{272.2265625,2928.505859375,1.3713493347168},
{2803.943359375,595.9365234375,7.7612648010254},
{2883.7509765625,-178.4658203125,3.2714653015137},
{-233.46484375,-1735.8173828125,1.5520644187927},
{-1056.8720703125,2939.068359375,42.311294555664},
}
local playerDataTable = {
{"alivetime"},
{"Parachute"},
{"skin"},
{"MAX_Slots"},
{"bandit"},
{"blood"},
{"food"},
{"thirst"},
{"temperature"},
{"currentweapon_1"},
{"currentweapon_2"},
{"currentweapon_3"},
{"bleeding"},
{"brokenbone"},
{"pain"},
{"cold"},
{"infection"},
{"humanity"},
{"zombieskilled"},
{"headshots"},
{"murders"},
{"banditskilled"},
{"... |
|