BeCooL Posted November 15, 2012 Author Share Posted November 15, 2012 طيب فيه شي بسيط اهو ينقل كل الحرامية بس يعطي اللي لمس الماركر كيف اخليه يعطيهم كلهم Link to comment
./BlackBird# Posted November 15, 2012 Share Posted November 15, 2012 وضح ردك و حط كودك Link to comment
BeCooL Posted November 15, 2012 Author Share Posted November 15, 2012 وضح ردك و حط كودك يا شباب هذا الكود ينقل اللي لمس الماركر واللي جنبه كلهم setTimer(setElementPosition,20000,1,localPlayer,1601.4820556641,-1029.5321044922,23.90625) بس هذا يعطي اللي لمس الماركر بس setTimer(givePlayerMoney,20000,1,hitPlayer,16000) انا ابغى اذا لمس لاعب يعطي اللي معه في التيم فلوس كلهم بس بشرط انه يكون جنبه انشالله فهمتوا Link to comment
BeCooL Posted November 16, 2012 Author Share Posted November 16, 2012 isElementWithinMarker كذا ؟ if isElementWithinMarker(localPlayer, marker5) then setTimer(givePlayerMoney,20000,1,localPlayer,16000) f isElementWithinMarker(localPlayer, marker5) then setTimer(setElementPosition,20000,1,localPlayer,1601.4820556641,-1029.5321044922,23.90625) ? Link to comment
./BlackBird# Posted November 16, 2012 Share Posted November 16, 2012 ابي افهم الحين الملف سيرفر ليه تحطط localPlayer???????? Link to comment
BeCooL Posted November 16, 2012 Author Share Posted November 16, 2012 ابي افهم الحينالملف سيرفر ليه تحطط localPlayer???????? انا ماني فاهمها اصلا ! طيب اذا سيرفر وش احط ؟ Link to comment
./BlackBird# Posted November 16, 2012 Share Posted November 16, 2012 اذا كان الحدث لما يدخل الماركر يكون hitPlayer Link to comment
BeCooL Posted November 16, 2012 Author Share Posted November 16, 2012 اذا كان الحدث لما يدخل الماركر يكونhitPlayer طيب هذا الكود انا ابيه لما يكون اكثر من لاعب واحد بس يلمس الماركر وينقل كل الاعبين marker5 = createMarker( 1379.8220214844,-945.32458496094,2171.8156738281, "cylinder", 2, 100, 100, 100, 255) function theMarker( hitPlayer, matchingDimension ) if(getTeamName(getPlayerTeam(hitPlayer))=="Police")then setMarkerColor ( marker5, 65, 105, 255, 255 ) elseif (getTeamName(getPlayerTeam(hitPlayer))=="Criminal") then setMarkerColor ( marker5, 255, 0, 0, 255 ) R,G,B = getMarkerColor(marker5) if(R==255 and G==0 and B==0)then removeEventHandler( "onMarkerHit", marker5, theMarker ) if isElementWithinMarker(localPlayer, marker5) then setTimer(givePlayerMoney,20000,1,hitPlayer,16000) end end end end addEventHandler( "onMarkerHit", marker5, theMarker ) Link to comment
AhmadQTR Posted November 16, 2012 Share Posted November 16, 2012 اذا كان الحدث لما يدخل الماركر يكونhitPlayer طيب هذا الكود انا ابيه لما يكون اكثر من لاعب واحد بس يلمس الماركر وينقل كل الاعبين marker5 = createMarker( 1379.8220214844,-945.32458496094,2171.8156738281, "cylinder", 2, 100, 100, 100, 255) function theMarker( hitPlayer, matchingDimension ) if(getTeamName(getPlayerTeam(hitPlayer))=="Police")then setMarkerColor ( marker5, 65, 105, 255, 255 ) elseif (getTeamName(getPlayerTeam(hitPlayer))=="Criminal") then setMarkerColor ( marker5, 255, 0, 0, 255 ) R,G,B = getMarkerColor(marker5) if(R==255 and G==0 and B==0)then removeEventHandler( "onMarkerHit", marker5, theMarker ) if isElementWithinMarker(localPlayer, marker5) then setTimer(givePlayerMoney,20000,1,hitPlayer,16000) end end end end addEventHandler( "onMarkerHit", marker5, theMarker ) ينقلهم وين؟ وضح لو سمحت Link to comment
BeCooL Posted November 17, 2012 Author Share Posted November 17, 2012 اذا كان الحدث لما يدخل الماركر يكونhitPlayer طيب هذا الكود انا ابيه لما يكون اكثر من لاعب واحد بس يلمس الماركر وينقل كل الاعبين marker5 = createMarker( 1379.8220214844,-945.32458496094,2171.8156738281, "cylinder", 2, 100, 100, 100, 255) function theMarker( hitPlayer, matchingDimension ) if(getTeamName(getPlayerTeam(hitPlayer))=="Police")then setMarkerColor ( marker5, 65, 105, 255, 255 ) elseif (getTeamName(getPlayerTeam(hitPlayer))=="Criminal") then setMarkerColor ( marker5, 255, 0, 0, 255 ) R,G,B = getMarkerColor(marker5) if(R==255 and G==0 and B==0)then removeEventHandler( "onMarkerHit", marker5, theMarker ) if isElementWithinMarker(localPlayer, marker5) then setTimer(givePlayerMoney,20000,1,hitPlayer,16000) end end end end addEventHandler( "onMarkerHit", marker5, theMarker ) ينقلهم وين؟ وضح لو سمحت مو مهم وين ينقلهم ابغى تصحيح للكود انا احدد بعدين وين ينقل وين الردووود ؟ Link to comment
TAPL Posted November 17, 2012 Share Posted November 17, 2012 اذا كان الحدث لما يدخل الماركر يكونhitPlayer طيب هذا الكود انا ابيه لما يكون اكثر من لاعب واحد بس يلمس الماركر وينقل كل الاعبين marker5 = createMarker( 1379.8220214844,-945.32458496094,2171.8156738281, "cylinder", 2, 100, 100, 100, 255) function theMarker( hitPlayer, matchingDimension ) if(getTeamName(getPlayerTeam(hitPlayer))=="Police")then setMarkerColor ( marker5, 65, 105, 255, 255 ) elseif (getTeamName(getPlayerTeam(hitPlayer))=="Criminal") then setMarkerColor ( marker5, 255, 0, 0, 255 ) R,G,B = getMarkerColor(marker5) if(R==255 and G==0 and B==0)then removeEventHandler( "onMarkerHit", marker5, theMarker ) if isElementWithinMarker(localPlayer, marker5) then setTimer(givePlayerMoney,20000,1,hitPlayer,16000) end end end end addEventHandler( "onMarkerHit", marker5, theMarker ) قصدك ينقل كل اللاعبين الي في السيرفر؟ Link to comment
BeCooL Posted November 17, 2012 Author Share Posted November 17, 2012 اذا كان الحدث لما يدخل الماركر يكونhitPlayer طيب هذا الكود انا ابيه لما يكون اكثر من لاعب واحد بس يلمس الماركر وينقل كل الاعبين marker5 = createMarker( 1379.8220214844,-945.32458496094,2171.8156738281, "cylinder", 2, 100, 100, 100, 255) function theMarker( hitPlayer, matchingDimension ) if(getTeamName(getPlayerTeam(hitPlayer))=="Police")then setMarkerColor ( marker5, 65, 105, 255, 255 ) elseif (getTeamName(getPlayerTeam(hitPlayer))=="Criminal") then setMarkerColor ( marker5, 255, 0, 0, 255 ) R,G,B = getMarkerColor(marker5) if(R==255 and G==0 and B==0)then removeEventHandler( "onMarkerHit", marker5, theMarker ) if isElementWithinMarker(localPlayer, marker5) then setTimer(givePlayerMoney,20000,1,hitPlayer,16000) end end end end addEventHandler( "onMarkerHit", marker5, theMarker ) قصدك ينقل كل اللاعبين الي في السيرفر؟ لا قصدي اللي كانوا جنبه انا مسوي ماب يعني مثلا اللي يكون في الماب من تيم criminal Link to comment
AhmadQTR Posted November 17, 2012 Share Posted November 17, 2012 جنبه يعني وين؟ في الماركر ولا شنو Link to comment
|Mr|-Talal07-| Posted November 17, 2012 Share Posted November 17, 2012 جرب ذا -- Server Side -- marker5 = createMarker( 1379.8220214844,-945.32458496094,2171.8156738281, "cylinder", 2, 100, 100, 100, 255) addEventHandler("onMarkerHit",root, function (player) if ( source == marker5 ) then if ( getPlayerTeam(player) == getTeamFromName("Criminal") ) then for i,v in ipairs(getElementsByType("player")) do if ( getPlayerTeam(v) == getTeamFromName("Criminal") ) then setElementPosition(v,x,y,z) end end else outputChatBox("You Are Not in Team Criminal") end end end ) x,y,z = حط الاحداثيات الي تبيه ينتقل لها Link to comment
Tete omar Posted November 17, 2012 Share Posted November 17, 2012 ليش مسوي for i,v in ipairs(getElementsByType("player")) do طالما عندك ال player ? Link to comment
3NAD Posted November 17, 2012 Share Posted November 17, 2012 جرب ذا-- Server Side -- marker5 = createMarker( 1379.8220214844,-945.32458496094,2171.8156738281, "cylinder", 2, 100, 100, 100, 255) addEventHandler("onMarkerHit",root, function (player) if ( source == marker5 ) then if ( getPlayerTeam(player) == getTeamFromName("Criminal") ) then for i,v in ipairs(getElementsByType("player")) do if ( getPlayerTeam(v) == getTeamFromName("Criminal") ) then setElementPosition(v,x,y,z) end end else outputChatBox("You Are Not in Team Criminal") end end end ) x,y,z = حط الاحداثيات الي تبيه ينتقل لها كودك ذآ راح يسحب كل اللعيبه إلى الإحداثيات اللي حاطها # Link to comment
BeCooL Posted November 17, 2012 Author Share Posted November 17, 2012 جرب ذا-- Server Side -- marker5 = createMarker( 1379.8220214844,-945.32458496094,2171.8156738281, "cylinder", 2, 100, 100, 100, 255) addEventHandler("onMarkerHit",root, function (player) if ( source == marker5 ) then if ( getPlayerTeam(player) == getTeamFromName("Criminal") ) then for i,v in ipairs(getElementsByType("player")) do if ( getPlayerTeam(v) == getTeamFromName("Criminal") ) then setElementPosition(v,x,y,z) end end else outputChatBox("You Are Not in Team Criminal") end end end ) x,y,z = حط الاحداثيات الي تبيه ينتقل لها كودك ذآ راح يسحب كل اللعيبه إلى الإحداثيات اللي حاطها # طيب صلحوه لي !! Link to comment
abu5lf Posted November 17, 2012 Share Posted November 17, 2012 createTeam ( 'Criminal' ) local marker = createMarker ( 0, 0, 0 ) addEventHandler ( 'onMarkerHit', marker, function ( hitElement ) --outputChatBox ( '1' ) for _, v in ipairs ( getPlayersInTeam ( getTeamFromName ( 'Criminal' ) ) ) do --outputChatBox ( '2' ) if ( isElementWithinMarker ( v, marker ) ) then --outputChatBox ( '3' ) setElementPosition ( v, 10, 10, 10 ) end end end ) شخابيط ^ Link to comment
|Mr|-Talal07-| Posted November 18, 2012 Share Posted November 18, 2012 جرب ذا-- Server Side -- marker5 = createMarker( 1379.8220214844,-945.32458496094,2171.8156738281, "cylinder", 2, 100, 100, 100, 255) addEventHandler("onMarkerHit",root, function (player) if ( source == marker5 ) then if ( getPlayerTeam(player) == getTeamFromName("Criminal") ) then for i,v in ipairs(getElementsByType("player")) do if ( getPlayerTeam(v) == getTeamFromName("Criminal") ) then setElementPosition(v,x,y,z) end end else outputChatBox("You Are Not in Team Criminal") end end end ) x,y,z = حط الاحداثيات الي تبيه ينتقل لها كودك ذآ راح يسحب كل اللعيبه إلى الإحداثيات اللي حاطها # طيب هو قال اذا دخل واحد حرامي ينقل كل الحراميه الى مكان انا هذا الي فهمته Link to comment
BeCooL Posted November 28, 2012 Author Share Posted November 28, 2012 شباب كيف اذا ابغى المود يعطي كل اللي في السيرفر فلوس ؟ givePlayerMoney (thePlayer, 2000 ) Link to comment
iPrestege Posted November 28, 2012 Share Posted November 28, 2012 (edited) , Edited November 28, 2012 by Guest Link to comment
./BlackBird# Posted November 28, 2012 Share Posted November 28, 2012 شباب كيف اذا ابغى المود يعطي كل اللي في السيرفر فلوس ؟ givePlayerMoney (thePlayer, 2000 ) for _,v in ipairs (getElementsByType('player')) do givePlayerMoney(v,2000) end ما جربته Link to comment
3NAD Posted November 28, 2012 Share Posted November 28, 2012 givePlayerMoney ( root, 2000 ) 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