Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. Anubhav

    ACL access

    One more good way: local users = {} local aclObjects = aclGroupListObjects(aclGetGroup("admin")) for k,v in ipairs(aclObjects) do table.insert(users, string.gsub(v, "user.", "") end
  2. I can't be elected because I'm not a Pakastani.
  3. i think only whole skin have id...objects don't have id type of stuff What is wrong with you? Objects do have ID's.
  4. No problem.
  5. Anubhav

    The last reply

    Ohai hi What did I SAY?
  6. See my gudx resource, it has a cursor type. You can make something like that!
  7. Anubhav

    [TUT] SQLite

    No problem.
  8. Buy function addCommandHandler("buyhouse", function(thePlayer) if isGuestAccount(getPlayerAccount(thePlayer)) then return outputChatBox('Guests can\'t buy houses!', thePlayer) end if(getElementData(thePlayer, "house:lastvisit")) and (getElementData(thePlayer, "house:lastvisit") ~= false) then local house = getElementData(thePlayer, "house:lastvisit") if(house) then local id = house local owner = houseData[id]["OWNER"] if(owner ~= "Недвижимость Штата") then outputChatBox("Вы не можете купить этот дом", thePlayer, 255, 0, 0) else local houses = 0 local baga = getPlayerAccount(thePlayer) local bagas = getAccountName(baga) for index, col in pairs(getElementsByType("colshape")) do if(getElementData(col, "house") == true) and (houseData[getElementData(col, "ID")]["OWNER"] == bagas) then houses = houses+1 if(houses == max_player_houses) then outputChatBox("У вас уже "..max_player_houses.." дома! Продайте один из них, чтобы приобрести новый", thePlayer, 255, 0, 0) return end end end local money = getPlayerMoney(thePlayer) local price = houseData[id]["PRICE"] if(money < price) then outputChatBox("У вас не достаточно денег, нужно еще "..(price-money).."$", thePlayer, 255, 0, 0) return end setHouseData(id, "OWNER", bagas) givePlayerMoney(thePlayer, -price) setAccountData(thePlayer,"owner", id) outputChatBox("Поздравляем! Вы приобрели себе новый дом", thePlayer, 0, 255, 0) setElementModel(houseData[id]["PICKUP"], 1272) setElementModel(houseData[id]["BLIP"], 32) end end end end)
  9. Good but that doesn't make it advanced.
  10. Indian members - Anubhav - iOm - Mann56 -Mr.Unpredictable -Derp42 -nik2799 -R!$Hu -Khadeer143 - Duckling
  11. ok
  12. Any problem if I'm a kid? I fight for justice, not for fun. Then probably mta:sa Team won't ever make a moder for urdu board which is not even pakistani + as you said a "KID" ! ! ! Doesn't matter if you are kid. + I voted for Mr.ShariQ instead of myself. Ignore the first post of mine, I changed it. So
  13. Anubhav

    The last reply

    BYE!
  14. A: mez fin' Q: Who are you to tell this? me want proper answer :@
  15. Anubhav

    [TUT] SQLite

    It's built in.
  16. Any problem if I'm a kid? I fight for justice, not for fun.
  17. Yes
  18. triggerServerEvent("saveDataForPlayer", resourceRoot, table)
  19. function giveGroove (playerSource, commandName, accountName) if accountName and getAccount(accountName) then aclGroupAddObject (aclGetGroup("GV M"), "user."..accountName) outputChatBox ("[sERVER] Player '"..accountName.."' adicionado com sucesso na Gangue Groove Street", playerSource) outputChatBox ("[sERVER] Você foi adicionado a Gangue Groove Street.", getAccountPlayer(getAccount(accountName))) else outputChatBox ("[sERVER] Conta não especificada.", playerSource) outputChatBox ("Correct syntax: /convidargv [accountName]", playerSource) end end addCommandHandler ("convidargv", giveGroove)
  20. getPlayerIdleTime?
  21. Store it in a client sided table then trigger it to server then remove the data from the table.
  22. O_o, he told me 23 hours then Shariq told me some 1-2 years lol
  23. Anubhav

    The last reply

    ok
  24. Ok guyz, Bilal is banned on MTA forums for 1-2 years. He is leaving MTA and he is realy tensed about this so he handed this to me. I'll create a topic on it once done. And about my school gamemode, I'll just release the DX Login panel. I must improve myself for that!
  25. My vote goes for SharIQ now.
×
×
  • Create New...