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: smierci
1. skin po smierci sie nie wczytuje
Uzywam paczki nitrorpg, i skrypt od respienia po smierci, wywala mi taki blad w trakcie gdy juz jestem po BW i wstaje na nogi, skin zmienia sie na skina 0 ( cj)
[lua]local strefa = createColRectangle( 1959.3610839844, -1826.8842773438, 1035.3498535156, 2300.19055175781)
local skillstable = { 69, 70, 71, 72, 73, 74, 76, 77, 78, 79 }
local weaponstable = { 24, 25, 30, 31, 28}

addEventHandler("onColShapeHit", strefa, function(el)
if getElementType(el) == "player" then
reloadDMInfo(el)
toggleControl(el, "fire", true)
toggleControl(el, "aim_weapon", true)
setElementData(el, "player:strefaDM", true)
exports.nrpg_interface:showPlayerNotification(el, 'Wchodzisz do strefy bezprawia', 'info', 15000)


local saveSkin = getElementModel(el)
if saveSkin == 49 then
setElementData(el, "dmSaveSkin", saveSkin)
end

if not getElementData(el, "player:faction") then
for _, stat in ipairs(skillstable) do
setPedStat(el, stat, 1000)
end

for _, weapon in ipairs(weaponstable) do
giveWeapon(el, weapon, 9999)

if weapon == 24 then
giveWeapon(el, 24, 9999, true)
end
end
end
end
end)

addEventHandler("onColShapeLeave", strefa, function(el)
if getEle...
2. automatyczne respienie sie po smierci
Witam, wie ktos jak zrobic, aby gracz gin?c nie musia? wpisywac reconnecta tylko by dostawa? bw na np 2 minuty i respi? sie w tym samym miejscu?
3. Zachowanie skina po smierci
Jak zrobic zeby gracz zachowywa? skina po ?mierci?













Daje :piwo:
4. Skrypt na zrespienie peda w chwili smierci
Skrypt ma polega? na tym, ?e w chwili ?mierci gracza, respi ped'a na jego pozycji i daje mu animacj? jedank wyskakuj? b??dy.

function gp (plrped)
local x,y,getElementPosition(plr)
local skin getElementModel(plr)
ped createPed (skin,x,y,z)
setPedAnimation(ped"CRACK""crckidle4")
setElementFrozen(pedtrue)
setTimer (up200001ped)
end

addEventHandler 
("onPlayerWasted",getRootElement(), gp)

function 
up (ped)
destroyElement(ped)
setElementFrozen(pedfalse)
end


ERRORY:
Cytat:

[2016-07-18 16] WARNING: peddeadserver.lua:2: Bad argument @ 'getElementPosition' [Expected element at argument 1, got number '1']
[2016-07-18 16] WARNING: peddeadserver.lua:3: Bad argument @ 'getElementModel' [Expected element at argument 1, got number '1']
[2016-07-18 16] WARNING: peddeadserver.lua:4: Bad argument @ 'createPed' [Expected number at argument 1, got boolean]
[2016-07-18 16] WARNING: peddeadserver.lua:5: Bad argument @ 'setPedAnimation' [Expected element at argument 1, got boolean]
[2016-07-18 16] WARNING: peddeadserver.lua:6: Bad argument @ 'setElementFrozen' [Expected element at argument 1, got boolean]
[2016-07-18 16] WARNING: peddeadserver.lua:13: Bad argument @ 'destroyElement' [Expected element at argument 1, got boolean]
[2016-07-18 16] WARNING: peddeadserver.lua:14: Bad argument @ 'setElementFrozen' [Expected element at argument 1, got boolean]


Stawiam piwka za pomoc
5. Zachowanie skina po smierci
Witam, ot?? staram si? od paru godzin ogarn?? skrypt na zachowanie skina po ?mierci lecz to nie dzia?a:


addEventHandler
("onPlayerWasted"root, function()
setTimer(spawn18001source)
model getElementModel(source)
setElementModel(source,model)
end)



B?dzie :piwo: i R*
6. Animacja smierci
Jak zrobic zeby po zabiciu by?a animacja jak le?e.
Zeby nie przenosi?o na spawn tylko zeby trzeba by?o by wezwac pogotowie i dany gracz z odpowiednia frakcj? wyleczy?.

Prosze o jak najszybsz? odpowiedz.
[TRE?? USUNI?TA]

[ Komentarz dodany przez: Iggy: 2015-11-18, 18:36 ]
Je?eli szukasz ekipy do serwera to napisz w dziale GIE?DA.
7. Gracz po smierci nadal w teamie.
Witam, chcia?bym ?eby gracz po ?mierci nadal by? w teamie. Da?o by zrobi? takie co?? Prosz? o odpowiedz. Za pomoc leci :piwo:
8. [DM] Spawn po smierci
jak u?o?y? kod ?eby po smierci na arenie OneDe dalej spawnowalo graczy na arenie. bo tak to teleportowalo graczy po smierci dalej na spawny ustwione w mapie.

kod :

Kod:

new Float:OneDe[9][9] = {
{-782.8975,490.4512,1376.1875},
{-791.9999,508.4660,1371.7421},
{-778.7719,496.6818,1368.5303},
{-789.6494,510.5311,1367.3671},
{-789.6494,510.5311,1367.3671},
{-800.3000,507.4550,1361.6922},
{-842.1307,487.7278,1357.9915},
{-834.8280,527.5088,1357.1085},
{-783.2510,496.8204,1371.7421}
};


mialem zrobione tak ale i tak nie dzia?a ;/

Kod:

if(BlockCmd[playerid])
{
SetPlayerVirtualWorld(playerid, 1);
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid, 15);
SetPlayerInterior(playerid,1);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 1000);
BlockCmd[playerid] = 0;
}
return 1;
}


Prosze o pomoc.
9. [DM] Arena /exit, respawn na niej po smierci
Siema.

Zrobilem komende na wyjscie z areny na ktorej jest blok cmd. I chce zrobic tak aby poza arena jak wklepie ta cmd wyskoczyl mi napis ze nie jestem na arenie.

Tu jest cmd
Kod:

if(BlockCmd[playerid] == 1 & strcmp(cmdtext, "/exit", true))
return SendClientMessage(playerid, COLOR_RED, "Nie mo?esz u?ywa? teraz komend. Wpisz /underexit aby wyj??.");


Teraz 2 problem to jak zrobic cos takiego zeby spawnowalo mnie po smierci na tej arenie. Mam cos takiego w onplayerspawn ale to nie dziala. Arena jest w skrypcie i nie bedzie nigdy w mapie.

Kod:

if(OnArenaFight[playerid] == 1)
{
SetPlayerInterior(playerid, 0);
ResetPlayerWeapons(playerid);
new rand = random(sizeof(FightArena));
SetPlayerPos(playerid, FightArena[rand][0], FightArena[rand][1], FightArena[rand][2]);
return 1;
}
10. [SKRYPT] spawn po smierci
Cytat:

function spawnWasted(player)
repeat until spawnPlayer ( player, -2655.02, 625.30, 14.45, 180, math.random(19,30) )
fadeCamera(player, true)
setCameraTarget(player, player)
setPlayerTeam (player, nil)
takePlayerMoney ( player, 25 )
end

addEventHandler("onPlayerLogin", root,
function()
spawn(source)
end
)

addEventHandler("onPlayerWasted", root,
function()
setTimer(spawnWasted, 5000, 1, source)
end
)


Skrypt ze po zabiciu zostaniesz zrespamowany po 5 sekundach i zabiera ci 25$
( respamuje w szpitalu sf )