| Tematy otagowane jako: druga |
| 1. Druga sprawa R1 |
Chodzi o to zeby mozna by?o j? po?ozyc na ziemie ?
kod:[lua]
function weztorba (plr)
local login = getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup("user."..login,aclGetGroup("Pogotowie", plr)) then
local auto = getPedOccupiedVehicle(plr)
if isPedInVehicle(plr) then
if (getElementModel(auto) == 489) or (getElementModel(auto) == 407) or (getElementModel(auto) == 416) then
local torba = createObject(1210, 0, 0, 0, 0, 0, 0)
setElementData ( plr, "torba", torba)
exports.bone_attach:attachElementToBone(torba,plr,12,0,0.1,0.3,0,180,0)
outputChatBox("** Bierzesz torb? medyczn?", plr)
outputChatBox("** "..login.." wyci?ga torb? medyczn? z pojazdu", root)
end
end
end
end
addCommandHandler("torba", weztorba)
-------------------------------------------------
function odloztorbe(plr)
local login = getAccountName(getPlayerAccount(plr))
if isObjectInACLGroup("user."..login,aclGetGroup("Straz", plr)) then
local auto = getPedOccupiedVehicle(plr)
if isPedInVehicle(plr) then
if (getElementModel(auto) == 407) or (getElementModel(auto) == 489) or (getElementModel(auto) == 416) then
local torba = getElementData ( plr, "torba")
destroyElement(torba)
outputChatBox("** Chowasz torb? medyczn?", plr)
outputChatBox("** "..login.." chowa torb? medyczn? do pojazdu", root)
end
end
end
end
addCommandHandler("odloztorbe", od... |
| 2. Map editor, druga sprawa |
| Witam, nie dawno pyta?em si? jak zrobi? ?eby przedmioty usuni?te w map editorze by?y usuni? te? na serwerze. Dowiedzia?em si? ?eby wgra? wszystko, ale jak mam to wgra?? Jako skrypt ? |
|