Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About fmj02

  • Rank


  • Location

Recent Profile Visitors

1,091 profile views
  1. fmj02

    Unban request

    I got banned globally(master server) on serial. I admit I hacked(used my own little hack to test how good anti cheat is xD, injected my own Lua script through hooking some calls... well, it worked for a while). Could I ask for unbanning? I regret.. it won't happen again. Your anti cheat is beast Serial: 15AA4B3B92F1332AFB4F5C84E79D2752 Best regards
  2. Display name changing option is missing, it was available before. Would be nice to see it again under "Edit profile".
  3. viewtopic.php?f=140&t=38462&hilit=scene2res
  4. Skrypt jest zakładam server-side, więc w pliku określającym zasób wiesz co masz robić. Druga sprawa: callback onPlayerChat przyjmuje dwa parametry nimi są: message, messageType. W systemie zdarzeń MTA istnieje coś takiego jak source czyli podmiot do którego jest dane zdarzenie przypisane. Zamień więc sobie: local function czat (message, thePlayer) na local function czat (message, messageType) oraz wszystkie thePlayer na source, no i tyle. Co do specyfikatora local to nie wiem czy on jest szybszy, parser interpretuje kod podobnie, taka różnica, że local jest dostępny tylko w danym
  5. http://www.gtamodding.com/index.php?tit ... t_Adjuster
  6. Use your minutes variable, for this reason it's created... isn't it? [...] local minutes = math.floor(time * 60 * 1000) outputChatBox(getPlayerName(target).." has been muted for "..tostring(((minutes/1000)/60)).." minutes ("..reason..") .", root,255, 0, 0) setPlayerMuted(target, true) setTimer(setPlayerMuted, minutes, 1, target, false) [...] Best regards.
  7. So in this case you should consider using OnClientResourceStart
  8. He will be muted for ever because there's no timer in your code executing function which is responsible for unmute, outputChatBox displays 24 minutes because variable minutes contains this value. Currently it works like that: 4*60*1000 so minutes is equal to 240000 right now - your 4 minutes in milliseconds, so if you want to display it as minutes you've got to divide it by 1000 and then by 60. outputChatBox(getPlayerName(target).." has been muted for "..tostring(((minutes/1000)/60))).." minutes ("..reason..") .", root,255, 0, 0) Except this you should use setTimer to actually get it w
  9. STRING datatype doesn't exist in SQLite, consider using TEXT instead of it. http://www.sqlite.org/datatype3.html Best regards.
  10. Your code isn't working properly because of two things: 1. You can't call the functions just when you specify arguments of some function(tostring in this case). 2. local variables are accessible only "before first end" after if statement they're not visible anymore so when you try to use them UH OH code doesn't work. so all you have is to remove local keywords and tostring from the arguments instead of using it there use it inside. function callphonenumber(thePlayer, cmd, phonenumber2, ...) if phonenumber2 then phonenumber2 = tostring(phonenumber2)
  11. That's fantastic! I can give you code for sex I made long time ago for my rp server needs, but it's really easy to make though. That would be a good script for communities, imagine that in this camera view. I want to see more.
  12. You will have to remove auto-respawn to make it working, otherwise the team will be always alive(if the server has players) function AreSurvivorsGone() local t = {} for _, v in ipairs(getPlayersInTeam(teamSurvivor)) do if isPedDead(v) then table.insert(t, v) end end if #t == getPlayersInTeam(teamSurvivor) then return true end return false end addEventHandler("onPlayerWasted", root, function() if AreSurvivorsGone() then -- function for changing the map end end )
  13. You haven't even set zombie team, why do you expect it to work? Now when you die, you are zombie and after 5 seconds you get spawned with the knife and new skin. If it doesn't work just check error logs, I just modified few lines. local aa_root = getRootElement() teamSurvivor = createTeam ( "Humans", 0, 255, 0 ) teamZombies = createTeam ( "Zombies", 255, 0, 0 ) function loadmap(startmap, player) mapRoot = getResourceRootElement(startmap) local plrs = getElementsByType( "player" ); for i, plr in pairs( plrs ) do setElementData( plr, "Deaths", 0 ) -- ////////
  14. It works 100%, you had to make something wrong. Please upload somewhere your code because it's too big to post it here.
  15. Maybe you have a resource with the same event turned on.. like freeroam? According to this example it should work well.
  • Create New...