Tematy otagowane jako: samd
1. [SKRYPT ] Ranni NPC dla SAMD
Cześć, oddaje wam zasób na losowych poszkodowanych dla frakcji SAMD. Leczenie pod komendą /ulecz.poszkodowanego
Fajna sprawa mając na uwadze fakt, że SAMD to jedyna frakcja, która najmniej robi na serwerach
Zawsze dodatkowa robota
Autor zasobu: JavvaN
https://imgur.com/a/ZLbUunh
Ukryta wiadomość / Hidden message(aby ją zobaczyć musisz postawić użytkownikowi) Wiadomość została ukryta, aby ją przeczytać należy się zalogować.
2. samd
addCommandHandler( "podnies" ,function( plr , cmd , cel )
if getElementData ( plr , "player:faction" ) == "SAMC" then
if not cel then outputChatBox ( "/podnies <ID>" , plr , 255 , 255 , 255 , true ) return end
local target = exports [ "pystories-core" ]: findPlayer ( plr , cel )
if not target then outputChatBox ( "/podnies <ID>" , plr , 255 , 255 , 255 , true ) return end
outputChatBox ( "Podnoszenie" , plr , 255 , 255 , 255 , true )
setTimer (function()
outputChatBox ( "Podniesiono gracza " .. getPlayerName ( target ): gsub ( "#%x%x%x%x%x%x" , "" ), plr , 255 , 255 , 255 , true )
triggerServerEvent ( "bw.end" , resourceRoot )
end , 2000 , 1 )
else
return
end
end )
taka komende napisalem na podnoszenie przez medyka lecz trigger nie dziala i nie podnosi gracza..
wyskakuje ze trigger nil value
event:
addEvent( "bw.end" , true );
addEventHandler ( "bw.end" , resourceRoot ,function()
local x , y , z = getElementPosition ( client );
local dim , int , skin = getElementDimension ( client ), getElementInterior ( client ), getElementModel ( client );
setElementData ( client , "player:bw" , false )
spawnPlayer ( client , x , y , z , 0 , skin , int , dim );
setElementHealth ( client , 45 );
setPlayerHudComponentVisible ( client , "radar" , true )
end );