Jump to content

Nico.de

Members
  • Posts

    34
  • Joined

  • Last visited

Everything posted by Nico.de

  1. Nico.de

    Stats system

    addEventHandler("onPlayerLogin",getRootElement(), function () local account = getPlayerAccount(source) local kills = getAccountData(account,"kills") local deaths = getAccountData(account,"deaths") local headshots = getAccountData(account,"headshots") if not kills then setAccountData(account,"kills",0) end if not deaths then setAccountData(account,"deaths",0) end if not headshots then setAccountData(account,"headshots",0) end end) function updatePlayerStats(ammo, attacker, weapon, bodypart) local account = getPlayerAccount(attacker) if account then local kills = getAccountData(account,"kills") local headshots = getAccountData(account,"headshots") setAccountData(account,"kills",kills+1) if bodypart == 9 then setAccountData(account,"headshots",headshots+1) end end local accountS = getPlayerAccount(source) if accountS then local deaths = getAccountData(accountS,"deaths") setAccountData(accountS,"deaths",deaths+1) if not killer or killer == victim then return; end end end addEventHandler("onPlayerWasted",getRootElement(),updatePlayerStats) function getPlayerStats(thePlayer) local account = getPlayerAccount(thePlayer) if account then local kills = getAccountData(account,"kills") or 0 local headshots = getAccountData(account,"headshots") or 0 local deaths = getAccountData(account,"deaths") or 0 local ratio = string.format("%.2f", kills / deaths) outputChatBox("[sTATS]".. getPlayerName(thePlayer) .."'s Stats: Kills: ".. tostring(kills) .." (".. tostring(headshots) .." Headshots), ".. tostring(deaths) .." Deaths, Ratio: ".. tostring(ratio).."", getRootElement(), 255, 255, 0) end end addCommandHandler("stats",getPlayerStats) ___________ How to delete that self deaths get counted ?
  2. I have to work in resource stealth..
  3. When a player kills suicide.. on scorbord = deaths +1 But i want that it doesn't get count.. Help
  4. Nico.de

    Killscript

    Ah thx a lot.. I knew something is wrong
  5. Nico.de

    Killscript

    Don't work anyway.. That's the meta
  6. Nico.de

    Killscript

    THX TAPL I KNOW U FROM KSA BASEMODE SERVER !
  7. Nico.de

    Killscript

    Thanks a lot SolidSnake..
  8. Nico.de

    Killscript

    I want a script , when a player writes /kill he get suicide commited.. And so he can change the team (Stealth) THX
  9. Nico.de

    Fakedeath

    Can u tell me how it lookz I want to make .. that when a player press x he has the death anim..
  10. Nico.de

    Fakedeath

    I want to create a fakedeath.. with setpedAnimation and addcommandHandler
  11. When I shot a enemy the killmessages show me a doublekill.. & Idk how to fix it
  12. Please send me a example for weapons replace .. How the script looks like..
  13. Nico.de

    Skin Replace

    Snake I know how this workz but I need a txd file
  14. Nico.de

    Skin Replace

    Our Clan will make a Stealth Server.. And I nee a new Skin for the Spy ( id=163).. Please help me again..
  15. Nico.de

    Stats system

    So I can upload our server and the stats system workz...
  16. Nico.de

    Stats system

    So when the server is online the stats get's saved automaticaly ?
  17. Nico.de

    Stats system

    I would say there is no save function
  18. Nico.de

    Stats system

    On Scoreboard : Kills 3 Deaths 1 But stats everything 0
×
×
  • Create New...