Jump to content

N3xT

Retired Staff
  • Posts

    2,490
  • Joined

  • Days Won

    18

Everything posted by N3xT

  1. # Server : addEvent("destroy",true) addEventHandler("destroy",root, function (plr) outputChatBox(plr.." Destroyed His Car By "..getPlayerName (source).."",source, 255, 0, 0, false) end ) # Client : addEventHandler("onClientGUIClick",root, function ( ) if ( source == SlapButton ) then if ( guiGridListGetSelectedItem(pList ) ~= -1 ) then local plr = guiGridListGetItemText(pList ,guiGridListGetSelectedItem(pList),1) local player = getPlayerFromName ( plr ) triggerServerEvent("destroy", localPlayer, plr) destroyElement ( getPedOccupiedVehicle(player) ) end end end )
  2. يب عدلته لك بعدها
  3. الخطا من عند بﻻك نيكست حاطط root بدل localPlayer بالتوفيق صلحت كودي وعطيته هو وجربه واشتغل ، وانت باقي تقول الخطأ عندي
  4. # Server : addEvent("slap",true) addEventHandler("slap",root, function (plr,reasons) outputChatBox(plr.." Has Slapped By "..getPlayerName (source).." Reason : "..reasons,source, 255, 0, 0, false) end )
  5. # Server : addEvent("slap",true) addEventHandler("slap",root, function (plr,reasons) outputChatBox(plr.." Has Slapped By "..getPlayerName (source).." Reason : "..reasons,source, 255, 0, 0, false) end # Client : addEventHandler("onClientGUIClick",root, function ( ) if ( source == SlapButton ) then if ( guiGridListGetSelectedItem(pList ) ~= -1 ) then local plr = guiGridListGetItemText(pList ,guiGridListGetSelectedItem(pList ),1) local player = getPlayerFromName ( plr ) local reasons = guiGetText ( Edit ) -- اسم الايديت triggerServerEvent("slap", localPlayer, plr, reasons) setElementHealth(player, 0) guiSetVisible(SlapWnd,false) guiSetInputEnabled(false) showCursor(false) end end end ) ^ جرب الحين ، غلط ب لوكال بلاير لأني نسخت الكود سريع سريع وما عدلته
  6. # Server : addEvent("slap",true) addEventHandler("slap",root, function (plr,reasons) outputChatBox(plr.." Has Slapped By "..getPlayerName (source).." Reason : "..reasons,source, 255, 0, 0, false) end # Client : addEventHandler("onClientGUIClick",root, function ( ) if ( source == SlapButton ) then if ( guiGridListGetSelectedItem(pList ) ~= -1 ) then local plr = guiGridListGetItemText(pList ,guiGridListGetSelectedItem(pList ),1) local player = getPlayerFromName ( plr ) local reasons = guiGetText ( Edit ) -- اسم الايديت triggerServerEvent("slap", root, plr, reasons) setElementHealth(player, 0) guiSetVisible(SlapWnd,false) guiSetInputEnabled(false) showCursor(false) end end end )
  7. guiCreateComboBox -- إنشاء الكومبو بوكس guiComboBoxAddItem -- لإضافة شيء بالكومبو بوكس guiComboBoxClear -- حذف كل شيء موجود بالكومبو بوكس guiComboBoxGetItemText -- أخذ أسم الأختيار guiComboBoxSetItemText -- وضع أسم للإختيار guiComboBoxRemoveItem -- حذف الإختيار guiComboBoxGetSelected -- أخذ الإختيار guiComboBoxSetSelected -- وضع الإختيار وطلبك الثاني ، اذا ركب أحد سيارة معينة أستخدم التالي getElementModel أما بالنسبة للأزرار 1 يظغط زر أتوقع م تقدر
  8. ينسرق شغلك ؟ محسسني أنك أول واحد بينزل اكواده
  9. ' onClientGUIClick ' guiSetEnabled -- لمنع الظغط على الزر guiSetText -- لتغيير الكلام من عربي لأنجليزي
  10. onPlayerChat cancelEvent outputChatBox
  11. N3xT

    فنكنش

    ما فهمت شيء
  12. N3xT

    سوال

    + وذا بعد isPlayerInACL , وأشياء ثانية كثير
  13. N3xT

    سوال

    عشانها مب معرفه
  14. N3xT

    سوال

    اطرح كودك كامل
  15. N3xT

    سوال

    أنت بس تحط أكواد خطأ وتقول مثال ؟ ، وش الفايدة من المثال اذا غلط
  16. N3xT

    تعديل

    المفروض تسوي للأحداث تايمر ، لأن كذا بيسبب لاق للسيرفر كل م احد خرج ولا دخل يتحدث
  17. N3xT

    help

    bindKey guiSetVisible + showCursor showCursor اللوحة ظاهرة أصلاً ، يعني الماوس موجود بتسوي ماوس مرة ثانية ولا كيف
  18. N3xT

    help

    bindKey guiSetVisible
  19. ! 200 كيلوبايت بطيء جداً 200 كيلوبايت
  20. ذا عشان يسوي صورة ، وش دخله بطلبه هو يبي يغير شكل اللوحة يعني : دي اكس
  21. هههههههههههههههههههههه ذا جدول ، انا اتكلم عن الكود حق السباون spawnPlayer
×
×
  • Create New...