Jump to content

Padul

Members
  • Posts

    35
  • Joined

  • Last visited

Details

  • Gang
    Happy Turtles

Padul's Achievements

Rat

Rat (9/54)

0

Reputation

  1. Padul

    playSound3D

    if i do trigger server then client event it will be still the same rootElement so it will be working only for me
  2. Padul

    playSound3D

    addEventHandler("onClientKey",root,function(button,pressed) if isPlayerInVehicle(localPlayer) then local veh=getPlayerOccupiedVehicle (localPlayer) local x,y,z = getElementPosition(veh) if button=="8" and pressed==true then triggerEvent("wlaczPoganiacz",root,veh,x,y,z) elseif button=="8" and pressed==false then triggerEvent("wylaczPoganiacz",root,veh) end end end) addEvent("wlaczPoganiacz",true) addEventHandler("wlaczPoganiacz",getResourceRootElement(getThisResource()),function(veh,x,y,z) poganiacz=playSound3D("zyla.ogg",x,y,z,true) attachElements(poganiacz,veh) end) addEvent("wylaczPoganiacz",true) addEventHandler("wylaczPoganiacz",getResourceRootElement(getThisResource()),function(veh) destroyElement(poganiacz) end) how can i make it play for all player on server? not just me
  3. do you have any idea how to change wheels size on car?
  4. i have finaly done that local syrena={} if signal=="slow" then syrena[veh]=playSound3D("shrtvaw.ogg",x,y,z,true) attachElements(syrena[veh],veh) elseif signal=="fast" then destroyElement(syrena[veh]) syrena[veh]=playSound3D("lngvaw.ogg",x,y,z,true) attachElements(syrena[veh],veh) else destroyElement(syrena[veh]) end
  5. now it does not appear in the debugscript but the element still is not destroyed
  6. if clientSyrenaState == 1 then syrena = playSound3D ( "shrtvaw.ogg" , x, y, z, true ) setElementData(playerOccupiedRadiolka,"radiolka:syrenaClientSyrena",syrena) attachElements(syrena,playerOccupiedRadiolka) elseif clientSyrenaState == 2 then destroyElement(syrena) triggerServerEvent( "usunDateBoPoChujOna" ,localPlayer) syrena = playSound3D ( "lngvaw.ogg" , x, y, z, true ) setElementData(playerOccupiedRadiolka,"radiolka:syrenaClientSyrena",syrena) attachElements ( syrena, playerOccupiedRadiolka ) elseif clientSyrenaState == 0 then destroyElement(syrena) triggerServerEvent( "usunDateBoPoChujOna" ,localPlayer) end warning @ destroy element ( expetced element, got nill )
  7. serverside local fb={} if policeSigState == 0 then setElementData ( playerOccupiedRadiolka ,"radiolka:signalsstate",1) fb.wuwuni = createObject ( 1845, x , y , z , xr , yr, zr ) attachElements ( fb.wuwuni , playerOccupiedRadiolka, -0.5 , -0.05 , 0.9 ) elseif policeSigState == 1 then setElementData ( playerOccupiedRadiolka ,"radiolka:signalsstate",0) destroyElement ( fb.wuwuni ) end WARNING: Bad argument @ 'destroyElement' [Expected element at argument 1, got nill] can someone explain me that and maybe help :)? the problem is that i have more than one car that will have attached object wuwuni, it appears that if i create object on two vehicles then its possible to me to destroy element on the first vehicle
  8. Padul

    Nuclear DayZ

    Nuclear DayZ I would like to invite you to our MTA DayZ server. What characterises our server? Customized gamemode New login system along with new login panel Unconscious system Infection system New map objects (No lagging objects) New helicrashes Custom weather script Database transferred to MySQL which increases server performance New vehicle spawns New items and more loot spawns Global chat ('B') Added new weapons (Tec-9, RPG-7) New backpacks Arma II skins (weapon, players, items, zombies Optimized and adapted distance rendering system for character models, objects and vehicles. Why should you choose our server? We are team of professional scripters and programers. Our server is not just another server which is using community scripts (VIP, bases or any other scripts). All scripts on our server were written by us. Our goal is to make a good MTA DayZ server, not just another MTA DayZ deatmatch server full of spawned vehicles, overpowered VIPs and "events" which are basicly about reaching some tent full of items in the middle of nowhere. We are very passionate about giving people a good gameplay and a good community, that's why we stay away from features that would make the gameplay unfair. We also implemented rules which fight against any sort of "abuse". This includes admin abuse and player abuse, in this way we're trying to keep our community free of toxic players and toxic behaviour. Server IP: mtasa://178.33.54.32:20148 Its all time open, you can come and join us Our site: http://ndayz.eu Server screenshots:
  9. attempt to call global 'outputServerLog' (a nil value) if (x>=screenW*0.0891 and x<=(screenW*0.0891)+285) and (y>=screenH*0.6699 and y<=(screenH*0.6699)+26) then outputServerLog("KLIKNĄŁ!!") end what i have dont wrong?
  10. function forObjPosition ( thePlayer, command ) local padx,pady,padz = getElementPosition ( thePlayer ) outputConsole ( "{" .. padx .. "," .. pady .. "," .. padz .. "}," ) end addCommandHandler("mypos",forObjPosition) What had i done bad?
  11. Padul

    weather script

    ok, now its fine and working, big thanks for help
  12. Padul

    weather script

    so my intention was to change server weather setting depens on what the currnet ingame time is, eg if the ingame is 20, then the script will set weather to eg 4, also i set the script to server side
×
×
  • Create New...