Jump to content

CodX

Members
  • Posts

    71
  • Joined

  • Last visited

Details

  • Gang
    CodX
  • Location
    Bucuresti
  • Occupation
    IT
  • Interests
    IT

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

CodX's Achievements

Transformer

Transformer (11/54)

4

Reputation

  1. Ah, i understand. Ok, thank you for help !
  2. So, at server side i can use that function like "executeCommandHandler("give", "console", "money", 5000) 'give' is the command and the executor is 'console', rest of them are arguments.
  3. Hi ! It's possible to excute server command as admin using executeCommandHandler ? For example, i want give some game points using sql for a player that have 10 hours, but he doesn't have access to game point's command.
  4. CodX

    rail bug

    It's not derailed, it's a line that turn left from SF Station and in SF Station to LS Jefferson. That train has already derailable to false.
  5. CodX

    rail bug

    Hi, guys ! Is there any way to fix this bug for the second railroad when the train just turn left to San Fierro and in San Fierro left to Los Santos?
  6. CodX

    Train Barriers

    Hi ! It's possible to set up train barriers to be activated more earlier than usual?
  7. CodX

    SavePlayerData

    Work ! Thank you for help !
  8. CodX

    SavePlayerData

    Sometiems didn't save my data, that is the reason why i've used a timer.
  9. CodX

    SavePlayerData

    I've tried this but sometimes don't save playerData when the player has disconnected.
  10. CodX

    SavePlayerData

    setTimer(function() savePlayerData(source) end, 1000, 0);
  11. CodX

    SavePlayerData

    Hello ! function savePlayerData(thePlayer) local account = getPlayerAccount(thePlayer); if account then for _,v in ipairs(playerDataTable) do setAccountData(account, v[1], getElementData(thePlayer, v[1])); end local x,y,z = getElementPosition(thePlayer); setAccountData(account, "last_x", x); setAccountData(account, "last_y", y); setAccountData(account, "last_z", z); end end I have some problems with this script. He always get player name as "nil" and i don't know why can't. Warning Text from debugger: Bad Argument @'getPlayerAccount' [Expected element at argument 1, got nil]
  12. CodX

    Ask ID

    Wow, i'm so stupid.. Now it work ! Thanks for help !
  13. CodX

    Ask ID

    Hello ! I've made this script: function buletin(thePlayer, commandName) if commandName == "buletin" then local nume_jucator = getPlayerName(thePlayer):gsub("_", " ") triggerEvent('sendAme', thePlayer, "duce mana dreapta catre buzunarul drept urmand s-o bage in el, apuca ce e acolo si scoate.") triggerEvent('sendAdo', thePlayer, "Se poate observa ca a scos un portofel.") triggerEvent('sendAme', thePlayer, "il deschide.") triggerEvent('sendAdo', thePlayer, "Se poate observa un buletin si alte acte.") triggerEvent('sendAme', thePlayer, "duce mana stanga catre buletin urmand sa-l scoata si sa-l citeasca, apoi baga buletinul inapoi, inchide portofelul si-l baga in buzunar.") outputChatBox("#C0C0C0San Andreas #66B2FFSan #FFFF33Andr#FF0000eas #C0C0C0San Andreas", thePlayer, 255, 255, 255, true) outputChatBox(" ", thePlayer, 0, 0, 0) outputChatBox("#FFFF66Nume si Prenume:#FFFFFF "..nume_jucator, thePlayer, 255, 255, 255, true) outputChatBox("#FFFF66Domiciliu:#FFFFFF Los Santos", thePlayer, 255, 255, 255, true) outputChatBox("#FFFF66Data Nasterii:#FFFFFF "..exports.global:getPlayerDoB(thePlayer), thePlayer, 255, 255, 255, true) end end addCommandHandler ("buletin", buletin) function askid(thePlayer, commandName, targetPlayer) if commandName == "askid" then local nume_jucator = getPlayerName(thePlayer):gsub("_", " ") if not (targetPlayer) then outputChatBox ("Comanda: /"..commandName.." [ID Jucator]", thePlayer, 255, 255, 255) else local targetPlayer, tinta = exports.global:findPlayerByPartialNick(thePlayer, targerPlayer) outputChatBox("I-ai aratat buletinul lui "..tinta.. ".", thePlayer, 255, 178, 102) outputChatBox("Buletinul lui "..nume_jucator, tinta, 255, 178, 102) outputChatBox(" ", tinta, 0, 0, 0) outputChatBox("#C0C0C0San Andreas #66B2FFSan #FFFF33Andr#FF0000eas #C0C0C0San Andreas", targetPlayer, 255, 255, 255, true) outputChatBox(" ", targetPlayer, 0, 0, 0) outputChatBox("#FFFF66Nume si Prenume:#FFFFFF "..nume_jucator, targetPlayer, 255, 255, 255, true) outputChatBox("#FFFF66Domiciliu:#FFFFFF Los Santos", targetPlayer, 255, 255, 255, true) outputChatBox("#FFFF66Data Nasterii:#FFFFFF "..exports.global:getPlayerDoB(thePlayer), targetPlayer, 255, 255, 255, true) end end end addCommandHandler ("askid", askid) <meta> <script src="script.lua" type="server" /> </meta> When i type "/askid 3" or "/askid Vladus_Griffin", give me error and i don't know why. Error: ERROR: !buletin/script.lua:28: attempt to concatenate local 'tinta' (a nil value) Can you help me please ?
  14. CodX

    GiveWeapon

    Meta: <meta> <script src="script.lua" type="server" /> </meta>
  15. CodX

    GiveWeapon

    In map editor on "Full Test Mode" it work.
×
×
  • Create New...