Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. Easilly.. I bought a 2 euro simple VPS and I installed a MTA server. You can get as many slots as you want!
  2. Wrong syntax. Line 17 should be: outputChatBox('1')
  3. function maps() Maps = {} for i, map in ipairs (exports.mapmanager:getMapsCompatibleWithGamemode(exports.mapmanager:getRunningGamemode() )) do if get(getResourceName(map)..".#respawn") == "none" then Maps[i] = getResourceInfo(map, "name") end end return Maps end function check(p,_,mapName) local map = maps() for i, v in ipairs (map) do outputChatBox(i.." - "..v) if string.find(v, string.upper(mapName)) then outputChatBox("map found") end end end addCommandHandler("check",check)
  4. Also use a tostring at blood in function Cambia. ANd you forgot to put .. dots
  5. Yes you've t o purchase the cPanel. http://tcadmin.com/ is a famous panel used in MTA:SA Hosting Companies.
  6. Anubhav

    Melle

    How to detect when player used melee weapons while firing? Any way?
  7. Use events for detecting a click and output. onClientGUIClick.
  8. onClientPlayerLogin is not a event.
  9. local allowedGroups = { "Admin" } function isAllowed( player ) local acc = getPlayerAccount( player ) -- Check player's account if isGuestAccount( acc ) or not acc then -- See if it's a guest account or it's returning false return false -- Then return false end -- End the if statment local acc = getAccountName( acc ) -- Check player's account name for i, v in ipairs( allowedGroups ) do -- Loop through table if isObjectInACLGroup( "user."..acc, aclGetGroup( v ) ) then -- Check if he is in the group return true end end return false end function Announcement(thePlayer, commandName, ...) local players = getElementsByType("player") local playerName = getPlayerName ( thePlayer ) local chatContent = {...} if isAllowed( thePlayer ) ~= true then return end for index, player in ipairs ( players ) do outputChatBox( "Announcement from " .. playerName.. ": " ..table.concat ( chatContent, " "), player, 255, 190, 105) end end addCommandHandler( "ad", Announcement ) Explained ^
  10. mtasa://37.59.111.116:22003 ( Just did CTRL+V and this came up. My testing server for zi. Don't come to it, it's passworded. LOL! )
  11. Excuse me, Are you trying to trick us? A note for everyone, don't help him. He's trying to find solution, BUT HE ONLY DID IT. It's Yazn and he's in-game.
  12. Who told you that? They're a lua string libary. Not a lua string but a function. You can use them server or client. Available for both
  13. http://forum.albonius.com/sapd/(sapd)-application-center-(-v-0-0-1-)-(-coming-soon-)/msg5641/#msg5641 ( LOL!!! )
  14. Anubhav

    Tables

    Use the db functions. They're better for me.
  15. /lock Project is cancelled. Reason: My lap-top fell down and it's screen and HARD DISK were damaged. Hard disk was changed and screen was replaced. Sad to tell this
  16. 2nd line. It should be localPlayer
  17. Use getTickCount method. When you click just make a variable setting to getTickCount( ) then when you loop before that, check: if getTickCount() - yourVariables > 1000 then -- easier method is a setTimer
×
×
  • Create New...