yazeedalahmedi Posted November 20, 2012 Share Posted November 20, 2012 السلام عليكم ورحمه الله وبركاته marker = createMarker ( -2347.7023925781, -1638.6910400391, 483.703125, "cylinder", 2, 255, 255, 255, 255 ) winner = false 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 ) if ( winner and isElement ( winner ) ) then setElementData ( winner, "wins", 0 ) end winner = 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" ) for _, player in ipairs ( getElementsByType ( "player" ) ) do killPed ( player ) end end addEventHandler ( "onMarkerHit", marker, idc ) function idk ( player ) setPlayerTeam ( player, teamplayer ) end addEventHandler ( "onMarkerLeave",marker, idk ) ابغا الكودد؟؟ بدون تيم ويطلع بالتاب واذا احد فاز يحسبلو الفوز وشكراا Link to comment
TAPL Posted November 20, 2012 Share Posted November 20, 2012 https://forum.multitheftauto.com/viewtopic.php?f=119&t=46670 Link to comment
yazeedalahmedi Posted November 20, 2012 Author Share Posted November 20, 2012 marker = createMarker ( -2347.7023925781, -1638.6910400391, 483.703125, "cylinder", 2, 255, 255, 255, 255 ) winner = false 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 ) if ( winner and isElement ( winner ) ) then setElementData ( winner, "wins", 0 ) end winner = 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" ) for _, player in ipairs ( getElementsByType ( "player" ) ) do killPed ( player ) end end addEventHandler ( "onMarkerHit", marker, idc ) function idk ( player ) setPlayerTeam ( player, teamplayer ) end addEventHandler ( "onMarkerLeave",marker, idk ) Link to comment
./BlackBird# Posted November 20, 2012 Share Posted November 20, 2012 viewtopic.php?f=91&t=48005&p=475482 ابي افهم ليه تسرق الكود اتمنى ان يغلق Link to comment
yazeedalahmedi Posted November 20, 2012 Author Share Posted November 20, 2012 ماسرقت شيء لقيته موجوود بالموقع هنا Link to comment
./BlackBird# Posted November 20, 2012 Share Posted November 20, 2012 طيب انت ليه ما تسوي كود بنفسك Link to comment
yazeedalahmedi Posted November 20, 2012 Author Share Posted November 20, 2012 حاولت ويخرب وحاولت اكثر من مره Link to comment
./BlackBird# Posted November 20, 2012 Share Posted November 20, 2012 طيب انت حاولت ليه ما تحط كودك هنا Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now