ABO-SR777777A Posted October 19, 2012 Share Posted October 19, 2012 ابي مثلا عندي 2 تيمين ابي مثلا الفريق الاحمر الى معه مايقتل الى في فريقه بليز Link to comment
TAPL Posted October 19, 2012 Share Posted October 19, 2012 https://forum.multitheftauto.com/viewtopic.php?f=119&t=49169 Link to comment
iPrestege Posted October 19, 2012 Share Posted October 19, 2012 اولا اصنع تيم : function CreateTheTeam ( ) theTeam = createTeam ( "xD", 0, 255, 0 ) setPlayerTeam ( source , theTeam ) end addEventHandler("onPlayerJoin", root, CreateTheTeam) ثانيا كود منع قتال اعضاء التيم : function setFriendlyFireOff ( ) for _,V in ipairs ( getElementsByType("team") ) do if ( getTeamFriendlyFire ( V ) == true ) then setTeamFriendlyFire ( V, false ) end end end addEventHandler("onResourceStart", resourceRoot, setFriendlyFireOff) 3NAD من ^ Link to comment
ABO-SR777777A Posted October 19, 2012 Author Share Posted October 19, 2012 جزاكم الله خير باجرب Link to comment
GAME_OVER!! Posted October 19, 2012 Share Posted October 19, 2012 --Server Side -- addEventHandler("onResourceStart", resourceRoot,function () team = createTeam ( "TeamName", 0, 255, 0 ) end) setTimer(function() setTeamFriendlyFire ( team , false ) end,50,1) 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