Jump to content

ernst

Members
  • Posts

    36
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by ernst

  1. It's easier to make an own admin panel rather than editing the default one imo
  2. I've been quite bored lately and I've been looking for something to do, so I decided to make a resource. I can't really decide what to do though, so I thought i'd ask you guys what you would like to see.. The resource will obviously be uploaded to the community site once done
  3. onPlayerJoin is a server sided event, and dxDrawText must use "onClientRender" event.
  4. It's never unlimited just that its above 9999
  5. ernst

    Ped kill...

    can't you read? onClientPlayerStealthKill targetPlayer: The player or ped that is being stealth killed.
  6. You can use setControlState
  7. playermoney = getPlayerMoney(source) will never work. getPlayerMoney don't have a player argument client sided.
  8. ernst

    CreatePed

    function pedcreation ( player, cmd, skin ) local x, y, z = getElementPosition ( player ) local rot = getPedRotation ( player ) peds = createPed ( tonumber ( skin ) or 0, x, y, z - 1 , rot ) setPedAnimation(peds, "ped", "WOMAN_walknorm") end addCommandHandler ( "piepie", pedcreation )
  9. ernst

    CreatePed

    How do i choose, if you know what i mean, like, /piepie (skinid) function pedcreation (client, cmd, skinid) if not (skinid) then outputChatBox("Usage: /piepie skinid", client, 250, 0, 0) return end local x, y, z = getElementPosition(client) local rotx, roty, rotz = getElementRotation(client) createPed(skinid, x, y, z, rotz) end addCommandHandler("piepie", pedcreation)
  10. ernst

    CreatePed

    addCommandHandler("piepie", function(client) local x, y, z = getElementPosition(client) local rotx, roty, rotz = getElementRotation(client) local ped = createPed(288, x, y, z, rotz) if (ped) then outputChatBox("Successful!",client, 255, 0, 0) end end)
  11. Paying €250 for an RPG server is ridiculous Would be easier to just learn lua by yourself.
  12. ernst

    [QUESTION]Tables

    addEventHandler("onPlayerChat", root function(message) outputChatBox("player says"..message) end)
  13. Looks amusing, what's the download size of all those skins? EDIT: WOah, I downloaded those 80mb(the whole server) in less than 1 minute.
  14. Wouldn't it be easier to just check the vehicle model id?
  15. Did you really have to say "did you really have to say that?" ?
  16. oh you got me so wrong. im talking about make a table like chatbox. when im writing ex: outPutTable( "zaa", source, 255,255,255,true) outPutTable( "zaa2", source, 255,255,255,true) outPutTable( "zaa3", source, 255,255,255,true) outPutTable will be like this: zaa zaa2 zaa3 and it will be non-visible for a while later. is that possible? set a timer to remove the event. although, I still think a GUI would be better. local memo = guiCreateMemo() local sendEdit = guiCreateEdit() function write() local text = guiGetText(sendEdit) local content = guiGetText(memo) guiSetText(memo, content.."\n"..text end
  17. how can i? Easiest would be doing a GUI then adding the text. Nothing I can recommend for a beginner though.
  18. ernst

    explosion

    He should use it to detect whether the hit is a player or not
  19. for id, player in ipairs(getElementsByType("player")) do local team = getPlayerTeam( player ) if not (team) then return end local r, g, b = getTeamColor(team) Then edit where you draw the dxtext.
  20. Typo.. anyway fixed
  21. Would be easier to use --[[ text ]]
  22. You would need to create two markers. enter = createMarker(1122.7998046875, -2036.8994140625, 70.5, "arrow", 1, 150, 0, 0, 255 ) leave = createMarker(x, y, z, "arrow", 1, 0, 0, 255) function teleport(client) if not (getElementType(client)=="player") then return end if (source == enter) then setElementPosition(client, 1107.599609375, -2062.9, -51) setElementFrozen(client, false) setTimer(setElementFrozen, 1000, 1, client, false) elseif (source == leave) then --your code end end addEventHandler("onClientMarkerHit", root, teleport)
×
×
  • Create New...