Jump to content

Search the Community

Showing results for tags 'ranks'.

  • 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. السلام عليكم شباب انا عامل كود كده رتب لتيم مافيا المشكله لما بكتب setRank فى F8 مش بيجبلى انا فى انهى رتبه ايه الخطاء شباب function L3yr1 ( _, killer ) local playeraccount = getPlayerAccount ( killer ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then setAccountData ( playeraccount, "scoreData", ( getAccountData ( playeraccount, "scoreData" )+1 ) or 1 ) outputChatBox ( "score +1", killer, 255,255,255 ) end end ------ addEventHandler ( "onPlayerWasted", root, L3yr1 ) ------ function L3yr2 ( _, acc ) if ( acc ) and not isGuestAccount ( acc ) then setAccountData ( acc, "scoreData", ( getAccountData ( acc, "scoreData" ) ) or 1 ) myrank = getAccountData ( acc, "scoreData" ) or 1 outputChatBox ( myrank, source, 255,255,255 ) end end ------ addEventHandler ( "onPlayerLogin", root, L3yr2 ) ------ function L3yr3 ( player ) local playeraccount = getPlayerAccount ( player ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then local team = getPlayerTeam ( source ) if team then local teamname = getTeamName ( team ) if teamname == "MAFIA" then local score = getAccountData ( playeraccount, "scoreData" ) or 1 local accountName = getAccountName ( playeraccount ) if score >= 50 then aclGroupAddObject (aclGetGroup("rank1"), "user."..accountName) outputChatBox ( "Now you get rank1", player, 255,255,255 ) elseif score >= 150 then outputChatBox ( "Now you get rank2", player, 255,255,255 ) aclGroupAddObject (aclGetGroup("rank2"), "user."..accountName) elseif score >= 350 then outputChatBox ( "Now you get rank3", player, 255,255,255 ) aclGroupAddObject (aclGetGroup("rank3"), "user."..accountName) elseif score >= 500 then outputChatBox ( "Now you get rank4", player, 255,255,255 ) aclGroupAddObject (aclGetGroup("rank4"), "user."..accountName) elseif score >= 1000 then outputChatBox ( "Now you get rank5", player, 255,255,255 ) aclGroupAddObject (aclGetGroup("rank5"), "user."..accountName) end end end end end ------- addCommandHandler ( "setRank", L3yr3 ) ------- function L3yr2 ( ) local acc = getPlayerAccount ( source ) if ( acc ) and not isGuestAccount ( acc ) then setAccountData ( acc, "scoreData", ( getAccountData ( acc, "scoreData" ) ) or 1 ) end end addEventHandler ( "onPlayerQuit", root, L3yr4 )
×
×
  • Create New...