Jump to content

Search the Community

Showing results for tags 'invite'.

  • 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. Amine#TN

    Team System

    Hi, I Have Problem In Team System !!! The Idea is to set ElementData by Panel... And when the Player have that ElementData he can join the Team .. Can anyone help me ?? PLease :\ This Is the Code ------------------------------------------------ function Invitar (player) local Vipteam = getTeamFromName("F.B.I") local thePlayer = getPlayerFromName(source) if (Vipteam) then setElementData ( source,"F.B.I",true) outputChatBox ( "#00FF00To Join #2EFF9A*F.B.I* #FF0000/accept",source, 0, 255, 0, true ) else cancelEvent() end end addEvent( "FBI", true) addEventHandler( "FBI", getRootElement(), Invitar ) ------------------------------------------------------------- addCommandHandler( "accept", function(player) if getElementData(player,"Player") and getElementData(player,"F.B.I") == true then setPlayerTeam(player, Vipteam) triggerClientEvent (source, "lainvitacion", source) else cancelEvent() outputChatBox ( "#FF0000You Are Not Invited To Any Clan !!",source, 0, 255, 0, true ) end end ) And This the Errors that i got :\ WARNING: TeamSystem\server.lua:54: Bad argument @ 'getPlayerFromName' [Expected string at argument 1, got player] WARNING: TeamSystem\server.lua:89: Bad argument @ 'getPlayerFromName' [Expected string at argument 1, got nil] WARNING :TeamSystem\server.lua:90: Bad argument @ 'getElementData' [Expected element at argument 1, got nil] Thanks
×
×
  • Create New...