AmOt,7bk Posted February 25, 2014 Posted February 25, 2014 شوفو اغلاط اذا تقدرو تصلحوهم addEventHandler ( "onClientGUIClick", resourceRoot, function( ) if ( source == GUIEditor.button[3]) then triggerServerEvent ( "SetPTeam", localPlayer ) end end ) -- Server local team = createTeam( "team1", 0, 255, 0 ) addEvent( "SetPTeam", true ) addEventHandler( "SetPTeam", root, function( ) setPlayerTeam( client, team ) giveWeapon( client, 31, 500 ) end ) addEventHandler ( "onClientPlayerDamage", localPlayer, function( attacker ) if ( attacker and attacker ~= source ) then if ( getPlayerTeam( attacker ) and getPlayerTeam( attacker ) == getTeamFromName( "TeamName" ) ) then if ( getPlayerTeam( source ) ) then setElementPosition( source, x, y, z ) end end end end )
AmOt,7bk Posted February 25, 2014 Author Posted February 25, 2014 لما يكبس زر ويحطه بتيم اذا قتل يحط الي مقتول بمكان
AmOt,7bk Posted February 25, 2014 Author Posted February 25, 2014 مدري مثل وظيفه قاتل الي اخد تيم وقتل حد يروح المقتول مكان معين
AmOt,7bk Posted February 25, 2014 Author Posted February 25, 2014 بل تفصيل يكبس زر ويوخد وظيفه ويحطه بتيم وادا قتل حد ..،،
al-Kobra Posted February 25, 2014 Posted February 25, 2014 #Client Side : addEventHandler ( "onClientGUIClick", GUIEditor.button[3], function( ) local aa = getPlayerName ( getLocalPlayer ( ) ) setElementData ( getLocalPlayer ( ), "haha", aa, true ) triggerServerEvent ( "SetPTeam", localPlayer ) end end ) #Server Side : local team = createTeam( "team1", 0, 255, 0 ) addEvent( "SetPTeam", true ) addEventHandler( "SetPTeam", root, function( ) setPlayerTeam( source, team ) giveWeapon( source, 31, 500 ) end ) addEventHandler ( "onPlayerDamage", root, function( attacker, weapon ) if getElementData ( source, "haha" ) == true and attacker and attacker ~= source and getPlayerTeam( attacker ) and weapon == رقم السلاح and getTeamName ( getPlayerTeam ( source ) ) == "team" and getPlayerTeam ( attacker ) ~= getPlayerTeam ( source ) and getElementHealth ( attacker ) == 0 then setElementPosition( attacker, x, y, z ) end end ) جرب ,
ΞĪŚŚÀ Posted February 25, 2014 Posted February 25, 2014 This Big Noop = GaMer Baby انتحر ياولد فكنا تراكك غثيث مسوي مبرمج وكل اشوي ماأخذ اكواد من مودات الا تبي تسوي منهم مود ثاني ؟ وماتطفش كل اشوي عضوية والله حتى تيتي طفش منك
AmOt,7bk Posted February 25, 2014 Author Posted February 25, 2014 كوبرا يسلمو مع احترامي لك :* كود شغال بس في مشكله صغيره
فاّرس Posted February 25, 2014 Posted February 25, 2014 المفروض الكوبرا يعاقب او بالاصح يآخذ انذار لأنه تيتي قال لا تردون عليه !
AmOt,7bk Posted February 25, 2014 Author Posted February 25, 2014 المفروض الكوبرا يعاقب او بالاصح يآخذ انذار لأنه تيتي قال لا تردون عليه ! باندي نفكك يوم من القناه
Recommended Posts