Jump to content

Search the Community

Showing results for tags 'teampanel'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 1 result

  1. hello all i created a teampanel all works fine but problem is in adding players to team which only leader must do! for exmaple i created team and if i need to add players to team i tried with if getElementData(localPlayer, "player.key") == "amazingcasino" then but it doesn't work below is full code addEventHandler("onClientGUIClick", guiRoot, function() if getElementData(localPlayer, "player.key") == "amazingcasino" then if source == GUIEditor.button[3] then local row, column = guiGridListGetSelectedItem( GUIEditor.gridlist[1]) if row == -1 then return end local playerName = guiGridListGetItemText( GUIEditor.gridlist[1],row,column) local player = getPlayerFromName(playerName) local team = getPlayerTeam(localPlayer) local teamName = getTeamName(team) if not playerName then guiGridListRemoveRow(row) return end triggerServerEvent("Add to team", localPlayer,playerName,teamName) end end end)
×
×
  • Create New...