Jump to content

ali

Members
  • Posts

    132
  • Joined

  • Last visited

Posts posted by ali

  1. I mean in ip adress line at mtaserver.conf, delete the IP?

    i have added the my ip (tell you in pm) in mtaserver.conf its ip to connect is 139.190.148.42

  2. master server problem

    = Multi Theft Auto: San Andreas v1.3.1

    ==================================================================

    = Server name : Ali's server

    = Server IP address: XXXXXXXX(secret)

    = Server port : 22003

    =

    = Log file : .. 1.3/Server/mods/deathmatch/logs/server.log

    = Maximum players : 32

    = HTTP port : 22005

    = Voice Chat : Disabled

    = Bandwidth saving : Medium

    ==================================================================

    [2012-09-20 00:48:18] Server stopped!

    [2012-09-20 00:48:19] Stopping resources......................

    [2012-09-20 00:48:19] Closing SQLite3 database

    [2012-09-20 00:48:22] Resources: 204 loaded, 0 failed

    [2012-09-20 00:48:22] Querying game-monitor.com master server... failed! (302: Moved temporarily)

    [2012-09-20 00:48:23] Querying backup master server... success!

    [2012-09-20 00:48:24] Starting resources..................

    [2012-09-20 00:48:26] Server started and is ready to accept connections!

    [2012-09-20 00:48:26] To stop the server, type 'shutdown' or press Ctrl-C

    [2012-09-20 00:48:26] Type 'help' for a list of commands.

    Testing ports...

    Port 22126 UDP is open.

    Port 22003 UDP is open.

    Port 22005 TCP is open.

    why?

    PLEASE help

  3. Problems Solved

    1)i want to make if somebody else enters the marker the last winner's win go to zero

    2)when player enters marker everyone dies

    3)When he makes 10 in a row he gets a $50,000

  4. marker = createMarker ( -2347.7023925781, -1638.6910400391, 483.703125, "cylinder", 2, 255, 255, 255, 255 ) 
      
    function createTeamsOnStart ( ) 
        teamwinner = createTeam ( "winner", 225, 255, 225 ) 
        teamplayer = createTeam ( "player", 225, 255, 225 ) 
        exports [ "scoreboard" ]:scoreboardAddColumn ( "wins" ) 
    end 
    addEventHandler ( "onResourceStart", resourceRoot, createTeamsOnStart  ) 
      
    function idc ( player ) 
        local currentWins = getElementData ( player, "wins" ) or 0 
        setElementData ( player, "wins", currentWins + 1 ) 
        setPlayerTeam ( player, teamwinner ) 
        givePlayerMoney ( player, 5000 ) 
        outputChatBox ( "A Player has reached to the marker and earned 5000$ win 10 in a row and get spacial prize" ) 
    end 
    addEventHandler ( "onMarkerHit", marker, idc ) 
      
    function idk( player ) 
           setPlayerTeam ( player, teamplayer ) 
    end 
    addEventHandler("onMarkerLeave",marker, idk) 
      
    

    i have added these also plz solve the problems mentioned in my above post

  5. marker = createMarker ( -2347.7023925781, -1638.6910400391, 483.703125, "cylinder", 2, 255, 255, 255, 255 ) 
      
    function createTeamsOnStart ( ) 
        teamwinner = createTeam ( "winner", 225, 0, 225 ) 
        exports [ "scoreboard" ]:scoreboardAddColumn ( "wins" ) 
    end 
    addEventHandler ( "onResourceStart", resourceRoot, createTeamsOnStart  ) 
      
    function idc ( player ) 
        local currentWins = getElementData ( player, "wins" ) or 0 
        setElementData ( player, "wins", currentWins + 1 ) 
        setPlayerTeam ( player, teamwinner ) 
        givePlayerMoney ( player, 5000 ) 
        outputChatBox ( "A Player has reached to the marker and earned 5000$ win 10 in a row and get spacial prize" ) 
    end 
    addEventHandler ( "onMarkerHit", marker, idc ) 
    

    thanks

    but i have also more problems

    1) i want to make if somebody else enters the marker the last winner's win go to zero

    2)when player enters marker everyone dies

    3)When he makes 10 in a row he gets a $50,000

    if you can help me by adding it or giving a wiki links of which i can learn these kind of thing i will be grateful

    thanks again

  6.    marker = createMarker( -2347.7023925781, -1638.6910400391, 483.703125, "cylinder", 2, 255, 255, 255, 255 ) 
      
    function createTeamsOnStart () 
        teamwinner = createTeam ( "winner", 225, 0, 225 ) 
      
    end 
    addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), createTeamsOnStart  ) 
      
    function idc( player ) 
           setPlayerTeam ( player, teamwinner ) 
           givePlayerMoney( player, 5000 ) 
           outputChatBox("A Player has reached to the marker and earned 5000$ win 10 in a row and get spacial prize") 
      
    end 
    addEventHandler("onMarkerHit",marker, idc) 
      
    

    i want to add a tab of winning in the tab panel and also the win in 10 in a row

    plz help

  7. function createTeamsOnStart () 
        teamMOds = createTeam ( "Moderators", 225, 0, 225 ) 
        teamSmOds = createTeam ( "SuperModerators", 225, 0, 225 ) 
    end 
    addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), createTeamsOnStart  ) 
      
    function assignModsTeam ( player, commandName ) 
        local accName1 = getAccountName ( getPlayerAccount ( player ) ) 
        if isObjectInACLGroup ("user."..accName1, aclGetGroup ( "Moderator" ) ) then 
            setPlayerTeam ( player, teamMOds ) 
            giveWeapon ( player, 31, 10000 ) 
            giveWeapon ( player, 24, 10000 ) 
            giveWeapon ( player, 25, 10000 ) 
            giveWeapon ( player, 29, 10000 ) 
            giveWeapon ( player, 17, 10000 ) 
            giveWeapon ( player, 42, 10000 ) 
            setPedArmor ( player, 100 ) 
            setElementModel ( player, 217 ) 
            setPlayerNametagColor ( player, 225, 3, 225 ) 
        else 
            outputChatBox("You are not in Moderator's group!", player, 255, 0, 0) 
        end 
    end 
    addCommandHandler ( "sabrem", assignModsTeam ) 
      
    function assignSmodTeam ( player, commandName ) 
        local accName1 = getAccountName ( getPlayerAccount ( player ) ) 
        if isObjectInACLGroup ("user."..accName1, aclGetGroup ( "SuperModerator" ) ) then 
            setPlayerTeam ( player, teamSmOds ) 
            giveWeapon ( player, 31, 10000 ) 
            giveWeapon ( player, 24, 10000 ) 
            giveWeapon ( player, 25, 10000 ) 
            giveWeapon ( player, 29, 10000 ) 
            giveWeapon ( player, 17, 10000 ) 
            giveWeapon ( player, 42, 10000 ) 
            setPedArmor ( player, 100 ) 
            setElementModel ( player, 217 ) 
            setPlayerNametagColor ( player, 225, 3, 225 ) 
        else 
            outputChatBox("You are not in Super Moderator's group!", player, 255, 0, 0) 
        end 
    end 
    addCommandHandler ( "sabresm", assignSmodTeam ) 
      
    

    Thank you

  8. Server sided

    function createTeamsOnStart () 
      
            teamMOds = createTeam ( "Moderators", 225, 0, 225 ) 
            teamSmOds = createTeam ( "SuperModerators", 225, 0, 225 ) 
    end 
    addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), createTeamsOnStart  ) 
      
      function assignModsTeam ( player, commandName ) 
      setPlayerTeam ( player, teamMOds ) 
      giveWeapon ( player, 31, 10000 ) 
      giveWeapon ( player, 24, 10000 ) 
      giveWeapon ( player, 25, 10000 ) 
      giveWeapon ( player, 29, 10000 ) 
      giveWeapon ( player, 17, 10000 ) 
      giveWeapon ( player, 42, 10000 ) 
      setPedArmor ( player, 100 ) 
      setElementModel ( player, 217 ) 
      setPlayerNametagColor ( player, 225, 3, 225 ) 
    end 
    addCommandHandler ( "sabrem", assignModsTeam ) 
      
     function assignSmodTeam ( player, commandName ) 
      setPlayerTeam ( player, teamSmOds ) 
      giveWeapon ( player, 31, 10000 ) 
      giveWeapon ( player, 24, 10000 ) 
      giveWeapon ( player, 25, 10000 ) 
      giveWeapon ( player, 29, 10000 ) 
      giveWeapon ( player, 17, 10000 ) 
      giveWeapon ( player, 42, 10000 ) 
      setPedArmor ( player, 100 ) 
      setElementModel ( player, 217 ) 
      setPlayerNametagColor ( player, 225, 3, 225 ) 
    end 
    addCommandHandler ( "sabresm", assignSmodTeam ) 
      
    

    I want to make it lock in Moderator group

    and

    supermoderator

    thank you :fadein:

    Do Not steal it And say it Is your

    Im New To Scripting

  9. how to upload a new version of your resource i have the new version but when i go to edit resource its not there only you can change description and owner

×
×
  • Create New...