Jump to content

PaiN^

Members
  • Posts

    2,258
  • Joined

  • Last visited

Everything posted by PaiN^

  1. PaiN^

    help

    أوبسس ! ما إنتبهت
  2. PaiN^

    help

    م تشوف الرجال يقولك ناقص end -_-" end زايد + كودك صحيح بس لازم تسوي تايمر عشان اللون يقعد يتغير .. كودك راح يحط لون عشوائي مرة واحدة بس
  3. And you want the car engine to start when the owner presses 'j' ?
  4. hasObjectPermissionTo( resource, "function.shutdown" ) then ???
  5. How do you set The element data ' owner' ?
  6. You should add the resource to the Admin group in ACL ..
  7. +1 + تشكر عالمجهود الرائع + عندي سؤال : ؟ hac ليش مسمي الملف كذا الناس تخاف وماتحمله
  8. ؟ onClientPlayerJoin مو المفروض تستخدموا
  9. https://wiki.multitheftauto.com/wiki/SetPedWalkingStyle ولمن تنكتب فـ [xml][/xml] ماتجي هذا لأنها جديدة
  10. ~. تسلمـ عالشرح # + هذا رابط النوت باد للي ماعنده البرنامج http://notepad-plus-plus.org/download/v6.3.html
  11. يمكن عندك مود فيه هاك, جرب تمسح كل المودات إلل عندك
  12. أتوقع مو كودك, عندك الإذن إنك تعدل عليه من صاحبه ؟
  13. setPedTalkingStyle ??
  14. theTimeBan = math.floor(tonumber(timeBan)*60) + 1*60*1000 = 60000 How could it become ' 22721,651 minutes ' ?
  15. I said it's better because if an admin logged in and then started the resource after he won't be able to open the GUI wnd that's all ..
  16. I guess that it's better to use onResourceStart instead of onPlayerLogin
  17. function banearButton (text, adminBanner, timeBan, editText) if source == banButton then local timeBan = guiGetText(timeEdit) local selected = guiGridListGetSelectedItem( playerLista ) local text = guiGridListGetItemText( playerLista, selected, 1 ) local editText = guiGetText( reasonEdit ) local adminBanner = getPlayerName(getLocalPlayer()) if string.len ( timeBan ) > 0 and string.len ( editText ) > 0 then triggerServerEvent("banHim", root, text, adminBanner, timeBan, editText) else outputChatBox("Escribe el tiempo de duracion",255,0,0,false) end end end addEventHandler("onClientGUIClick", root, banearButton) function banear(text, adminBanner, timeBan, editText) thePlayer = getPlayerFromName(text) if not thePlayer then outputChatBox("Selecciona a un jugador de la lista", source,255,0,0,true) return end if (timeBan) then theTimeBan = math.floor(tonumber(timeBan)*60*1000) banPlayer(thePlayer, false, false, true, adminBanner, editText, theTimeBan) end end addEvent("banHim", true) addEventHandler("banHim", getRootElement(), banear)
  18. or you can use string.len
  19. The third argument of setElementDataisn't a string !
×
×
  • Create New...