Jump to content

wesseb

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by wesseb

  1. Wielkie dzięki dzek i reszcie za trud przy pomocy W końcu mi się udało. Temat można zamknąć
  2. coś tam czytałem w wiki na ten temat, tylko mi zależy jak zrobić przekierowanie chatu serwera na chatboxa www przez PHP SDK.
  3. mySQL? dziwne... Mi się wydaje że to nie ma nic wspólnego z mySQL.
  4. Witajcie Chciałbym zrobić na serwer chat pomiędzy stroną www a serwerem. Niestety mam problem. Chodzi o to aby wiadomość była dostarczana na serwer. Dziękuje.
  5. wesseb

    Little Problem

    don't work again... and no errors
  6. wesseb

    Little Problem

    don't work i don't know why...
  7. wesseb

    Little Problem

    please look this code addEventHandler("onElementDataChange",_root, function (theName,theOldValue) if (theName == "race.finish") then --and (getElementType (source) == "player") then -- if not (isGuestAccount (getPlayerAccount (source))) then local playerAccount = getPlayerAccount(source) local playerMoney = getAccountData(playerAccount,"VIPM-Money") if (playerMoney) and (playerAccount) then if (getElementData (source,"race rank") == 1) then local playerCount = getPlayerCount () local winningMoney = playerCount *50 local allMoney = playerMoney + winningMoney outputChatBox("#aa00ff<Script>:#ffffff " .. getPlayerName(source) .. " won " .. tostring (winningMoney) .. "$ for 1st!!",_root,255,255,255,true) setAccountData (playerAccount, "VIPM-Money", allMoney) end end -- else -- ouptutChatBox ("#aa00ff<Script>:#ffffff " .. getPlayerName(source) .. " won NOTHING because he is not logged in.") -- end end end)
  8. wesseb

    Little Problem

    in raceMod is event onPlayerFinish
  9. wesseb

    Little Problem

    don't work ;/ i think onPlayerFinish is not good
  10. Hi! I'm have problem. I'm make script for MTA Racemod and look this. I must have script to give player money for win DD or DM _root = getRootElement() addEventHandler("onPlayerFinish",_root, function (rank,time) if not (isGuestAccount (getPlayerAccount (source))) then local playerAccount = getPlayerAccount(source) local playerMoney = getAccountData(playerAccount,"VIPM-Money") if (playerMoney) and (playerAccount) then local alivePlayer = getAlivePlayers() if (alivePlayer == 1) then outputChatBox("#aa00ff<Script>:#ffffff " .. getPlayerName(source) .. " won 1000$ for 1st!!",_root,255,255,255,true) setAccountData (playerAccount, "VIPM-Money", playerMoney +1000) end end end end) thanks for help and sorry for my bad english
×
×
  • Create New...