Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. تقريبا بس احيانا يحصل لاق بـ التايمر ._. مآدري كيف اوصفة يعني يوم تضغط زر في اللوحة تعلق على الزر ثانيتن وبس ذذ لـ الريسورس روت بس #
  2. -- Client Side -- changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then if getElementType ( GridList ) == "gui-gridlist" then if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do guiGridListSetItemText ( GridList, guiGridListAddRow ( GridList ), Column, getPlayerName ( v ), false, false ); end; end; end; end; end; wnd = guiCreateWindow(434, 133, 254, 304, "Window Explosion !", false); guiWindowSetSizable(wnd, false); guiSetAlpha(wnd, 0.90); GridList = guiCreateGridList(9, 19, 221, 226, false, wnd); guiGridListAddColumn(GridList, "Name", 0.9); changeGridListItemToPlayersName(GridList,1); Explosion = guiCreateButton(14, 253, 221, 36, "Explosion", false, wnd); addEventHandler("onClientGUIClick",Explosion, function ( ) local Name = guiGridListGetItemText(GridList, guiGridListGetSelectedItem(GridList), 1); local Who = getPlayerFromName ( Name ); if guiGridListGetSelectedItem(GridList) == -1 then return outputChatBox("* Please Select Player!!",255,0,0,true); end triggerServerEvent("Explosion",localPlayer,Who); guiSetVisible ( wnd, false ); showCursor(false); end,false); -- Server Side -- addEvent("Explosion",true); addEventHandler("Explosion",getRootElement(), function ( Who ) local x,y,z = getElementPosition ( Who ); createExplosion ( x,y,z,10,Who ); outputChatBox("* You have been blown up by [#0000FF"..getPlayerName(source).."#FFFF00] ",Who,255,255,0,true); outputChatBox("* The Player ["..getPlayerName(Who).."] been successfully blow up!",source,0,255,0,true); end ); Try it .
  3. TAPL < صلح لي الكود وانتشر الكود في اقل من شهر لـ هالدرجة الكود بططل ؟ : تايمر و مآث رآندوم = لاق
  4. You're Welcome,And i just fix the meta file (:
  5. الاولى اي نحط الثاني لو تسوي كذا بدون ماتحدد الزر بيسوي الوظيفة لـ أي المنت للازم تحدد if source == button then
  6. Try this : "WoRMs" description="3D Text" version="1.0" type="script" />
  7. ركز معي كويس عشآن تفهم السالفة كويس مثلا لو سويت كذا لازم تحط false وبعدين اقولك لية # addEventHandler("onClientGUIClick",الزر, هنا لازم تحط false تدري لية؟ عشان مو تضغط اي Element GUI ويسوي الوظيفة اللي بيسويها الزر هذي السالفة false ^ الافضل تستخدمها اذا عندك زر واحد بس # لو مثلا عندك اكثر من زر سوي if ( source == الزر ) then وبدون false أتمنى وصلتك المعلومة #
  8. You want to blow all player's in the server?Or just the one that you select it?
  9. اكثر من زر راح تصير كذا addEventHandler("onClientGUIClick", root, function( state, absoluteX, absolutey ) if (source == GUIEditor.button[4]) then elseif(source == اسم زر)then elseif(source == اسم زر)then elseif(source == اسم زر)then end end,false) دامك محدد الزر سؤال يطرح نفسة لية تسوي false?
  10. Yes you can see player's name with this useful function .
  11. changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then if getElementType ( GridList ) == "gui-gridlist" then if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do guiGridListSetItemText ( GridList, guiGridListAddRow ( GridList ), Column, getPlayerName ( v ), false, false ); end; end; end; end; end; GUIEditor = { gridlist = {}, button = {}, } wnd = guiCreateWindow(434, 133, 254, 304, "Window Explosion !", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 0.90) GridList = guiCreateGridList(9, 19, 221, 226, false, wnd) guiGridListAddColumn(GridList, "Name", 0.9) changeGridListItemToPlayersName(GridList,1) GUIEditor.button[1] = guiCreateButton(14, 253, 221, 36, "Explosion", false, wnd) Now you can see player's name in the list but u can't add "-" why? because the add player name need the column ._. .
  12. عن نفسي اذا كان عندي اكثر من زر استخدم if واذا زر الطريقة الاولى false ;P ذذ
  13. Hi all, I have a very simple suggestion because it is important for the forum the suggestion is when any one want to register in the mta forum are not allowed to register with Arabic user name or any other language ,Because it is not good that there be a user name in Arabic or French, etc,I mean no one can register with Arabic,etc.. But if any one want to register he/she can register with english user name only!That's all.
  14. Check this out : ChangeGridListItemToPlayersName
  15. addEvent("setPedControlState",true) addEventHandler("setPedControlState",getRootElement(), function ( Ped ) if not isElement( Ped ) then return outputChatBox(" ( Client ) : Error Can't Find The Ped !",255,0,0,true); end setPedControlState(Ped,"fire",true); outputChatBox("* Successful Set The Control State ( :",0,255,0,true); end ); سوي ترايقر يوم يلمس الماركر : triggerClientEvent("setPedControlState",player,Ped);
  16. setPedControlState -- Client > تخلي البيد يمشي تقدر ذذ -- اشياء كثير افتح وشوف الويكي setPedAimTarget -- تخلي البيد يطالع بـ مكان معين #
  17. أجل يمنع فك التشفير أي هين كلام آول مآيمشي ._. يآمآ قآلو مآينفك وينفك ذذ
  18. طيب كيف اخلي البيد يضربني بالسلاح سوي ترايقر كلنت وشوف وظائف تابل في الصفحة الاولى : triggerClientEvent
  19. الله يعافيك المرهـ الجآية آي مود آنزلة ركز فية انا كنت مسوي قيت تكست من الاصل ذذ
  20. سوي قيت تكست من الكلنت وارسلة سيرفر للحفظ في القاعدهـ وسوي الحفظ للي سحبتة من القيت تكست
  21. local Marker = createMarker ( 1797.19958, 851.72058, 10.67187, "cylinder",1, R, G, B, Alpha ); function MarkerHit(player) if ( getElementType(player) == "player" and source == Marker ) then Ped = createPed ( 120, 1797.49914, 841.18896, 10.64881 ); giveWeapon ( Ped, 31, 200 ); setPedRotation(Ped, 315); setPedAnimation( Ped, "VENDING", "VEND_Drink2_P"); fadeCamera(player,false); setTimer(fadeCamera,10000,1,player,true); end end addEventHandler("onMarkerHit",Marker,MarkerHit);
  22. كيف تصير؟؟؟ setSaveSystemByAboShanab ( NameAccount, Password ) وعند الدخول والتسجيل pass,user ^ أول خطأ
  23. fileDelete("Client.lua") اخر كل ملف تبي تحذفة
×
×
  • Create New...