Jump to content

Spajk

Members
  • Posts

    285
  • Joined

  • Last visited

Everything posted by Spajk

  1. Check if the resource is running and check if the function has been added as export in the meta.xml.
  2. local Bscore = 0 local Wscore = 0 function onWasted(killer, weapon, bodypart) local kteam = getPlayerTeam(killer) if(getTeamName(kteam) == "WhiteTeam")then Wscore = Wscore + 1 elseif(getTeamName(kteam) == "BlackTeam") Bscore = Bscore + 1 end end addEventHandler("onClientPedWasted", getRootElement(), onWasted) function onRender() local team = getPlayerTeam(localPlayer) if(getTeamName(team) == "WhiteTeam" or getTeamName(team) == "BlackTeam") then dxDrawText("Black Team:"..tostring(Bscore), 0, 500, 319, 426, tocolor(0, 0, 0, 255), 1.00, "pricedown", "center", "center", true, true, true, true, false) dxDrawText("White Team:"..tostring(Wscore), 0, 600, 319, 426, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", true, true, true, true, false) end end addEventHandler("onClientRender", root, onRender)
  3. local Bscrore = 0 local Wscrore = 0 function onWasted(killer, weapon, bodypart) local kteam = getPlayerTeam(killer) if(getTeamName(kteam) == "WhiteTeam")then Wscore = Wscore + 1 elseif(getTeamName(kteam) == "BlackTeam") Bscore = Bscore + 1 end end addEventHandler("onClientPedWasted", getRootElement(), onWasted) function onRender() local team = getPlayerTeam(localPlayer) if(getTeamName(team) == "WhiteTeam" or getTeamName(team) == "BlackTeam") then dxDrawText("Black Team:"..tostring(Bscore), 0, 500, 319, 426, tocolor(0, 0, 0, 255), 1.00, "pricedown", "center", "center", true, true, true, true, false) dxDrawText("White Team:"..tostring(Wscore), 0, 600, 319, 426, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", true, true, true, true, false) end end addEventHandler("onClientRender", root, onRender) It wont work well because of late joining.
  4. Spajk

    Lock this

    Just add another field in the groups table in the SQL named "memo" with type "TEXT".
  5. Spajk

    Lock this

    Dealman, if he already has a group system that uses SQL then why would he store it inside files?
  6. It's not always easy. Have you ever seen how race maps ([DM]) maps look like?Full of decoration and track,and it's hard to make it look good. That depends on person's imagination.
  7. Because mapping is easy?
  8. Good luck earning $1000 by selling scripts.
  9. wow, didn't know about that.
  10. What do you mean it works only on local server? it works on every server which has a HTTP server running on the same machine. I am quite sure it would even work with MTA's inbuit HTTP server.
  11. Spajk

    Timers

    Could you tell me a bit more on where you are planning to use this, there might be a chance that it could be done without timers using tick count which would improve effectiveness.
  12. https://code.google.com/p/mtasa-blue/so ... ail?r=6201
  13. He did mean on microphone.
  14. No, he wants to change the volume of a player's voice. ( microphone )
  15. I am sure that command "list" does the same thing.
  16. Any possibility of a seperate release containing only custom objects like bridges and roads?
  17. Citizen, there's no need for that, ImageSection supports rotations: rotation: the rotation, in degrees for the image. rotationCenterOffsetX: the absolute X offset from the image center for which to rotate the image from. rotationCenterOffsetY: the absolute Y offset from the image center for which to rotate the image from. Also, since MTA 1.3.5, dx text also has these arguments.
  18. Also, there's no function named "getPlayerStats".
  19. Creating an editbox in dx should't be hard, but it gets a lot harder when you want to add stuff as selecting text.
  20. Excellent work. You should make it a FPS.
  21. ... getElementData(player, "Role") returns player's current job, so you should use: if(getElementData(player, "Role") == "Police officer")then
  22. @Chaz It's called teams and yes, using the exported functions provided by this system it can be easly done. @Henn It's in the first post.
  23. It's in .col, I am 100% sure. Use col editor to change it.
  24. And you are supposed to be a scripter?
×
×
  • Create New...