Adham Posted June 26, 2016 Share Posted June 26, 2016 addPedClothes هذا الفكشن , تعطي الاعب ملابس الكود : bool addPedClothes ( ped thePed, string clothesTexture, string clothesModel, int clothesType ) مثال الويكي : function onEnterVehicle ( theVehicle, seat, jacked ) if getElementModel ( theVehicle ) == 522 then -- if it's an nrg addPedClothes ( source, "moto", "moto", 16 ) -- add the helmet end end addEventHandler ( "onPlayerVehicleEnter", root, onEnterVehicle ) function onExitVehicle ( theVehicle, seat, jacked ) if getElementModel ( theVehicle ) == 522 then -- if it's an nrg removePedClothes ( source, 16 ) -- remove the helmet end end addEventHandler ( "onPlayerVehicleExit", root, onExitVehicle ) 2- عمل شخصيه createPed Code : ped createPed ( int modelid, float x, float y, float z [, float rot = 0.0, bool synced = true ] ) مثال : function pedLoad ( name ) createPed ( 120, 5540.6654, 1020.55122, 1240.545 ) end addEventHandler ( "onResourceStart", getResourceRootElement(), pedLoad ) 3- صنع نار createFire Link to comment
s7BaT Posted June 26, 2016 Share Posted June 26, 2016 الحصول على الفريق بواسطة اسمه getTeamFromName الحصول على لاعبين الفريق getPlayersInTeam Link to comment
Adham Posted June 26, 2016 Share Posted June 26, 2016 getTeamColor -- الحصول علي لون التيم countPlayersInTeam -- عدد الاعبين البالتيم #Server getAccounts -- الحصول علي اسامي الحسابات getAccountName -- حصول علي اسم الحساب removeAccount -- حذف الحساب addAccount -- create Account Link to comment
Mr.CoR Posted June 26, 2016 Share Posted June 26, 2016 يعني نعتبر الموضوع مكتبة لترجمه الفانكشنات setObjectBreakable هذا الفانكشن يجعل الأوبجكت قابل للكسر او غير قابل للكسر Link to comment
Adham Posted June 26, 2016 Share Posted June 26, 2016 guiGridListGetColumnCount -- يجيب لك اعداد الكلومين Link to comment
</Mr.Tn6eL> Posted June 26, 2016 Share Posted June 26, 2016 --UTF8 Library utf8.byte utf8.char utf8.charpos utf8.escape utf8.find utf8.fold utf8.gmatch utf8.gsub utf8.insert utf8.len utf8.lower utf8.match utf8.ncasecmp utf8.next utf8.remove utf8.reverse utf8.sub utf8.title utf8.upper utf8.width utf8.widthindex Link to comment
</Mr.Tn6eL> Posted June 26, 2016 Share Posted June 26, 2016 getGarageBoundingBox--تجيب احداثيات زوايا الكراج مثال يتحقق ان الاعب داخل الكراج --wiki example function garageCheck ( command, garageID ) if not garageID then return end local west, east, south, north = getGarageBoundingBox ( garageID ) --get the bounding box of the specified garage local x, y, z = getElementPosition ( getLocalPlayer ( ) ) --get the position of the player if x > west and x < east and y > south and y < north then --check if the player is inside the bounding box outputChatBox ( "You are inside the garage" ) else outputChatBox ( "You are outside the garage" ) end end addCommandHandler ( "garagecheck", garageCheck ) Link to comment
N3xT Posted June 26, 2016 Share Posted June 26, 2016 guiCreateBrowser تنشأ لك متصفح . Link to comment
N3xT Posted June 26, 2016 Share Posted June 26, 2016 guiGridListSetItemColor تلون لك القريدليست Link to comment
N3xT Posted June 26, 2016 Share Posted June 26, 2016 getMarkerSize تطلع لك حجم " الماركر " Link to comment
N3xT Posted June 26, 2016 Share Posted June 26, 2016 outputConsole تطلع لك كلام بـ أف 8 Link to comment
Mr.CoR Posted June 27, 2016 Share Posted June 27, 2016 خربت امها ي نكست -------------------------- triggerEvent فائدتها : انتك تقدر من خلالها تسوي ترايقر من كلاينت ل كلاينت او من سيرفر إلى سيرفر لكن تستقبل الترايقر في نفس الملف بعض الأمثلة : Server Side Example : addEventHandler ( "onPlayerWasted" , root , function ( _, killer ) if ( isElement ( killer ) ) and ( killer ~= source ) and ( getElementType ( killer ) == "player" ) then triggerEvent ( "onKillerKillPlayer" , source , killer ) end end ) addEvent ( "onKillerKillPlayer" , true ) addEventHandler ( "onKillerKillPlayer" , root, function ( killer ) givePlayerMoney ( killer , 500 ) setPedArmor ( killer , 100 ) end ) # Client Side Example : addEventHandler ( "onClientGUIClick" , root , function ( ) triggerEvent ( "onPlayerClickGUI" , root , getPlayerName ( localPlayer ) , getElementType ( source ) ) end ) addEvent ( "onPlayerClickGUI" , true ) addEventHandler ( "onPlayerClickGUI" , root, function ( playerName , Type ) outputChatBox ( playerName.." Click "..Type ) end ) # Abdul KariM الشكر موصل للغالي : الأخ Link to comment
</Mr.Tn6eL> Posted June 27, 2016 Share Posted June 27, 2016 خربت امها ي نكست -------------------------- triggerEvent فائدتها : انتك تقدر من خلالها تسوي ترايقر من كلاينت ل كلاينت او من سيرفر إلى سيرفر لكن تستقبل الترايقر في نفس الملف بعض الأمثلة : Server Side Example : addEventHandler ( "onPlayerWasted" , root , function ( _, killer ) if ( isElement ( killer ) ) and ( killer ~= source ) and ( getElementType ( killer ) == "player" ) then triggerEvent ( "onKillerKillPlayer" , source , killer ) end end ) addEvent ( "onKillerKillPlayer" , true ) addEventHandler ( "onKillerKillPlayer" , root, function ( killer ) givePlayerMoney ( killer , 500 ) setPedArmor ( killer , 100 ) end ) # Client Side Example : addEventHandler ( "onClientGUIClick" , root , function ( ) triggerEvent ( "onPlayerClickGUI" , root , getPlayerName ( localPlayer ) , getElementType ( source ) ) end ) addEvent ( "onPlayerClickGUI" , true ) addEventHandler ( "onPlayerClickGUI" , root, function ( playerName , Type ) outputChatBox ( playerName.." Click "..Type ) end ) # Abdul KariM الشكر موصل للغالي : الأخ يقدر يستقبل من اي مود من الجهة اللي سوت الترايقر(كلنت، سيرفر) Link to comment
Mr.CoR Posted June 27, 2016 Share Posted June 27, 2016 هذا الي كنت انا اقصده يا اخ تعطيل بس واللهي معرفت اوصل لوكو الصورة ازاي معلش يسطي سامحنى يسطي 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