Jump to content

Paplo

Members
  • Posts

    124
  • Joined

  • Last visited

Details

  • Gang
    [GerMan]

Paplo's Achievements

Sucka

Sucka (13/54)

0

Reputation

  1. mark = createMarker ( x, y, z, "cylinder", 255, 255, 255, 0, 100 ) addEventHandler( "onClientMarkerHit", mark, function(player) theVehicle = getPlayerOccupiedVehicle (player) driver = getVehicleOccupant ( theVehicle ) if theVehicle then outputChatBox("test", driver) end end ) i want show "test" in chat for driver only but this code show to all player can help please ?
  2. What about if the admin I want to remove his admin if no login for a week can i do that? how
  3. If the player does not log into their account for a week then account automatically deleted Can I do this? If I can how what should use Please help
  4. Paplo

    whats wrong?

    function onResourceStart() local vehicles = getElementsByType ( "vehicle" ) local x, y, z = getElementPosition ( vehicles ) createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) i want to all vehicle have marker
  5. addEventHandler("onClientVehicleEnter", getRootElement(), function () local vehicle = getPedOccupiedVehicle ( localPlayer ) local x,y,z = getElementPosition( vehicle ) local collision = createColSphere ( x, y, z, 10.0 ) local playersincol = getElementsWithinColShape( collision, "player" ) sound = playSound3D( "music.mp3", x, y, z, true ) setSoundVolume( sound, 5 ) setSoundMaxDistance( sound, 20 ) attachElements ( sound, vehicle ) attachElements ( collision, vehicle ) end ) addEventHandler("onClientVehicleExit", getRootElement(), function(thePlayer, seat) if thePlayer == getLocalPlayer() then stopSound ( sound ) end end ) i want to all player hears the sound if close to vehicle
  6. hi local vehicle = getPedOccupiedVehicle ( localPlayer ) localPlayer = Checks player himself But I want checks from other players and not checks player himself
  7. Try this : setTimer ( function ( ) for _,element in next,getElementsByType ( 'object' ) do if getElementModel ( element ) == 6959 then setElementDimension ( element,50 ) end end end,1000,1 ) thank you it work
  8. function changeDim ( element ) if element and getElementType( element ) == "object" and getElementModel ( element ) == 6959 then setElementDimension ( element, 50 ) end end setTimer(changeDim, 1000, 1, source) whats wrong ?
  9. nobody have Answer ?
  10. <meta> <map src="Map.map" dimension="50"></map> </meta> i try to set dimension map in dimension 50 but not working i change dimension in meta and Map.map and it not working anybody have know how to do that?
  11. i try edit meta to <map src="Shot.map" /> but it not working map dim 0 not 50 hmmm noway to make code lua do this?
×
×
  • Create New...