AL-SAYED Posted November 25, 2012 Share Posted November 25, 2012 شاب بغيت الا استخدمه عشان اسوي نقطة تفتيش يعني ان اذا اللاعب وصل عن النقطة الشرطي يسوي له تقدم groveواذا كان في تيم الشرطة او اي تيم ثاني يطوف واذا كان في عصابة يطلع من السيارة ويقتله Link to comment
AhmadQTR Posted November 25, 2012 Share Posted November 25, 2012 (edited) createMarker getPlayerTeam removePedFromVehicle Edited November 25, 2012 by Guest Link to comment
AL-SAYED Posted November 25, 2012 Author Share Posted November 25, 2012 groveقصدي الشرطي الا يقتله اذا كان في فريق والاكواد حسب علمي ما يتحرك الشرطي Link to comment
AL-SAYED Posted November 25, 2012 Author Share Posted November 25, 2012 (edited) -- Client Side addEvent ( "wave", true ) addEventHandler ( "wave", root, function ( thePed ) setPedControlState ( thePed, "BD_GF_Wave", true ) outputChatBox ( "stop its check point", 255, 255, 0, true ) function ( ) x, y, z = getElementPosition ( localPlayer ) setPedAimTarget ( thePed, x, y, z ) end , 100, 0 ) setPedControlState ( thePed, "fire", true ) end ) addEvent ( "setPedStanding", true ) addEventHandler ( "setPedStanding", root, function ( thePed ) setPedControlState ( thePed, "BD_GF_Wave", false ) outputChatBox ( "* Stop Shooting !!!", 255, 255, 0, true ) for _, xaa in ipairs ( getTimers ( 100 ) ) do killTimer ( xaa ) end end ) --server thePositions = { { 1514.3770751953, -1677.8481445313, 14.046875 }, { 1515.3770751953, -1677.8481445313, 14.046875 }, } for _, AllPositions in ipairs ( thePositions ) do createPed ( 124, AllPositions [1], AllPositions [2], AllPositions [3] ) createMarker ( AllPositions [1], AllPositions [2], AllPositions [3] - 1, "cylinder", 50, 0, 0, 0, 0 ) end addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "wave", thePlayer, thePeds ) end if isPedInVehicle ( thePlayer ) then removePedFromVehicle ( thePlayer ) setTimer ( giveWeapon, 500, 0, thePed, 25, 99999, true ) triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePeds ) end end end end ) addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePeds ) setTimer ( giveWeapon, 500, 1, thePlayer, 25, 99999, true ) end end end end ) ذا الكود فيه مشاكل ان ما يطلق على اللاعب ولا يحرك ايده Edited November 25, 2012 by Guest Link to comment
MrCor Posted November 25, 2012 Share Posted November 25, 2012 أنا مسوي مود نفس الي تبيه تحط الأحاداثيات أذا شرطي يأشر مشي مشي أذا مو شرطي يسوي له قف و يجو شرطه يطلقو عليه المود أنا تاعب عليه و مشفرنه لسيرفري بس أذا تبي تشتريه كلمني خاص Link to comment
AhmadQTR Posted November 25, 2012 Share Posted November 25, 2012 -- Client Side addEvent ( "wave", true ) addEventHandler ( "wave", root, function ( thePed ) setPedAnimation ( thePed, "BD_GF_Wave", true ) outputChatBox ( "stop its check point", 255, 255, 0, true ) function ( ) x, y, z = getElementPosition ( localPlayer ) setPedAimTarget ( thePed, x, y, z ) end , 100, 0 ) setPedControlState ( thePed, "fire", true ) end ) addEvent ( "setPedStanding", true ) addEventHandler ( "setPedStanding", root, function ( thePed ) setPedAnimation ( thePed, "BD_GF_Wave", false ) outputChatBox ( "* Stop Shooting !!!", 255, 255, 0, true ) for _, xaa in ipairs ( getTimers ( 100 ) ) do killTimer ( xaa ) end end ) --server thePositions = { { 1514.3770751953, -1677.8481445313, 14.046875 }, { 1515.3770751953, -1677.8481445313, 14.046875 }, } for _, AllPositions in ipairs ( thePositions ) do createPed ( 124, AllPositions [1], AllPositions [2], AllPositions [3] ) createMarker ( AllPositions [1], AllPositions [2], AllPositions [3] - 1, "cylinder", 50, 0, 0, 0, 0 ) end addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "wave", thePlayer, thePeds ) end if isPedInVehicle ( thePlayer ) then removePedFromVehicle ( thePlayer ) setTimer ( giveWeapon, 500, 0, thePed, 25, 99999, true ) triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePeds ) end end end end ) addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePeds ) setTimer ( giveWeapon, 500, 1, thePlayer, 25, 99999, true ) end end end end ) Link to comment
abu5lf Posted November 25, 2012 Share Posted November 25, 2012 -- Client Side addEvent ( "wave", true ) addEventHandler ( "wave", root, function ( thePed ) setPedControlState ( thePed, "BD_GF_Wave", true ) outputChatBox ( "stop its check point", 255, 255, 0, true ) function ( ) x, y, z = getElementPosition ( localPlayer ) setPedAimTarget ( thePed, x, y, z ) end , 100, 0 ) setPedControlState ( thePed, "fire", true ) end ) addEvent ( "setPedStanding", true ) addEventHandler ( "setPedStanding", root, function ( thePed ) setPedControlState ( thePed, "BD_GF_Wave", false ) outputChatBox ( "* Stop Shooting !!!", 255, 255, 0, true ) for _, xaa in ipairs ( getTimers ( 100 ) ) do killTimer ( xaa ) end end ) --server thePositions = { { 1514.3770751953, -1677.8481445313, 14.046875 }, { 1515.3770751953, -1677.8481445313, 14.046875 }, } for _, AllPositions in ipairs ( thePositions ) do createPed ( 124, AllPositions [1], AllPositions [2], AllPositions [3] ) createMarker ( AllPositions [1], AllPositions [2], AllPositions [3] - 1, "cylinder", 50, 0, 0, 0, 0 ) end addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "wave", thePlayer, thePeds ) end if isPedInVehicle ( thePlayer ) then removePedFromVehicle ( thePlayer ) setTimer ( giveWeapon, 500, 0, thePed, 25, 99999, true ) triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePeds ) end end end end ) addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePeds ) setTimer ( giveWeapon, 500, 1, thePlayer, 25, 99999, true ) end end end end ) ذا الكود فيه مشاكل ان ما يطلق على اللاعب ولا يحرك ايده كود عناد بس مغير الاسماء الله يصلحك Link to comment
AhmadQTR Posted November 25, 2012 Share Posted November 25, 2012 -- Client Side addEvent ( "wave", true ) addEventHandler ( "wave", root, function ( thePed ) setPedControlState ( thePed, "BD_GF_Wave", true ) outputChatBox ( "stop its check point", 255, 255, 0, true ) function ( ) x, y, z = getElementPosition ( localPlayer ) setPedAimTarget ( thePed, x, y, z ) end , 100, 0 ) setPedControlState ( thePed, "fire", true ) end ) addEvent ( "setPedStanding", true ) addEventHandler ( "setPedStanding", root, function ( thePed ) setPedControlState ( thePed, "BD_GF_Wave", false ) outputChatBox ( "* Stop Shooting !!!", 255, 255, 0, true ) for _, xaa in ipairs ( getTimers ( 100 ) ) do killTimer ( xaa ) end end ) --server thePositions = { { 1514.3770751953, -1677.8481445313, 14.046875 }, { 1515.3770751953, -1677.8481445313, 14.046875 }, } for _, AllPositions in ipairs ( thePositions ) do createPed ( 124, AllPositions [1], AllPositions [2], AllPositions [3] ) createMarker ( AllPositions [1], AllPositions [2], AllPositions [3] - 1, "cylinder", 50, 0, 0, 0, 0 ) end addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "wave", thePlayer, thePeds ) end if isPedInVehicle ( thePlayer ) then removePedFromVehicle ( thePlayer ) setTimer ( giveWeapon, 500, 0, thePed, 25, 99999, true ) triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePeds ) end end end end ) addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePeds ) setTimer ( giveWeapon, 500, 1, thePlayer, 25, 99999, true ) end end end end ) ذا الكود فيه مشاكل ان ما يطلق على اللاعب ولا يحرك ايده كود عناد بس مغير الاسماء الله يصلحك Link to comment
MrCor Posted November 25, 2012 Share Posted November 25, 2012 -- Client Side addEvent ( "wave", true ) addEventHandler ( "wave", root, function ( thePed ) setPedAnimation ( thePed, "BD_GF_Wave", true ) outputChatBox ( "stop its check point", 255, 255, 0, true ) function ( ) x, y, z = getElementPosition ( localPlayer ) setPedAimTarget ( thePed, x, y, z ) end , 100, 0 ) setPedControlState ( thePed, "fire", true ) end ) addEvent ( "setPedStanding", true ) addEventHandler ( "setPedStanding", root, function ( thePed ) setPedAnimation ( thePed, "BD_GF_Wave", false ) outputChatBox ( "* Stop Shooting !!!", 255, 255, 0, true ) for _, xaa in ipairs ( getTimers ( 100 ) ) do killTimer ( xaa ) end end ) --server thePositions = { { 1514.3770751953, -1677.8481445313, 14.046875 }, { 1515.3770751953, -1677.8481445313, 14.046875 }, } for _, AllPositions in ipairs ( thePositions ) do createPed ( 124, AllPositions [1], AllPositions [2], AllPositions [3] ) createMarker ( AllPositions [1], AllPositions [2], AllPositions [3] - 1, "cylinder", 50, 0, 0, 0, 0 ) end addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "wave", thePlayer, thePeds ) end if isPedInVehicle ( thePlayer ) then removePedFromVehicle ( thePlayer ) setTimer ( giveWeapon, 500, 0, thePed, 25, 99999, true ) triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePeds ) end end end end ) addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePeds ) setTimer ( giveWeapon, 500, 1, thePlayer, 25, 99999, true ) end end end end ) أصلا هذا الكود بس يخليه يطلق مو يأشر له مشي أو وقف 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