SoMoRay Posted March 8, 2013 Author Posted March 8, 2013 keyState: A string that has one of the following values: -- حالة التبنيد ذذ"up": If the bound key should trigger the function when the key is released -- يوم يرفع "down": If the bound key should trigger the function when the key is pressed -- يوم يضغط "both": If the bound key should trigger the function when the key is pressed or released -- كل الثنين انا ابيه لين يضغط يبدل الشخصية مالة Ped و يروح الى Ped الي اسم تيمه Peaple استخدم ايي وحده ؟
SoMoRay Posted March 8, 2013 Author Posted March 8, 2013 down -- يوم يضغط أفضل #, bindKey("arrow_r", "down") ?
iPrestege Posted March 8, 2013 Posted March 8, 2013 Client - Syntax 1 bindKey ( string key, string keyState, function handlerFunction, [ var arguments, ... ] )
iMr.Dawix~# Posted March 8, 2013 Posted March 8, 2013 down -- يوم يضغط أفضل #, bindKey("arrow_r", "down") ? bindKey("arrow_r", "down",اسم الفنكشن)
SoMoRay Posted March 8, 2013 Author Posted March 8, 2013 down -- يوم يضغط أفضل #, bindKey("arrow_r", "down") ? bindKey("arrow_r", "down",اسم الفنكشن) function () = bindKey("arrow_r", "down",()) ؟
===|OSAMA|=== Posted March 8, 2013 Posted March 8, 2013 People قلي وش رقم شخصية فريق + الأسلحة الخاصة بالتيم وعدد رصاص كل سلاح + احداثيات السباون + Police قلي رقم شخصية فريق + الأسلحة الخاصة بالتيم وعدد رصاص كل سلاح + احداثيات السباون + إذا تبي اسويه لكـ لما يكبس انتر يحدد الشخصية ويسوي سباون واذا تبي اسويها بزر مثل الي بصورتكـ , حدد الي تبيه ..
SoMoRay Posted March 8, 2013 Author Posted March 8, 2013 People قلي وش رقم شخصية فريق+ الأسلحة الخاصة بالتيم وعدد رصاص كل سلاح + احداثيات السباون + Police قلي رقم شخصية فريق + الأسلحة الخاصة بالتيم وعدد رصاص كل سلاح + احداثيات السباون + إذا تبي اسويه لكـ لما يكبس انتر يحدد الشخصية ويسوي سباون واذا تبي اسويها بزر مثل الي بصورتكـ , حدد الي تبيه .. بزر احداثيات فريق Police Ak47 -- 9999 TearGas --9999 x = 1568.5963134766 y = -1691.4530029297 z = 5.890625 --------------------------------- Peaple M4 -- 9999 MP5 -- 9999 x = 1485.0311279297 y = -2234.9086914063 z = 13.546875
===|OSAMA|=== Posted March 8, 2013 Posted March 8, 2013 People قلي وش رقم شخصية فريق+ الأسلحة الخاصة بالتيم وعدد رصاص كل سلاح + احداثيات السباون + Police قلي رقم شخصية فريق + الأسلحة الخاصة بالتيم وعدد رصاص كل سلاح + احداثيات السباون + إذا تبي اسويه لكـ لما يكبس انتر يحدد الشخصية ويسوي سباون واذا تبي اسويها بزر مثل الي بصورتكـ , حدد الي تبيه .. بزر احداثيات فريق Police Ak47 -- 9999 TearGas --9999 x = 1568.5963134766 y = -1691.4530029297 z = 5.890625 --------------------------------- Peaple M4 -- 9999 MP5 -- 9999 x = 1485.0311279297 y = -2234.9086914063 z = 13.546875 طيب شخصيات كل تيم وش هي ؟
SoMoRay Posted March 8, 2013 Author Posted March 8, 2013 People قلي وش رقم شخصية فريق+ الأسلحة الخاصة بالتيم وعدد رصاص كل سلاح + احداثيات السباون + Police قلي رقم شخصية فريق + الأسلحة الخاصة بالتيم وعدد رصاص كل سلاح + احداثيات السباون + إذا تبي اسويه لكـ لما يكبس انتر يحدد الشخصية ويسوي سباون واذا تبي اسويها بزر مثل الي بصورتكـ , حدد الي تبيه .. بزر احداثيات فريق Police Ak47 -- 9999 TearGas --9999 x = 1568.5963134766 y = -1691.4530029297 z = 5.890625 --------------------------------- Peaple M4 -- 9999 MP5 -- 9999 x = 1485.0311279297 y = -2234.9086914063 z = 13.546875 طيب شخصيات كل تيم وش هي ؟ Police 280 Peaple 1
===|OSAMA|=== Posted March 8, 2013 Posted March 8, 2013 Police 280Peaple 1 على فكرة رقم 1 مهوب شخصية سي جي ، رقم شخصية سي جي هو 0 .. ؟
SoMoRay Posted March 8, 2013 Author Posted March 8, 2013 Police 280Peaple 1 على فكرة رقم 1 مهوب شخصية سي جي ، رقم شخصية سي جي هو 0 .. ؟ يب ادري انا ابي 1
iPrestege Posted March 8, 2013 Posted March 8, 2013 Required Arguments thePlayer: The player whose camera is to be changed. positionX: The x coordinate of the camera's position. positionY: The y coordinate of the camera's position. positionZ: The z coordinate of the camera's position.
SoMoRay Posted March 8, 2013 Author Posted March 8, 2013 Required ArgumentsthePlayer: The player whose camera is to be changed. positionX: The x coordinate of the camera's position. positionY: The y coordinate of the camera's position. positionZ: The z coordinate of the camera's position. setCameraMatrix( theplayer, x, y, z) ?
PaiN^ Posted March 8, 2013 Posted March 8, 2013 Required ArgumentsthePlayer: The player whose camera is to be changed. positionX: The x coordinate of the camera's position. positionY: The y coordinate of the camera's position. positionZ: The z coordinate of the camera's position. setCameraMatrix( theplayer, x, y, z) ? يب, بس عوض الآرجمنتات بالآحداثيآت واللآعب
===|OSAMA|=== Posted March 8, 2013 Posted March 8, 2013 سسويته لكـ .. من خلال أزرار + من خلال أسهم إختآر الي تبيه # ......................... أولاً الي طلبته انت وهو من خلال أزرار .. -- Client Side ! x, y = guiGetScreenSize ( ) function centerWindow ( center_window, k, v ) local screenW, screenH = guiGetScreenSize ( ) local windowW, windowH = guiGetSize ( center_window, false ) local x, y = ( screenW - windowW ) / v, ( screenH - windowH )/k guiSetPosition ( center_window, x, y, false ) end thePed = createPed ( 1, 0, 0, 500, 90 ) setElementFrozen ( thePed, true ) setCameraMatrix ( -3.6658203125, 0, 500.48254455566, 2906.9938964844, 0, 201.84664916992 ) Animations = { "dnce_M_b", "DAN_Left_A", "DAN_Down_A", "DAN_Loop_A" } setPedAnimation( thePed, "DANCING", Animations [ math.random ( #Animations ) ] ) theObject = createObject ( 1337, 0, 0, 499, 60 ) setElementAlpha ( theObject, 0 ) SpawnBtn = guiCreateButton( 0, 0, 125, 62.5, "Spawn", false ) centerWindow ( SpawnBtn, 1.2, 1.96 ) RightBtn = guiCreateButton( 0, 0, 70, 35, ">", false ) centerWindow ( RightBtn, 2, 1.4 ) LeftBtn = guiCreateButton( 0, 0, 70, 35, "<", false ) centerWindow ( LeftBtn, 2, 3.3 ) showCursor ( true ) function Right ( ) if ( isElement ( thePed ) ) then if ( getElementModel ( thePed ) ~= 280 ) then setElementModel ( thePed, 280 ) else setElementModel ( thePed, 1 ) end end end function Left ( ) if ( isElement ( thePed ) ) then if ( getElementModel ( thePed ) ~= 1 ) then setElementModel ( thePed, 1 ) else setElementModel ( thePed, 280 ) end end end addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == SpawnBtn ) then triggerServerEvent ( "spawnPed", localPlayer, getElementModel ( thePed ) ) if isElement ( thePed ) then destroyElement ( thePed ) end if isElement ( theObject ) then destroyElement ( theObject ) end destroyElement ( SpawnBtn ) destroyElement ( RightBtn ) destroyElement ( LeftBtn ) showCursor ( false ) elseif ( source == RightBtn ) then Right ( ) elseif ( source == LeftBtn ) then Left ( ) end end ) -- Server Side ! Team = createTeam ( "People", 255, 0, 0 ) setTeamFriendlyFire ( Team, false ) Team2 = createTeam ( "Police", 0, 0, 255 ) setTeamFriendlyFire ( Team2, false ) addEvent ( "spawnPed", true ) addEventHandler ( "spawnPed", root, function ( thePed ) if ( thePed == 1 ) then spawnPlayer ( source, 1485.0311279297, -2234.9086914063, 13.546875, 0, 1, 0, 0, Team ) setCameraTarget ( source, source ) giveWeapon ( source, 31, 9999 ) giveWeapon ( source, 29, 9999 ) outputChatBox ( "* You Take People Team !", source, 255, 0, 0, true ) elseif ( thePed == 280 ) then spawnPlayer ( source, 1568.5963134766, -1691.4530029297, 5.890625, 0, 280, 0, 0, Team2 ) setCameraTarget ( source, source ) giveWeapon ( source, 30, 9999 ) giveWeapon ( source, 17, 9999 ) outputChatBox ( "* You Take Police Team !", source, 255, 0, 0, true ) end end ) ====================== ثانياً هو من خلال الأسهم ( يمين / يسار / إنتر ) ذذ ! -- Client Side ! thePed = createPed ( 1, 0, 0, 500, 90 ) setElementFrozen ( thePed, true ) setCameraMatrix ( -3.6658203125, 0, 500.48254455566, 2906.9938964844, 0, 201.84664916992 ) Animations = { "dnce_M_b", "DAN_Left_A", "DAN_Down_A", "DAN_Loop_A" } setPedAnimation( thePed, "DANCING", Animations [ math.random ( #Animations ) ] ) theObject = createObject ( 1337, 0, 0, 499, 60 ) setElementAlpha ( theObject, 0 ) bindKey ( "arrow_r", "down", function ( ) if ( isElement ( thePed ) ) then if ( getElementModel ( thePed ) ~= 280 ) then setElementModel ( thePed, 280 ) else setElementModel ( thePed, 1 ) end end end ) bindKey ( "arrow_l", "down", function ( ) if ( isElement ( thePed ) ) then if ( getElementModel ( thePed ) ~= 1 ) then setElementModel ( thePed, 1 ) else setElementModel ( thePed, 280 ) end end end ) bindKey ( "enter", "down", function ( ) if ( isElement ( thePed ) ) and ( isElement ( theObject ) ) then triggerServerEvent ( "spawnPed", localPlayer, getElementModel ( thePed ) ) destroyElement ( thePed ) destroyElement ( theObject ) end end ) -- Server Side ! Team = createTeam ( "People", 255, 0, 0 ) setTeamFriendlyFire ( Team, false ) Team2 = createTeam ( "Police", 0, 0, 255 ) setTeamFriendlyFire ( Team2, false ) addEvent ( "spawnPed", true ) addEventHandler ( "spawnPed", root, function ( thePed ) if ( thePed == 1 ) then spawnPlayer ( source, 1485.0311279297, -2234.9086914063, 13.546875, 0, 1, 0, 0, Team ) setCameraTarget ( source, source ) giveWeapon ( source, 31, 9999 ) giveWeapon ( source, 29, 9999 ) outputChatBox ( "* You Take People Team !", source, 255, 0, 0, true ) elseif ( thePed == 280 ) then spawnPlayer ( source, 1568.5963134766, -1691.4530029297, 5.890625, 0, 280, 0, 0, Team2 ) setCameraTarget ( source, source ) giveWeapon ( source, 30, 9999 ) giveWeapon ( source, 17, 9999 ) outputChatBox ( "* You Take Police Team !", source, 255, 0, 0, true ) end end )
SoMoRay Posted March 8, 2013 Author Posted March 8, 2013 شلون اخليه يختار تيم مالين المابات يعني مثل مال احمد في مساهمات
SoMoRay Posted March 8, 2013 Author Posted March 8, 2013 وش القيم مود الي عندكـ + إطرح رآبط تحميله # طرحته خاص + TDMA
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