SaydOo Posted May 19, 2013 Share Posted May 19, 2013 -- Server Side thePositions = { { 1514.3770751953, -1677.8481445313, 14.046875 }, { 1515.3770751953, -1677.8481445313, 14.046875 }, { 1516.3770751953, -1677.8481445313, 14.046875 }, { 1517.3770751953, -1677.8481445313, 14.046875 }, { 1518.3770751953, -1677.8481445313, 14.046875 }, { 1513.3770751953, -1678.8481445313, 14.046875 }, { 1513.3770751953, -1679.8481445313, 14.046875 }, { 1513.3770751953, -1680.8481445313, 14.046875 }, { 1513.3770751953, -1681.8481445313, 14.046875 }, { 1513.3770751953, -1682.8481445313, 14.046875 }, } for _, AllPositions in ipairs ( thePositions ) do createPed ( 300, AllPositions [1], AllPositions [2], AllPositions [3] ) createMarker ( AllPositions [1], AllPositions [2], AllPositions [3] - 1, "cylinder", 5, 0, 0, 0, 0 ) for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do setPedStat ( thePeds, 77, 999 ) setPedWeaponSlot ( thePeds, 3 ) setTimer ( giveWeapon, 3000, 0, thePeds, 25, 9999, true ) end end addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "Skulls" ) then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePeds ) end if isPedInVehicle ( thePlayer ) then destroyElement ( getPedOccupiedVehicle ( thePlayer ) ) end end end end ) addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "Skulls" ) then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePeds ) setTimer ( giveWeapon, 500, 1, thePeds, 25, 9999, true ) end end end end ) ابيه يطلق على تيم Grove Link to comment
iMr.Dawix~# Posted May 19, 2013 Share Posted May 19, 2013 Grove حط مكانها Skulls في سطر 29 و 44 Link to comment
iMr.Dawix~# Posted May 19, 2013 Share Posted May 19, 2013 -- Server Side thePositions = { { 1514.3770751953, -1677.8481445313, 14.046875 }, { 1515.3770751953, -1677.8481445313, 14.046875 }, { 1516.3770751953, -1677.8481445313, 14.046875 }, { 1517.3770751953, -1677.8481445313, 14.046875 }, { 1518.3770751953, -1677.8481445313, 14.046875 }, { 1513.3770751953, -1678.8481445313, 14.046875 }, { 1513.3770751953, -1679.8481445313, 14.046875 }, { 1513.3770751953, -1680.8481445313, 14.046875 }, { 1513.3770751953, -1681.8481445313, 14.046875 }, { 1513.3770751953, -1682.8481445313, 14.046875 }, } local theTeam = getTeamFromName("Grove") for _, AllPositions in ipairs ( thePositions ) do createPed ( 300, AllPositions [1], AllPositions [2], AllPositions [3] ) createMarker ( AllPositions [1], AllPositions [2], AllPositions [3] - 1, "cylinder", 5, 0, 0, 0, 0 ) for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do setPedStat ( thePeds, 77, 999 ) setPedWeaponSlot ( thePeds, 3 ) setTimer ( giveWeapon, 3000, 0, thePeds, 25, 9999, true ) end end addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == theTeam then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePeds ) end if isPedInVehicle ( thePlayer ) then destroyElement ( getPedOccupiedVehicle ( thePlayer ) ) end end end end ) addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == theTeam then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePeds ) setTimer ( giveWeapon, 500, 1, thePeds, 25, 9999, true ) end end end end ) Link to comment
SaydOo Posted May 20, 2013 Author Share Posted May 20, 2013 ماصار شيي هل هو من الclient -- Client Side addEvent ( "setPedAttacking", true ) addEventHandler ( "setPedAttacking", root, function ( thePed )( thePed1 )( thePed2 )( thePed3 ) setTimer ( function ( ) x, y, z = getElementPosition ( localPlayer ) setPedAimTarget ( thePed, x, y, z ) setPedAimTarget ( thePed1, x, y, z ) setPedAimTarget ( thePed2, x, y, z ) setPedAimTarget ( thePed3, x, y, z ) end , 100, 0 ) setPedControlState ( thePed, "fire", true ) setPedControlState ( thePed1, "fire", true ) setPedControlState ( thePed2, "fire", true ) setPedControlState ( thePed3, "fire", true ) outputChatBox ( "بدء اطلاق النار", 255, 255, 0, true ) end ) addEvent ( "setPedStanding", true ) addEventHandler ( "setPedStanding", root, function ( thePed )( thePed1 )( thePed2 )( thePed3 ) setPedControlState ( thePed, "fire", false ) setPedControlState ( thePed1, "fire", false ) setPedControlState ( thePed2, "fire", false ) setPedControlState ( thePed3, "fire", false ) outputChatBox ( "وقفو اطلاق النار", 255, 255, 0, true ) for _, x3NAD in ipairs ( getTimers ( 100 ) ) do killTimer ( x3NAD ) end end ) Link to comment
SaydOo Posted May 20, 2013 Author Share Posted May 20, 2013 (edited) انا قلت وش الغلط ماقلت سو ليي مود كامل !!! edit : عدلتت علييه الشخصيات تطلع وتحمل اسلحة بس ماتطلق على تيم Grove Edited May 20, 2013 by Guest Link to comment
3NAD Posted May 20, 2013 Share Posted May 20, 2013 كيف مسويها كذا function ( thePed )( thePed1 )( thePed2 )( thePed3 ) , حطهم كلهم مآبين قوسين وافصلهم بـ علامة الفاصلة Link to comment
AboShanab Posted May 20, 2013 Share Posted May 20, 2013 -- Client Side ! addEvent ( "setPedAttacking", true ) addEventHandler ( "setPedAttacking", root, function ( thePed, thePed1, thePed2, thePed3 ) setTimer ( function ( ) x, y, z = getElementPosition ( localPlayer ) setPedAimTarget ( thePed, x, y, z ) setPedAimTarget ( thePed1, x, y, z ) setPedAimTarget ( thePed2, x, y, z ) setPedAimTarget ( thePed3, x, y, z ) end , 100, 0 ) setPedControlState ( thePed, "fire", true ) setPedControlState ( thePed1, "fire", true ) setPedControlState ( thePed2, "fire", true ) setPedControlState ( thePed3, "fire", true ) outputChatBox ( "بدء اطلاق النار", 255, 255, 0, true ) end ) addEvent ( "setPedStanding", true ) addEventHandler ( "setPedStanding", root, function ( thePed, thePed1, thePed2, thePed3 ) setPedControlState ( thePed, "fire", false ) setPedControlState ( thePed1, "fire", false ) setPedControlState ( thePed2, "fire", false ) setPedControlState ( thePed3, "fire", false ) outputChatBox ( "وقفو اطلاق النار", 255, 255, 0, true ) for _, x3NAD in ipairs ( getTimers ( 100 ) ) do killTimer ( x3NAD ) end end ) Link to comment
SaydOo Posted May 20, 2013 Author Share Posted May 20, 2013 -- Server Side thePositions = { { 1514.3770751953, -1677.8481445313, 14.046875 }, { 1515.3770751953, -1677.8481445313, 14.046875 }, { 1516.3770751953, -1677.8481445313, 14.046875 }, { 1517.3770751953, -1677.8481445313, 14.046875 }, } local theTeam = getTeamFromName("Grove") for _, AllPositions in ipairs ( thePositions ) do createPed ( 300, AllPositions [1], AllPositions [2], AllPositions [3] ) createMarker ( AllPositions [1], AllPositions [2], AllPositions [3] - 1, "cylinder", 40, 0, 0, 0, 0 ) for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do setPedStat ( thePeds, 77, 999 ) setPedWeaponSlot ( thePeds, 3 ) setTimer ( giveWeapon, 3000, 0, thePeds, 25, 9999, true ) end end addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == theTeam then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePeds ) end if isPedInVehicle ( thePlayer ) then destroyElement ( getPedOccupiedVehicle ( thePlayer ) ) end end end end ) addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == theTeam then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePeds ) setTimer ( giveWeapon, 500, 1, thePeds, 25, 9999, true ) end end end end ) كذا شغال ويطلقونن يا عنادد بسس يطلقونن على كل الافرقة الGrove و Police وغيرة مو بس Grove وابيهم مايموتون ( لو يصير يعني ) Link to comment
Tete omar Posted May 20, 2013 Share Posted May 20, 2013 انا قلت وش الغلط ماقلت سو ليي مود كامل !!!edit : عدلتت علييه الشخصيات تطلع وتحمل اسلحة بس ماتطلق على تيم Grove المشكلة انك مسوي كل ذا الكود وما تعرف كيف تخلي البيد يطلق على تيم معين Link to comment
SaydOo Posted May 20, 2013 Author Share Posted May 20, 2013 ماعندي رد بس بطنش الي قلته .... Link to comment
SaydOo Posted May 20, 2013 Author Share Posted May 20, 2013 (edited) لا مو حقي بسس مو شغال وابيه Edited May 20, 2013 by Guest Link to comment
AboShanab Posted May 20, 2013 Share Posted May 20, 2013 انت متآكد ان الكود حقك :\ ؟ يمقن احد مسويه له Link to comment
AhmeD~9MoD Posted May 20, 2013 Share Posted May 20, 2013 الكود حق عناد = ) أستر ع الرجال .. فضحته Link to comment
SaydOo Posted May 20, 2013 Author Share Posted May 20, 2013 الكود حق عناد = ) أستر ع الرجال .. فضحته لو تجووف انا قلت ان المود مو مالي لا مو حقي بسس مو شغال وابيه 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