Jump to content

PaiN^

Members
  • Posts

    2,258
  • Joined

  • Last visited

Everything posted by PaiN^

  1. PaiN^

    Dotex Moddings

    Nice Rides bro
  2. It's a wiki example -_-" Put i'll help you : teams = { 'team1', 'team2' } cars = { 240, 320 } function checkTeam( player ) for k,v in ipairs( teams ) do if getTeamName( getPlayerTeam( player ) ) == v then return true end end return false end addEventHandler( 'onVehicleStartEnter', root, function( player ) for k,v in ipairs( cars ) do if getElementModel( source ) == v then local check = checkTeam( player ) if not check then cancelEvent( ) outputChatBox( '#F08080[AVISO] #FF0000Este veículo pertence a Gang LEI!', root, 255, 255, 255, true ) end end end end )
  3. ! شوب ما أقصد أشكك في قدراتك لكن حبة حبة + ترى إذا راح تقعد تقول أنا فاشل وانا فاشل سيب المنتدى أحسن ! يا ثق في نفسك و اتعلم, يا لا تضيع وقتنا و وقتك هنا
  4. الأكواد إللي باللون الأحمر كلنت + البرتقالي سيرفر + الأزرق تنفع كلنت و سيرفر بس في بعض الأكواد تنفع كلنت وسيرفر, و تختلف طريقة كتابتها في الكلنت عن السيرفر
  5. addPedClothes > NOTE: It can only be used on peds with the CJ skin (id 0).
  6. حق كينق تمام, بس فيه التحقق الزايد
  7. إقرا الويكي وشوف الأرجمنت المطلوب ! وشوف المثال عشان تفهم منه مو تنسخ سوي كود و إذا ما ضبط إطرحه و نساعدكـ
  8. @Al-PRNS : ! كودك ماله علاقة باللي طلبه
  9. createMarker addEventHandler 'onMarkerHit' setElementPosition or spawnPlayer
  10. PaiN^

    Strange bug

    Re-download mta's MapEditor. Better yet, re-download the hole game with the new 1.3.2 update .
  11. You should past the pastebin url here so he can see what's wrong .
  12. viewtopic.php?f=148&t=38203
  13. You mean how to use SQL functions ?
  14. GUIEditor = { button = {}, window = {}, label = {} } addEventHandler ( 'onClientResourceStart', resourceRoot, function ( ) GUIEditor.window[1] = guiCreateWindow(216, 173, 382, 318, "نافذة قوانين اللعبة", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.84) guiSetVisible(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(377, 21, 0, 16, "", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(9, 22, 363, 52, "قوانين السيرفر", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(367, 80, 119, 81, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(14, 85, 348, 149, "قوانين السيرفر:\n1-عدم السب والشتم\n2-عدم إستخدام الهاكات\n3-عدم التخريب\n4-عدم تقليد اسماء الادمن\n5-عدم طلب الآدمنية من صاحب السيرفر\n6-عدم طلب الترقية\n\n*القوانين قابلة للتحديث في اي وقت\n", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(GUIEditor.label[2], "right", false) GUIEditor.label[3] = guiCreateLabel(115, 2, 120, 15, "", false, GUIEditor.window[1]) buttonclose = guiCreateButton(149, 274, 83, 34, "اغلق", false, GUIEditor.window[1]) end ) function open guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end bindKey ( "F9", "down", open ) addEventHandler ( "onClientGUIClick", buttonclose, function ( ) guiSetVisible ( GUIEditor.window[1], false ) showCursor( false ) end, false )
  15. هذي برضو قديمة 1.3.1 ذذ حملها عادي زي أول مرة
  16. أنا كنت أكلمه هو ذذ
  17. + إستخدم كود برستيج أفضل
  18. PaiN^

    Help Time

    There is no problem, But your check is usless .
  19. PaiN^

    Help Time

    function onrestart ( ) for _,player in ipairs ( getElementsByType ( "player" ) ) do local playeraccount = getPlayerAccount ( player ) if isGuestAccount ( playeraccount ) then return end local time = getAccountData ( playeraccount, "PlayTime" ) local hou = getAccountData ( playeraccount, "PlayTime-hour") local min = getAccountData ( playeraccount, "PlayTime-min") local sec = getAccountData ( playeraccount, "PlayTime-sec") setElementData ( player, "PlayTime", time ) t[ player ]["hour"] = tonumber(hou) or 0 t[ player ]["min"] = tonumber(min) or 0 t[ player ]["sec"] = tonumber(sec) or 0 end end addEventHandler ( "onResourceStart", resourceRoot, onrestart ) @ #X_Mr.Pres[T]ege_X# : The players will allways have an account ( a guest account ) .
  20. وليش ما يعرف ؟؟ ! أنا وريته أغلاطه يمكن ينتبه و يصلحها عالعموم خلاص لا نفتح نقاش ماله نهاية, حطيت الكود و إنتهى
  21. نفس الشي unbind لـ bind بس غير
×
×
  • Create New...