Jump to content

stefutz101

Members
  • Posts

    245
  • Joined

  • Last visited

Everything posted by stefutz101

  1. -- By default, the server will block the use of locally customized gta3.img player skins. This setting can be used to allow such mods. Not recommended for competitive servers. Values: none or peds ; default value: none --> none With what value i must replace "none" and when a player is trying to connect on server and if his img3 is modify he will get kick ? Sorry for my english . Thanks in advance
  2. Sorry . Now i saw your first comment . And yah it works , except function is called guiSetVisible , not guiSetVisile. Thanks man
  3. I'm trying to make a bind like this : if tab button it's pressed it display scoreboard , if not , scoreboard is hide. @ 1LOL1 ok thanks function toggle( player, key, keyState ) if ( keyState == "down" ) then showCursor(true) guiSetVisible(window,true) else showCursor(false) guiSetVisible(window,false) end end bindKey("tab","down",toggle)
  4. Ok , ty fixed. I'm trying to make a bind on tab key . Something like : function bindtab() if getKeyState("tab")==true then setGuiVisible(window,true) else setGuiVisible(window,false) end end But it dosen't work any ideas ? Thanks.
  5. Yes thanks . I'm wasn't sure if that will work. Thanks a lot .
  6. if type(x)=="boolean" then return end This can work ?
  7. Hi again . I have a problem. if newbieShow == false then return end local x,y,z = getElementPosition(newbiePosition) local x,y = getScreenFromWorldPosition (x,y,z) local length = dxGetTextWidth(newbieText,1,"default-bold") --dxDrawRectangle ( x-length/2-screenWidth*0.01,y, screenWidth*0.02+length, screenHeight*0.1, tocolor (109,163,61,100) ) dxDrawingColorText(newbieHead,x-length/2-screenWidth*0.01,y, x+length/2+screenWidth*0.01, y+screenHeight*0.03, tocolor(22,255,22,120),0.5, 1.1, "default-bold", "center", "center") dxDrawingColorText(newbieText,x-length/2-screenWidth*0.01,y+screenHeight*0.03, x+length/2+screenWidth*0.01, y+screenHeight*0.07, tocolor(255,255,255,120),0.5, 1, "default-bold", "center", "center") dxDrawingColorText(newbieHead,x-length/2-screenWidth*0.01,y, x+length/2+screenWidth*0.01, y+screenHeight*0.03, tocolor(22,255,22,120),0.5, 1.1, "default-bold", "center", "center") Attempt to perform arithmetic on local x a boolean value. So i guess that x isn't a number ? How i can test if that x and y returned from getScreenFromWorldPosition (x,y,z) are numbers ? That's the problem . Btw this is a part from script. Thanks in advance!
  8. Hi . I wanna make a scoreboard but i have a problem . I created row and colums but they don't look really good. How i can fix that ? Client-side function scoreBoard () if getKeyState( "tab" ) == false then return end if getElementData(getLocalPlayer(),"logedin") then window = guiCreateWindow(336, 131, 640, 495, "[RedFear]Top-DayZ International/Romanian", false) guiWindowSetSizable(window, false) playerList = guiCreateGridList(9, 26, 640, 495, false, window) guiGridListAddColumn(playerList, "#", 0.1) guiGridListAddColumn(playerList, "Name", 0.1) guiGridListAddColumn(playerList, "Murders", 0.1) guiGridListAddColumn(playerList, "Zombie killed", 0.1) guiGridListAddColumn(playerList, "Alivetime", 0.1) guiGridListAddColumn(playerList, "FPS", 0.1) guiGridListAddColumn(playerList, "Ping", 0.1) guiGridListAddRow(playerList) for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, id, 1, id, false, false ) guiGridListSetItemText ( playerList, id, 2, getPlayerName ( player ), false, false ) guiGridListSetItemText ( playerList, id, 3, getElementData(player,"murders")or 0, false, false ) guiGridListSetItemText ( playerList, id, 4, getElementData(player,"zombieskilled")or 0, false, false ) guiGridListSetItemText ( playerList, id, 5, formatTimeFromMinutes(getElementData(player,"alivetime") or 1), false, false ) guiGridListSetItemText ( playerList, id, 6, getElementData(player,"FPS"), false, false ) guiGridListSetItemText ( playerList, id, 7, getPlayerPing(player), false, false ) end end end addEventHandler ( "onClientRender", getRootElement(), scoreBoard )
  9. --spawnDayZVehicles() function spawnVehiclePack(ps, cmd) if getElementData(ps, "Admin") then spawnDayZVehicles() outputChatBox("[MTD] Masinas tika nospawnotas.", ps, 255, 0, 0, true) end end addCommandHandler("sveh", spawnVehiclePack) function destroyVehiclePack(ps, cmd) if getElementData(ps, "Admin") then vehicles = getElementsByType("vehicle") for i,v in ipairs(vehicles) do local col = getElementData(v, "parent") destroyElement(col) destroyElement(v) end end end addCommandHandler("rveh", destroyVehiclePack) function notifyAboutExplosion() local col = getElementData(source,"parent") local x1,y1,z1 = getElementPosition(source) id,x,y,z = getElementData(col,"spawn")[1],getElementData(col,"spawn")[2],getElementData(col,"spawn")[3],getElementData(col,"spawn")[4] setTimer(respawnDayZVehicle,1800000,1,id,x,y,z,source,col,getElementData(col,"MAX_Slots")) setElementData(col,"deadVehicle",true) setElementData(source,"isExploded",true) createExplosion (x1+4,y1+1,z1,4) createExplosion (x1+2,y1-4,z1,4) createExplosion (x1-1,y1+5,z1,4) createExplosion (x1-4,y1,z1-2,4) end addEventHandler("onVehicleExplode", getRootElement(), notifyAboutExplosion) function respawnVehiclesInWater (vehiclesInWater) for i,veh in ipairs(vehiclesInWater) do if getElementModel(veh) == 473 then break end local col = getElementData(veh,"parent") id,x,y,z = getElementData(col,"spawn")[1],getElementData(col,"spawn")[2],getElementData(col,"spawn")[3],getElementData(col,"spawn")[4] respawnDayZVehicle(id,x,y,z,veh,col,getElementData(col,"MAX_Slots")) end end addEvent("respawnVehiclesInWater",true) addEventHandler("respawnVehiclesInWater",getRootElement(),respawnVehiclesInWater) function checkVehicleInWater () local randomPlayer = getRandomPlayer() triggerClientEvent("checkVehicleInWaterClient",randomPlayer) end setTimer(checkVehicleInWater,1800000,0) --1800000 function respawnDayZVehicle(id,x,y,z,veh,col,max_slots) if id == 497 then local item_id = math.random(table.size(hunterSpawns)) x,y,z = hunterSpawns[item_id][1],hunterSpawns[item_id][2],hunterSpawns[item_id][3] end if id == 487 then local item_id = math.random(table.size(maverikSpawns)) x,y,z = maverikSpawns[item_id][1],maverikSpawns[item_id][2],maverikSpawns[item_id][3] end destroyElement(veh) destroyElement(col) veh = createVehicle(id,x,y,z+1) vehCol = createColSphere(x,y,z,4) attachElements ( vehCol, veh, 0, 0, 0 ) setElementData(vehCol,"parent",veh) setElementData(veh,"parent",vehCol) setElementData(vehCol,"vehicle",true) setElementData(vehCol,"MAX_Slots",max_slots) --Engine + Tires local tires,engine = getVehicleAddonInfos (getElementModel(veh)) setElementData(vehCol,"Tire_inVehicle",math.random(0,tires)) setElementData(vehCol,"Engine_inVehicle",math.random(0,engine)) --vehicle_indentifikation setElementData(vehCol,"spawn",{id,x,y,z}) --others setElementData(vehCol,"fuel",10) if id == 433 then for i,items in ipairs(lootItems["helicrashsides"]) do local randomNumber = math.random(1,10) if randomNumber == 5 then setElementData(vehCol,items[1],math.random(1,2)) end end elseif id == 470 then for i,items in ipairs(lootItems["helicrashsides"]) do local randomNumber = math.random(1,10) if randomNumber == 5 then setElementData(vehCol,items[1],math.random(1,2)) end end end end Btw this is your code but i just put into a lua tag. Try /add admin , after that try /svp . Open debugscript 3 and post the result .
  10. Solved. Thanks everyone for all ideas.
  11. So how can i fix that ? I guess that files remove world objects . If i will remove that files world objects will appear back , i guess.
  12. I will open all resources and i will try find that event ( ctrl+f ) . And i will post the result. Thanks PS: When i create a new base i always delete that files .
  13. It appear at other players . I don't know exactly . I guess this error came from group system. But i'm not sure.
  14. Hi. I have a Mta Dayz server and i have this error in gamemode : "Error: Client (x) triggered serverside event requestLODsClient , but event is not added serverside." So i know how to fix this but how i can find from what resource this error came ?Or how i can find in what file that event is called ?
  15. stefutz101

    Help

    I fixed it . Thanks for help
  16. stefutz101

    Help

    I found something . I works but it works only if player kill me with knife ... WTF
  17. stefutz101

    Help

    No . This isn't full script . But i create a new resource with a server-side function . function player_Wasted(_, attacker) outputDebugString("true:1") if isElement(attacker) then outputDebugString("true:2") if getElementType(attacker) == "player" then outputDebugString("true:3") outputChatBox(getPlayerName(attacker).. " killed " ..getPlayerName(source),getRootElement(),255,255,255) end end end addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted ) Still don't working . I dont have new weapons ... i have m4 , ak etc same id but guns are added in a DayZ gamemode . This is the problem ?
  18. stefutz101

    Help

    Hackshiled-system .
  19. stefutz101

    Help

    function player_Wasted(_, attacker) outputDebugString("true:1") if attacker then outputDebugString("true:2") if getElementType(attacker) == "player" then outputDebugString("true:3") outputChatBox(getPlayerName(attacker).. " killed " ..getPlayerName(source),getRootElement(),255,255,255) end end end addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted ) it display only "true : 1 " . If script worked must display "test:1" , "test:2" , "test:3" . So script stop working at if attacker then
  20. stefutz101

    Help

    boolean . Warning . Didn't working ... . And i'm was killed by another player .
  21. stefutz101

    Help

    In debugscript display only true:1 So problem is from if attacker then
  22. stefutz101

    Help

    I know ... . Nope no errors or warnings ... nothing.
  23. stefutz101

    Help

    I just put a player from server to kill me . Nope i don't suicide with a function , or command . And yah i meta.xml is fine.
  24. stefutz101

    Help

    I put another player to kill me . Yes ,it is server side /
  25. stefutz101

    Help

    Still nothing happen No warns or errors
×
×
  • Create New...