Jump to content

papam77

Members
  • Posts

    517
  • Joined

  • Last visited

Everything posted by papam77

  1. Hello, i am looking for any scripter for our server called KFC-Gaming ( http://kfc-gaming.eu ) My skype: dee.jay792
  2. Hello how can get my password from internal.db ?
  3. Hello, how can make ranking on web from this panel https://community.multitheftauto.com/ind ... ls&id=6557. Only: Name Money Country Status DeeJay 50$ CZ Online
  4. papam77

    Changing map

    Hello how can make this changing ? https://www.youtube.com/watch?v=2X4D_4Qi ... e=youtu.be
  5. And please add button close
  6. Here is it https://community.multitheftauto.com/ind ... ls&id=5801
  7. Nothing work it ! He was unlogged And one ask I have this --Vars --Author TwiX [[Don't Remove This Line]] local price = 500; addEventHandler ( 'onGamemodeMapStart', root, function ( mapres ) local txMapName = getResourceName ( mapres ); pHasBought = false; allGotVehicle = false; getAliveGuys ( 3 ); saveSqlPlayed ( txMapName ); end ) function rStart ( ) pHasBought = false; allGotVehicle = false; executeSQLQuery ( "CREATE TABLE IF NOT EXISTS tx_MapShop ( mapName TEXT, played INTEGER )" ); getAllMapsFromManager ( ); txBMaps = { } end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource ( ) ), rStart ) function buyNextMap ( player, mapName ) if not player or not mapName then return end if ( isGuestAccount ( getPlayerAccount ( player ) ) == false ) then if pHasBought == false then local money = tonumber ( getPlayerMoney ( player ) ); local theTime = getMsFromMin ( 10 ); if money >= tonumber ( price ) then if ( not txBMaps [ mapName ] ) then txBMaps [ mapName ] = true executeCommandHandler ( "bm", player, mapName ); --This function need admin rights pHasBought = player; setTimer ( removeMapFromList, theTime.ms, 1, mapName ); else outputChatBox ( "* #ff0000'#ffffff" .. mapName .. "#ff0000' #ffffffwill be #abcdefavailable #ffffffin #abcdef10 #ffffffminutes", player, 255, 255, 255, true ); end else outputChatBox ( "* You #abcdefdon't #ffffffhave enough #abcdefmoney #ffffffto buy the map!", player, 255, 255, 255, true ); end else outputChatBox ( "* A #abcdefmap #ffffffis already bought at the moment! Please #abcdeftry #ffffffagain later", player, 255, 255, 255, true ); end else outputChatBox ( "* You should be #abcdeflogged in to buy the map!", player, 255, 255, 255, true ); end end addEvent ( "doBuyMap", true ) addEventHandler ( "doBuyMap", root, buyNextMap ) function removeMapFromList ( mapName ) outputChatBox ( "* #abcdef" .. mapName .. " #ffffff - #ffffffis now #abcdefavailable #ffffffat the #abcdefMap Shop!", root, 255, 255, 255, true ); txBMaps [ mapName ] = nil; end addEvent ( "onRaceStateChanging", true ) addEventHandler ( "onRaceStateChanging", root, function ( newState ) if ( newState == "Running" ) then for k,v in pairs ( getElementsByType ( "player" ) ) do local hisVehicle = getPedOccupiedVehicle ( v ); if not hisVehicle then return end setElementData (v, "gotMoney", false ); if isPedInVehicle ( v ) then allGotVehicle = true; end end if allGotVehicle then getAliveGuys ( 1 ); end end end ) addEventHandler ( "onPlayerJoin", root, function ( ) setElementData ( source, "gotMoney", false ); --Atm only setElementData end ) --Functions by Admin Panel (lil_Toady) function getAllMaps ( loadList, s ) local tableOut if loadList then tableOut = { }; local gamemodes = { }; gamemodes = call ( getResourceFromName ( "mapmanager" ), "getGamemodes" ); for id, gamemode in ipairs ( gamemodes ) do tableOut [ id ] = { }; tableOut [ id ].name = getResourceInfo(gamemode,"name") or getResourceName(gamemode); tableOut [ id ].resname = getResourceName(gamemode); tableOut [ id ].maps = {}; local maps = call ( getResourceFromName ( "mapmanager" ), "getMapsCompatibleWithGamemode", gamemode ); for _, map in ipairs ( maps ) do table.insert ( tableOut [ id ][ "maps" ],{ name = getResourceInfo ( map, "name" ) or getResourceName ( map ),resname = getResourceName ( map ) } ); end table.sort ( tableOut [ id ][ "maps" ],sortCompareFunction ); end table.sort ( ( tableOut ), sortCompareFunction ); table.insert ( tableOut, { name = "no gamemode", resname = "no gamemode", maps = { } } ); local countGmodes = #tableOut; local maps = call ( getResourceFromName ( "mapmanager" ), "getMapsCompatibleWithGamemode" ); for id, map in ipairs ( maps ) do table.insert ( tableOut [ countGmodes ][ "maps" ],{ name = getResourceInfo ( map, "name" ) or getResourceName ( map ), resname = getResourceName (map ) } ); end table.sort ( tableOut [ countGmodes ][ "maps" ], sortCompareFunction ); end local map = call ( getResourceFromName ( "mapmanager" ), "getRunningGamemodeMap" ); local gamemode = call ( getResourceFromName ( "mapmanager" ), "getRunningGamemode" ); gamemode = gamemode and getResourceName ( gamemode ) or "N/A"; map = map and getResourceName ( map ) or "N/A"; triggerClientEvent ( "refreshCompleted", loadList, tableOut, gamemode, map, s ); end addEvent ( "doRefreshMapList", true ) addEventHandler ( "doRefreshMapList", root, getAllMaps ) function sortCompareFunction ( s1, s2 ) if type ( s1 ) == "table" and type ( s2 ) == "table" then s1, s2 = s1.name, s2.name; end s1, s2 = s1:lower ( ), s2:lower( ); if s1 == s2 then return false end local byte1, byte2 = string.byte ( s1:sub ( 1, 1 ) ), string.byte ( s2:sub ( 1, 1 ) ); if not byte1 then return true elseif not byte2 then return false elseif byte1 < byte2 then return true elseif byte1 == byte2 then return sortCompareFunction ( s1:sub ( 2 ), s2:sub ( 2 ) ); else return false end end function getAliveGuys ( mode ) if not mode then return end if mode == 1 then pAlive = { }; for _, player in ipairs ( getElementsByType ( "player" ) ) do if ( getElementData ( player, "state" ) == "alive" ) then table.insert ( pAlive, player ); end end return pAlive; elseif mode == 2 then return #pAlive; elseif mode == 3 then if pAlive then pAlive = nil; end return false end end function getDeadGuys ( ) local pDead = 0 for _, player in ipairs ( getElementsByType ( "player" ) ) do if getElementData ( player, "state" ) == "dead" then pDead = pDead + 1; end end return pDead; end function giveMoneyWinDie ( ) local account = getPlayerAccount ( source ); local playersAlive = getAliveGuys ( 2 ); local playersDead = getDeadGuys ( ); local pAll = playersAlive + playersDead; local checkYourPos = pAll - playersDead; local pos = nil; if tonumber ( checkYourPos ) == 1 then pos = 1 else pos = checkYourPos + 1; end if tonumber ( checkYourPos ) == 2 then pos = 2; end if pos == 1 or pos == 21 or pos == 31 then posName = "st"; elseif pos == 2 or pos == 22 or pos == 32 then posName = "nd"; elseif pos == 3 or pos == 23 or pos == 33 then posName = "rd"; else posName = "th"; end if not getElementData ( source, "gotMoney" ) then local money = math.ceil ( getPlayerCount ( ) * 50 / pos ); givePlayerMoney ( source, money ); outputChatBox ( "* You were #abcdef[#ff0000" .. pos .. posName .. "#abcdef]#ffffff and #abcdefearned #ffffff" .. money .. "#00ff00$!", source, 255, 255, 255, true ); setElementData ( source, "gotMoney", true ); if account then setAccountData ( account, "money", tostring ( getPlayerMoney ( source ) ) ); end end end addEventHandler ( "onPlayerWasted", root , giveMoneyWinDie ) I need it only on command /dshop not bind
  8. Mods and Smods arent in group.
  9. That i need to one group more acls ACL: KFCModerator KFCSuperModerator Admin
  10. So work it now ! ty. But add to this KFCModerator and KFCSuperModerator in 1 group every admins mods smods function createAdminTeamOnStart () AdminTeam = createTeam ( "Proklatě Dobré Kuře", 0, 255, 255 )-- create a new team and named it 'Admin' end addEventHandler("onResourceStart", resourceRoot, createAdminTeamOnStart) -- add an event handler function setAdminTeam() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then -- if he is admin setPlayerTeam(source, AdminTeam) -- set him to admin team end end addEventHandler("onPlayerLogin",getRootElement(),setAdminTeam) -- add an event handler
  11. http://www.img.tpx.cz/uploads/errors.png
  12. Only spectators are with errors
  13. debugscript 3 what is it ?
  14. Player is in Team but only for 0.5sec. Why ?
  15. Yes, if player login automaticaly check it and add to group if player is in group Donators
  16. full script please i can't do it
  17. Hello i need any script for Donator Group in "TAB" When player connect to server he/she will add to "TAB" Donator group. <group name="Donators"> <acl name="Donators"></acl> <acl name="DonatorsTeam"></acl> <object name="user.papam77"></object> <object name="user.Vopic"></object> <acl name="Donators"> <right name="resource.votemanager" access="true"></right> <right name="general.adminpanel" access="false"></right> <right name="general.tab_players" access="false"></right> <right name="general.tab_resources" access="false"></right> <right name="general.tab_maps" access="false"></right> <right name="general.tab_server" access="false"></right> <right name="general.tab_bans" access="false"></right> <right name="general.tab_adminchat" access="false"></right> <right name="command.kick" access="false"></right> <right name="command.freeze" access="false"></right> <right name="command.mute" access="false"></right> <right name="command.setnick" access="false"></right> <right name="command.shout" access="false"></right> <right name="command.spectate" access="false"></right> <right name="command.slap" access="false"></right> <right name="command.setgroup" access="false"></right> <right name="command.sethealth" access="false"></right> <right name="command.setarmour" access="false"></right> <right name="command.setmoney" access="false"></right> <right name="command.setskin" access="false"></right> <right name="command.setteam" access="false"></right> <right name="command.giveweapon" access="false"></right> <right name="command.setstat" access="false"></right> <right name="command.jetpack" access="false"></right> <right name="command.warp" access="false"></right> <right name="command.setdimension" access="false"></right> <right name="command.setinterior" access="false"></right> <right name="command.givevehicle" access="false"></right> <right name="command.repair" access="false"></right> <right name="command.blow" access="false"></right> <right name="command.destroy" access="false"></right> <right name="command.customize" access="false"></right> <right name="command.setcolor" access="false"></right> <right name="command.setpaintjob" access="false"></right> <right name="command.listmessages" access="false"></right> <right name="command.readmessage" access="false"></right> <right name="command.listresources" access="false"></right> <right name="command.start" access="false"></right> <right name="command.stop" access="false"></right> <right name="command.stopall" access="false"></right> <right name="command.restart" access="false"></right> <right name="command.execute" access="false"></right> <right name="command.delete" access="false"></right> <right name="command.setpassword" access="false"></right> <right name="command.setwelcome" access="false"></right> <right name="command.setgame" access="false"></right> <right name="command.setmap" access="false"></right> <right name="command.setweather" access="false"></right> <right name="command.blendweather" access="false"></right> <right name="command.setblurlevel" access="false"></right> <right name="command.setwaveheight" access="false"></right> <right name="command.setskygradient" access="false"></right> <right name="command.setgamespeed" access="false"></right> <right name="command.setgravity" access="false"></right> <right name="command.settime" access="false"></right> <right name="function.shutdown" access="false"></right> <right name="command.setfpslimit" access="false"></right> <right name="command.ban" access="false"></right> <right name="command.unban" access="false"></right> <right name="command.banip" access="false"></right> <right name="command.unbanip" access="false"></right> <right name="command.banserial" access="false"></right> <right name="command.unbanserial" access="false"></right> <right name="command.listbans" access="false"></right> <right name="command.votemap" access="true"></right>
  18. But i need lua editor for making some scripts for my mta server
  19. Hello, where can download c++ editor ?
×
×
  • Create New...