Jump to content

Dimos7

Members
  • Posts

    1,546
  • Joined

  • Last visited

Everything posted by Dimos7

  1. Dimos7

    Saving stats

    use Client Side setElementData or Server SIde setAccountData
  2. you have save them to a nother script the locations?
  3. give us your code so we help you
  4. function onWasted(totalAmmo, killer, killerWeapon, bodypart , stealth) if not isGuestAccount(getPlayerAccount(source)) then local theWeapon = getPedWeapon(source) local weaponAmmo = getPedTotalAmmo(source) fadeCamera(source, false) setTimer(spawnPlayer, 1000, 1 , source, 2485, -1665, 13.5, 0, getPedSkin(source), 0 ,0) setTimer(setCameraTarget, 1250, 1, source, source) setTimer(fadeCamera, 2000, 1, source, true) setTimer(giveWeapon, 2000, 1, source, theWeapon, weaponAmmo, true) end end addEventHandler("onPlayerWasted", getRootElement(), onWasted)
  5. any errors?
  6. function onWasted(totalAmmo, killer, killerWeapon, bodypart , stealth) if not isGuestAccount(getPlayerAccount(source)) then local theWeapon = getPedWeapon(source) local weaponAmmo = getPedTotalAmmo(source) fadeCamera(source, false) setTimer(spawnPlayer, 1500, 1 , source, 2485, -1665, 13.5, 0, getPedSkin(source), 0 ,0) setTimer(fadeCamera, 1500, 1, source, true) setTimer(setCameraTarget, 2000, 1, source, source) setTimer(giveWeapon, 2000, 1, source, theWeapon, weaponAmmo) end end addEventHandler("onPlayerWasted", getRootElement(), onWasted)
  7. function onWasted(totalAmmo, killer, killerWeapon, bodypart , stealth) if not isGuestAccount(getPlayerAccount(source)) then fadeCamera(source, false) setTimer(spawnPlayer, 1500, 1 , source, 2485, -1665, 13.5, 0, getPedSkin(source), 0 ,0) setTimer(fadeCamera, 1500, 1, source, true) setTimer(setCameraTarget, 2000, 1, source, source) setTimer(takeAllWeapons, 2000, 1, source) end end addEventHandler("onPlayerWasted", getRootElement(), onWasted)
  8. Where you want spawn when player die?
  9. function donatorL1() local accName = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..accName, aclGetGroup("DL1")) then outputChatBox("Welcome To Your Donator Level 1", source, 60, 255, 0) end end addEventHandler("onPlayerLogin", getRootElement(), donatorL1) its server side not client so for that not work
  10. Eny errors on /debugscript 3?
  11. Dimos7

    Country chat

    ty
  12. Dimos7

    Country chat

    with that you have whoiam will show unknow the greece for example or need write every country has?
  13. Dimos7

    Country chat

    for example i want make it if its from germany say the germany in chat so i need do is if getPlayerCountry(player) == "germany"?
  14. Dimos7

    Country chat

    Hello guys for fix a chat where only a country see on chat and player on that country can see only i need is getPlayerIP ?
  15. hable ingles in el aqui
  16. for get the palyer ponsition use getElementPosition(localPlayer) if its client or player if its server side
  17. function onLogin(thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount(getPlayerAccount(source))) then local accountData = getAccountData(theCurrentAccount, "s.HandMoney") if (accountData) then local playerMoney = getAccountData(theCurrentAccount, "s.HandMoney") local playerSkin = getAccountData(theCurrentAccount, "s.skin") local playerHealth = getAccountData(theCurrentAccount, "s.health") local playerArmor = getAccountData(theCurrentAccount, "s.armor") local playerX = getAccountData(theCurrentAccount, "s.x") local playerY = getAccountData(theCurrentAccount, "s.y") local playerZ = getAccountData(theCurrentAccount, "s.z") local playerRot = getAccountData(theCurrentAccount, "s.rot") local playerInt = getAccountData(theCurrentAccount, "s.int") local playerDim = getAccountData(theCurrentAccount, "s.dim") local playerWanted = getAccountData(theCurrentAccount, "s.wantedlevel") local weap0 = getAccountData(theCurrentAccount, "s.weap0") local weap1 = getAccountData(theCurrentAccount, "s.weap1") local weap2 = getAccountData(theCurrentAccount, "s.weap2") local weap3 = getAccountData(theCurrentAccount, "s.weap3") local weap4 = getAccountData(theCurrentAccount, "s.weap4") local weap5 = getAccountData(theCurrentAccount, "s.weap5") local weap6 = getAccountData(theCurrentAccount, "s.weap6") local weap7 = getAccountData(theCurrentAccount, "s.weap7") local weap8 = getAccountData(theCurrentAccount, "s.weap8") local weap9 = getAccountData(theCurrentAccount, "s.weap9") local weap10 = getAccountData(theCurrentAccount, "s.weap10") local weap11 = getAccountData(theCurrentAccount, "s.weap11") local weap12 = getAccountData(theCurrentAccount, "s.weap12") local ammo0 = getAccountData(theCurrentAccount, "s.ammo0") local ammo1 = getAccountData(theCurrentAccount, "s.ammo1") local ammo2 = getAccountData(theCurrentAccount, "s.ammo2") local ammo3 = getAccountData(theCurrentAccount, "s.ammo3") local ammo4 = getAccountData(theCurrentAccount, "s.ammo4") local ammo5 = getAccountData(theCurrentAccount, "s.ammo5") local ammo6 = getAccountData(theCurrentAccount, "s.ammo6") local ammo7 = getAccountData(theCurrentAccount, "s.ammo7") local ammo8 = getAccountData(theCurrentAccount, "s.ammo8") local ammo9 = getAccountData(theCurrentAccount, "s.ammo9") local ammo10 = getAccountData(theCurrentAccount, "s.ammo10") local ammo11 = getAccountData(theCurrentAccount, "s.ammo11") local ammo12 = getAccountData(theCurrentAccount, "s.ammo12") setPlayerMoney(source, playerMoney) setTimer(setElementHealth, 500, 1, source, playerHealth) setTimer(setPedArmor, 500, 1, source, playerArmor) setTimer(setPlayerWantedLevel, 1500, 1, source, playerWanted) spawnPlayer(source, playerX, playerY, playerZ+1, playerRot, playerSkin, playerInt, playerDim) fadeCamera(source, true, 2.0) setCameraTarget(source, source) giveWeapon(source, weap0, ammo0, true) giveWeapon(source, weap1, ammo1, false) giveWeapon(source, weap2, ammo2, false) giveWeapon(source, weap3, ammo3, false) giveWeapon(source, weap4, ammo4, false) giveWeapon(source, weap5, ammo5, false) giveWeapon(source, weap6, ammo6, false) giveWeapon(source, weap7, ammo7, false) giveWeapon(source, weap8, ammo8, false) giveWeapon(source, weap9, ammo9, false) giveWeapon(source, weap10, ammo10, false) giveWeapon(source, weap11, ammo11, false) giveWeapon(source, weap12, ammo12, false) else spawnPlayer(source, 2485, -1665, 13.5, 0, 0, 0, 0) fadeCamera(source, true, 2.0) setCameraTarget(source, source) end end end addEventHandler("onPlayerLogin", getRootElement(), onLogin) function onLogout() kickPlayer(source, nil, "disallowed logout.") end addEventHandler("onPlayerLogout", getRootElement(), onLogout) function onQuit(quitTupe, reason, resposibleElement) if not (isGuestAccount(getPlayerAccount(source))) then local account = getPlayerAccount(source) if (account) then local x, y, z = getElementPosition(source) setAccountData(account, "s.HandMoney", tostring(getPlayerMoney(source))) setAccountData(account, "s.skin", tostring(getPedSkin(source))) setAccountData(account, "s.health", tostring(getElementHealth(source))) setAccountData(account, "s.armor", tostring(getPedArmor(source))) setAccountData(account, "s.x", x) setAccountData(account, "s.y", y) setAccountData(account, "s.z", z) setAccountData(account, "s.rot", getElementRotation(source)) setAccountData(account, "s.int", getElementInterior(source)) setAccountData(account, "s.dim", getElementDimension(source)) setAccountData(account, "s.wantedlevel", getPlayerWantedLevel(source)) setAccountData(account, "s.weap0", getPedWeapon(source, 0)) setAccountData(account, "s.weap1", getPedWeapon(source, 1)) setAccountData(account, "s.weap2", getPedWeapon(source, 2)) setAccountData(account, "s.weap3", getPedWeapon(source, 3)) setAccountData(account, "s.weap4", getPedWeapon(source, 4)) setAccountData(account, "s.weap5", getPedWeapon(source, 5)) setAccountData(account, "s.weap6", getPedWeapon(source, 6)) setAccountData(account, "s.weap7", getPedWeapon(source, 7)) setAccountData(account, "s.weap8", getPedWeapon(source, 8)) setAccountData(account, "s.weap9", getPedWeapon(source, 9)) setAccountData(account, "s.weap10", getPedWeapon(source, 10)) setAccountData(account, "s.weap11", getPedWeapon(source, 11)) setAccountData(account, "s.weap12", getPedWeapon(source, 12)) setAccountData(account, "s.ammo0", getPedTotalAmmo(source, 0)) setAccountData(account, "s.ammo1", getPedTotalAmmo(source, 1)) setAccountData(account, "s.ammo2", getPedTotalAmmo(source, 2)) setAccountData(account, "s.ammo3", getPedTotalAmmo(source, 3)) setAccountData(account, "s.ammo4", getPedTotalAmmo(source, 4)) setAccountData(account, "s.ammo5", getPedTotalAmmo(source, 5)) setAccountData(account, "s.ammo6", getPedTotalAmmo(source, 6)) setAccountData(account, "s.ammo7", getPedTotalAmmo(source, 7)) setAccountData(account, "s.ammo8", getPedTotalAmmo(source, 8)) setAccountData(account, "s.ammo9", getPedTotalAmmo(source, 9)) setAccountData(account, "s.ammo10", getPedTotalAmmo(source, 10)) setAccountData(account, "s.ammo11", getPedTotalAmmo(source, 11)) setAccountData(account, "s.ammo12", getPedTotalAmmo(source, 12)) end end end addEventHandler("onPlayerQuit", getRootElement(), onQuit) function onWasted(killer, weapon, ammo, bodypart) if not (isGuestAccount(getPlayerAccount(source))) then fadeCamera(source, false) setTimer(spawnPlayer, 1500, 1, source, x, y, z, , getPedSkin(source), 0, 0) setTimer(fadeCamera, 2000, 1, source, true) setTimer(setCameraTarget, 2000, 1, source, source) takeAllWeapons(source) end end addEventHandler("onPlayerWasted", getRootElement(), onWasted) in x, y, z and rot put there you want spawn onWasted
  18. Dimos7

    givePlayerMoney

    for take player money is takePlayerMoney(8888) not give
  19. give us the exacly locaction a newbie wnat to spawn
  20. function onQuit(quitType, reason, resposibleElement) if not (isGuestAccount(getPlayerAccount(source))) then local account = getPlayerAccount(source) if (account) then local x, y, z = getElementPosition(source) setAccountData(account, "s.HandMoney", tostring(getPlayerMoney(source))) setAccountData(account, "s.skin", tostring(getPedSkin(source))) setAccountData(account , "s.health", tostring(getElementHealth(source))) setAccountData(account, "s.armor", tostring(getPedArmor(source))) setAccountData(account, "s.x", x) setAccountData(account, "s.y", y) setAccountData(account, "s.z", z) setAccountData(account, "s.int", getElementInterior(source)) setAccountData(account, "s.dim", getElementDimension(source)) setAccountData(account, "s.rot", getElementRotation(source)) setAccountData(account, "s.weap0", getPedWeapon(source, 0)) setAccountData(account, "s.weap1", getPedWeapon(source, 1)) setAccountData(account, "s.weap2", getPedWeapon(source, 2)) setAccountData(account, "s.weap3", getPedWeapon(source, 3)) setAccountData(account, "s.weap4", getPedWeapon(source, 4)) setAccountData(account, "s.weap5", getPedWeapon(source, 5)) setAccountData(account, "s.weap6", getPedWeapon(source, 6)) setAccountData(account, "s.weap7", getPedWeapon(source, 7)) setAccountData(account, "s.weap8", getPedWeapon(source, ) setAccountData(account, "s.weap9", getPedWeapon(source, 9)) setAccountData(account, "s.weap10", getPedWeapon(source, 10)) setAccountData(account, "s.weap11", getPedWeapon(source, 11)) setAccountData(account, "s.weap12", getPedWeapon(source, 12)) setAccountData(account, "s.ammo0", getPedTotalAmmo(source, 0)) setAccountData(account, "s.ammo1", getPedTotalAmmo(source, 1)) setAccountData(account, "s.ammo2", getPedTotalAmmo(source, 2)) setAccountData(account, "s.ammo3", getPedTotalAmmo(source, 3)) setAccountData(account, "s.ammo4", getPedTotalAmmo(source, 4)) setAccountData(account, "s.ammo5", getPedTotalAmmo(source, 5)) setAccountData(account, "s.ammo6", getPedTotalAmmo(source, 6)) setAccountData(account, "s.ammo7", getPedTotalAmmo(source, 7)) setAccountData(account, "s.ammo8", getPedTotalAmmo(source, ) setAccountData(account, "s.ammo9", getPedTotalAmmo(source, 9)) setAccountData(account, "s.ammo10", getPedTotalAmmo(source, 10)) setAccountData(account, "s.ammo11", getPedTotalAmmo(source, 11)) setAccountData(account, "s.ammo12", getPedTotalAmmo(source, 12)) end end end addEventHandler("onPlayerQuit", getRootElement(), onQuit) function onLogin(thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount(getPlayerAccount(source))) then local accountData = getAccountData(theCurrentAccount, "s.HandMoney") if (accountData) then local playerMoney = getAccountData(theCurrentAccount, "s.HandMoney") local playerSkin = getAccountData(theCurrentAccount, "s.skin") local playerHealth = getAccountData(theCurrentAccount, "s.health") local playerArmor = getAccountData(theCurrentAccount, "s.armor") local playerX = getAccountData(theCurrentAccount, "s.x") local playerY = getAccountData(theCurrentAccount, "s.y") local playerZ = getAccountData(theCurrentAccount, "s.z") local playerRot = getAccountData(theCurrentAccount, "s.rot") local playerInt = getAccountData(theCurrentAccount, "s.int") local playerDim = getAccountData(theCurrentAccount, "s.dim") local weap0 = getAccountData(theCurrentAccount, "s.weap0") local weap1 = getAccountData(theCurrentAccount, "s.weap1") local weap2 = getAccountData(theCurrentAccount, "s.weap2") local weap3 = getAccountData(theCurrentAccount, "s.weap3") local weap4 = getAccountData(theCurrentAccount, "s.weap4") local weap5 = getAccountData(theCurrentAccount, "s.weap5") local weap6 = getAccountData(theCurrentAccount, "s.weap6") local weap7 = getAccountData(theCurrentAccount, "s.weap7") local weap8 = getAccountData(theCurrentAccount, "s.weap8") local weap9 = getAccountData(theCurrentAccount, "s.weap9") local weap10 = getAccountData(theCurrentAccount, "s.weap10") local weap11 = getAccountData(theCurrentAccount, "s.weap11") local weap12 = getAccountData(theCurrentAccount, "s.weap12") local ammo0 = getAccountData(theCurrentAccount, "s.ammo0") local ammo1 = getAccountData(theCurrentAccount, "s.ammo1") local ammo2 = getAccountData(theCurrentAccount, "s.ammo2") local ammo3 = getAccountData(theCurrentAccount, "s.ammo3") local ammo4 = getAccountData(theCurrentAccount, "s.ammo4") local ammo5 = getAccountData(theCurrentAccount, "s.ammo5") local ammo6 = getAccountData(theCurrentAccount, "s.ammo6") local ammo7 = getAccountData(theCurrentAccount, "s.ammo7") local ammo8 = getAccountData(theCurrentAccount, "s.ammo8") local ammo9 = getAccountData(theCurrentAccount, "s.ammo9") local ammo10 = getAccountData(theCurrentAccount, "s.ammo10") local ammo11 = getAccountData(theCurrentAccount, "s.ammo11") local ammo12 = getAccountData(theCurrentAccount, "s.ammo12") setPlayerMoney(source, playerMoney) setElementHealth(source, playerHealth) setPedArmor(source, playerArmor) spawnPlayer(source, playerX, playerY, playerZ+1, playerRot, playerSkin, playerInt, playerDim) fadeCamera(source, true, 2.0) setCameraTarget(source, source) giveWeapon(source, weap0, ammo0, true) giveWeapon(source, weap1, ammo1, false) giveWeapon(source, weap2, ammo2, false) giveWeapon(source, weap3, ammo3, false) giveWeapon(source, weap4, ammo4, false) giveWeapon(source, weap5, ammo5, false) giveWeapon(source, weap6, ammo6, false) giveWeapon(source, weap7, ammo7, false) giveWeapon(source, weap8, ammo8, false) giveWeapon(source, weap9, ammo9, false) giveWeapon(source, weap10, ammo10, false) giveWeapon(source, weap11, ammo11, false) giveWeapon(source, weap12, ammo12, false) else spawnPlayer(source, 2485, -1665, 13.5, 0, 0, 0, 0) fadeCamera(source, true, 2.0) setCameraTarget(source, source) end end end addEventHandler("onPlayerLogin", getRootElement(), onLogin)
  21. use me code works fine
  22. function onLogout(quitType, reason, resposibleElement) if not (isGuestAccount(getPlayerAccount(source))) then local account = getPlayerAccount(source) if (account) then local x, y, z = getElementPosition(source) setAccountData(account, "s.HandMoney", tostring(getPlayerMoney(source))) setAccountData(account, "s.skin", tostring(getPedSkin(source))) setAccountData(account , "s.health", tostring(getElementHealth(source))) setAccountData(account, "s.armor", tostring(getPedArmor(source))) setAccountData(account, "s.x", x) setAccountData(account, "s.y", y) setAccountData(account, "s.z", z) setAccountData(account, "s.int", getElementInterior(source)) setAccountData(account, "s.dim", getElementDimension(source)) setAccountData(account, "s.rot", getElementRotation(source)) setAccountData(account, "s.weap0", getPedWeapon(source, 0)) setAccountData(account, "s.weap1", getPedWeapon(source, 1)) setAccountData(account, "s.weap2", getPedWeapon(source, 2)) setAccountData(account, "s.weap3", getPedWeapon(source, 3)) setAccountData(account, "s.weap4", getPedWeapon(source, 4)) setAccountData(account, "s.weap5", getPedWeapon(source, 5)) setAccountData(account, "s.weap6", getPedWeapon(source, 6)) setAccountData(account, "s.weap7", getPedWeapon(source, 7)) setAccountData(account, "s.weap8", getPedWeapon(source, ) setAccountData(account, "s.weap9", getPedWeapon(source, 9)) setAccountData(account, "s.weap10", getPedWeapon(source, 10)) setAccountData(account, "s.weap11", getPedWeapon(source, 11)) setAccountData(account, "s.weap12", getPedWeapon(source, 12)) setAccountData(account, "s.ammo0", getPedTotalAmmo(source, 0)) setAccountData(account, "s.ammo1", getPedTotalAmmo(source, 1)) setAccountData(account, "s.ammo2", getPedTotalAmmo(source, 2)) setAccountData(account, "s.ammo3", getPedTotalAmmo(source, 3)) setAccountData(account, "s.ammo4", getPedTotalAmmo(source, 4)) setAccountData(account, "s.ammo5", getPedTotalAmmo(source, 5)) setAccountData(account, "s.ammo6", getPedTotalAmmo(source, 6)) setAccountData(account, "s.ammo7", getPedTotalAmmo(source, 7)) setAccountData(account, "s.ammo8", getPedTotalAmmo(source, ) setAccountData(account, "s.ammo9", getPedTotalAmmo(source, 9)) setAccountData(account, "s.ammo10", getPedTotalAmmo(source, 10)) setAccountData(account, "s.ammo11", getPedTotalAmmo(source, 11)) setAccountData(account, "s.ammo12", getPedTotalAmmo(source, 12)) end end end addEventHandler("onPlayerQuit", getRootElement(), onQuit) function onLogin(thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount(getPlayerAccount(source))) then local accountData = getAccountData(theCurrentAccount, "s.HandMoney") if (accountData) then local playerMoney = getAccountData(theCurrentAccount, "s.HandMoney") local playerSkin = getAccountData(theCurrentAccount, "s.skin") local playerHealth = getAccountData(theCurrentAccount, "s.health") local playerArmor = getAccountData(theCurrentAccount, "s.armor") local playerX = getAccountData(theCurrentAccount, "s.x") local playerY = getAccountData(theCurrentAccount, "s.y") local playerZ = getAccountData(theCurrentAccount, "s.z") local playerRot = getAccountData(theCurrentAccount, "s.rot") local playerInt = getAccountData(theCurrentAccount, "s.int") local playerDim = getAccountData(theCurrentAccount, "s.dim") local weap0 = getAccountData(theCurrentAccount, "s.weap0") local weap1 = getAccountData(theCurrentAccount, "s.weap1") local weap2 = getAccountData(theCurrentAccount, "s.weap2") local weap3 = getAccountData(theCurrentAccount, "s.weap3") local weap4 = getAccountData(theCurrentAccount, "s.weap4") local weap5 = getAccountData(theCurrentAccount, "s.weap5") local weap6 = getAccountData(theCurrentAccount, "s.weap6") local weap7 = getAccountData(theCurrentAccount, "s.weap7") local weap8 = getAccountData(theCurrentAccount, "s.weap8") local weap9 = getAccountData(theCurrentAccount, "s.weap9") local weap10 = getAccountData(theCurrentAccount, "s.weap10") local weap11 = getAccountData(theCurrentAccount, "s.weap11") local weap12 = getAccountData(theCurrentAccount, "s.weap12") local ammo0 = getAccountData(theCurrentAccount, "s.ammo0") local ammo1 = getAccountData(theCurrentAccount, "s.ammo1") local ammo2 = getAccountData(theCurrentAccount, "s.ammo2") local ammo3 = getAccountData(theCurrentAccount, "s.ammo3") local ammo4 = getAccountData(theCurrentAccount, "s.ammo4") local ammo5 = getAccountData(theCurrentAccount, "s.ammo5") local ammo6 = getAccountData(theCurrentAccount, "s.ammo6") local ammo7 = getAccountData(theCurrentAccount, "s.ammo7") local ammo8 = getAccountData(theCurrentAccount, "s.ammo8") local ammo9 = getAccountData(theCurrentAccount, "s.ammo9") local ammo10 = getAccountData(theCurrentAccount, "s.ammo10") local ammo11 = getAccountData(theCurrentAccount, "s.ammo11") local ammo12 = getAccountData(theCurrentAccount, "s.ammo12") setPlayerMoney(source, playerMoney) setElementHealth(source, playerHealth) setPedArmor(source, playerArmor) spawnPlayer(source, playerX, playerY, playerZ+1, playerRot, playerSkin, playerInt, playerDim) fadeCamera(source, true, 2.0) setCameraTarget(source, source) giveWeapon(source, weap0, ammo0, true) giveWeapon(source, weap1, ammo1, false) giveWeapon(source, weap2, ammo2, false) giveWeapon(source, weap3, ammo3, false) giveWeapon(source, weap4, ammo4, false) giveWeapon(source, weap5, ammo5, false) giveWeapon(source, weap6, ammo6, false) giveWeapon(source, weap7, ammo7, false) giveWeapon(source, weap8, ammo8, false) giveWeapon(source, weap9, ammo9, false) giveWeapon(source, weap10, ammo10, false) giveWeapon(source, weap11, ammo11, false) giveWeapon(source, weap12, ammo12, false) else spawnPlayer(source, 2485, -1665, 13.5, 0, 0, 0, 0) fadeCamera(source, true, 2.0) setCameraTarget(source, source) end end end addEventHandler("onPlayerLogin", getRootElement(), onLogin)
  23. edit: not saw it
×
×
  • Create New...