Jump to content

tnt

Members
  • Posts

    6
  • Joined

  • Last visited

Details

  • Gang
    SARPG

tnt's Achievements

Vic

Vic (3/54)

0

Reputation

  1. tnt

    HELP MEH !

    Checking those right now
  2. tnt

    HELP MEH !

    Well this thing sux, could you show me how to make data base with mySQL, people say its the best data base to make, well I'm a scripter, but I don't know how to do MySQL i don't even know what it is, could you help me and show me how to save Data Base etc..
  3. tnt

    HELP MEH !

    it works but still lags on disconnect
  4. tnt

    HELP MEH !

    *This script lags on disconnect, How can I fix that lag or avoid it, if you could fix it then please do. Thank you. server side function playerQuit() local playerAcc = getPlayerAccount(source) if ( playerAcc ) then local playerCash = getPlayerMoney(source) local playerClass = getElementData(source, "Class") local playerTeam = getTeamName(getPlayerTeam(source)) setAccountData(playerAcc, "cash", playerCash) setAccountData(playerAcc, "SpawnClass", playerClass) if (getPlayerTeam(source)) then setAccountData(playerAcc, "SpawnTeam", playerTeam) end setPlayerMoney(source, 0) end end addEventHandler("onPlayerQuit", getRootElement(), playerQuit) function playerLogin() spawnPlayer(source, 2024.2568359375, 1342.96484375, 10.8203125) fadeCamera(source, true) setCameraTarget(source, source) showPlayerHudComponent ( source, "radar", true ) showPlayerHudComponent ( source, "area_name", true ) setElementDimension ( source, 0 ) showChat( source, true ) local plaAcc = getPlayerAccount(source) if plaAcc then local playerBank = getAccountData(plaAcc, "cash") local playerClass = getAccountData(plaAcc, "SpawnClass") local playerTeam = getAccountData(plaAcc, "SpawnTeam") if (playerBank) then setPlayerMoney(source, tonumber(playerBank)) end if (playerClass) and (playerTeam) then if (playerClass) then setElementData(source, "Class", tostring(playerClass)) end if (playerTeam) then setPlayerTeam(source, tostring(getTeamFromName(playerTeam))) end else setPlayerTeam(source, getTeamFromName("Civilian")) setElementData(source, "Class", "Unoccupied") end end end addEventHandler("onPlayerLogin", getRootElement(), playerLogin)
  5. tnt

    Question script

    use TXD workShop(.txd) and Zmodler (.dff) and imgtool
×
×
  • Create New...