Witam, nie wiem dlaczego na SERWERZE na komputerze "LAN" nie dzia?aj? mi oto te kody:
[code]setTimer(function()
if not isPedDead(localPlayer) then
local hp=getElementHealth(localPlayer)
setElementHealth(localPlayer, hp-10<0 and 0 or hp-10)
end
end, 10000, 0) [/code]
[code]policeVehicles = { 598,596,597,599,523,522,490,528,497}
policeSkins= {280,281,282,283,284,285,286}
function enterVehicle ( player, seat, jacked )
if getElementModel(source)==policeVehicles then
if getElementModel(player)==policeSkins then
outputChatBox("Jeste? policjantem, wi?c mo?esz wchodzi?", player)
else
outputChatBox ( "Tylko policjant mo?e wsiada? do tego pojazdu!", player )
end
end
end
addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle )[/code]
[code]<map edf:definitions="editor_main">
<object id="pd_close" doublesided="false" model="980" interior="0" dimension="0" posX="-1531.69921875" posY="492.099609375" posZ="9" rotX="0" rotY="0" rotZ="357.98950195313"></object>
<object id="pd_open" doublesided="false" model="980" interior="0" dimension="0" posX="-1531.6999511719" posY="492.10000610352" posZ="3.2999999523163" rotX="0" rotY="0" rotZ="357.994995... |