Jump to content

آي مبرمج يدخل .


Recommended Posts

السلآم عليكم ورحمة الله وبركآتهَ .

طلب طريقه تغير الاسم في الشات اللعبه تخليهَ عربي . او مزخرف ,

وفي لسكور بورد او في اي محل يطلع اسمك الي انت مخليهً ..

مطلوب الكود , الرجاء الرد في آسرع وقت ~ :)

Link to comment
آعرف شغلة META وبعض الاشياء ,

بس آنا الي ابيه بدل يطلع اسمي في الشات Action > يجي بداله اكشن

وآبيه يكون بالسريال , اطرحو لي الكود لآهنتو ,

حنا شغالين عندك تعلم ولا كلم احد المبرمجين الكبار يسويه لك بفلوس

مافيه احد يعطيك كامل هنا تعلم احسن لك

Link to comment
آعرف شغلة META وبعض الاشياء ,

بس آنا الي ابيه بدل يطلع اسمي في الشات Action > يجي بداله اكشن

وآبيه يكون بالسريال , اطرحو لي الكود لآهنتو ,

حنا شغالين عندك تعلم ولا كلم احد المبرمجين الكبار يسويه لك بفلوس

مافيه احد يعطيك كامل هنا تعلم احسن لك

آقول انا حطيت موضوع عآم , ولا تتفلسف تبي تساعد حياك ماتبي تساعد الف جدار ,

Link to comment
addCommandHandler ( "supernick", 
    function ( player, _, nick ) 
       if (getPlayerSerial(player)== 'YourSerial' ) then 
            if ( nick ) and ( string.len ( nick ) <= 80 ) then 
                setElementData  ( player, "CustomTag", tostring ( nick ) ) 
                outputChatBox ( "[superNick]#FFFFFF Your SuperNick is: " .. tostring ( nick ) .. " #FFFFFF.", player, 255, 136, 0, true ) 
  
            end 
        else 
            outputChatBox ( "[ERROR] #ffffffOops! You are not allowed to do this.", player, 255, 0, 0, true ) 
        end 
    end 
) 
  
addEventHandler ( "onPlayerChat", root, 
    function ( msg ) 
        local r, g, b = getPlayerNametagColor ( source ) 
        local value = getElementData ( source, "CustomTag" ) 
        if ( value ) then 
            cancelEvent ( ) 
            outputChatBox( value .. " : #FFFFFF" .. msg, root, r, g, b, true ) 
        end 
    end 
) 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, player in ipairs ( getElementsByType ( "player" ) ) do 
            local acc = getPlayerAccount ( player ) 
            if ( acc ) and not ( isGuestAccount ( acc ) ) and ( getAccountData ( acc, "CustomTag" ) ) then 
                setElementData ( player, "CustomTag", getAccountData( acc, "CustomTag" ) ) 
            end 
        end 
    end 
) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, acc ) 
        if ( getAccountData ( acc, "CustomTag" ) ) then 
            setElementData ( source, "CustomTag", getAccountData ( acc, "CustomTag" ) ) 
        end 
    end 
) 
  
addEventHandler ( "onPlayerQuit", root, 
    function ( ) 
        local acc = getPlayerAccount ( source ) 
        if ( acc ) and not ( isGuestAccount ( acc ) ) and ( getElementData ( source, "CustomTag" ) ) then 
            setAccountData ( acc, "CustomTag", getElementData ( source, "CustomTag" ) ) 
        end 
    end 
) 
  
  
  
  
  
  

طريقة الاستخذام ..

حط سيريالك وشغل المود .. وروح اف 8

واكتب

supernick اكشن

ويضبط ..

ملاحظة : الكود ماهو لي بس عدلت عليه ..

Edited by Guest
Link to comment
addCommandHandler ( "supernick", 
    function ( player, _, nick ) 
       if (getPlayerSerial(player, _, nick)== 'YourSerial' ) then 
            if ( nick ) and ( string.len ( nick ) <= 80 ) then 
                setElementData  ( player, "CustomTag", tostring ( nick ) ) 
                outputChatBox ( "[superNick]#FFFFFF Your SuperNick is: " .. tostring ( nick ) .. " #FFFFFF.", player, 255, 136, 0, true ) 
  
            end 
        else 
            outputChatBox ( "[ERROR] #ffffffOops! You are not allowed to do this.", player, 255, 0, 0, true ) 
        end 
    end 
) 
  
addEventHandler ( "onPlayerChat", root, 
    function ( msg ) 
        local r, g, b = getPlayerNametagColor ( source ) 
        local value = getElementData ( source, "CustomTag" ) 
        if ( value ) then 
            cancelEvent ( ) 
            outputChatBox( value .. " : #FFFFFF" .. msg, root, r, g, b, true ) 
        end 
    end 
) 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, player in ipairs ( getElementsByType ( "player" ) ) do 
            local acc = getPlayerAccount ( player ) 
            if ( acc ) and not ( isGuestAccount ( acc ) ) and ( getAccountData ( acc, "CustomTag" ) ) then 
                setElementData ( player, "CustomTag", getAccountData( acc, "CustomTag" ) ) 
            end 
        end 
    end 
) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, acc ) 
        if ( getAccountData ( acc, "CustomTag" ) ) then 
            setElementData ( source, "CustomTag", getAccountData ( acc, "CustomTag" ) ) 
        end 
    end 
) 
  
addEventHandler ( "onPlayerQuit", root, 
    function ( ) 
        local acc = getPlayerAccount ( source ) 
        if ( acc ) and not ( isGuestAccount ( acc ) ) and ( getElementData ( source, "CustomTag" ) ) then 
            setAccountData ( acc, "CustomTag", getElementData ( source, "CustomTag" ) ) 
        end 
    end 
) 
  
  
  
  
  
  

طريقة الاستخذام ..

حط سيريالك وشغل المود .. وروح اف 8

واكتب

supernick اكشن

ويضبط ..

ملاحظة : الكود ماهو لي بس عدلت عليه ..

أولاً الكود مهوب لكـ ، ويُفضل ماتطرح اكواد غيركـ إلا لين تطرح اسم صاحبها ..

ثانياً انت معدل على كودي والمشكلة مخبص فيه بالتعديل ههههههههههههه

السطر الثالث بالكود :

if (getPlayerSerial(player, _, nick)== 'YourSerial' ) then 

انا من شفتك معرف اللاعب بالشكل هذا غسلت يدي :mrgreen:

Link to comment
انا مجرب :/ وحطيت سيريال غير سيريالي ماضبط تغير النك .. !

وحطيت سيريالي .. وضبط تغير النك

انا ماقد جربت الكود ، بس الزبدة ان الكود خطأ وحتى لو ضبط على سريالك فقط رح يجيك أخطاء بالديبق كل مَ تكتب الأمر =)

Link to comment
انا مجرب :/ وحطيت سيريال غير سيريالي ماضبط تغير النك .. !

وحطيت سيريالي .. وضبط تغير النك

ي حبيبي هذي البرمجة تقول كذا وانت تبي تطلع من مخك .. كنق تراه لهـ خبرة من زمان وانا من طريقي اقول كنق = خبير ..

واخوي صاحب الموضوع .. افضل اطرح التاج عشان نضبط عليهـ لـ تفادي الاخطاء .. :wink:

Link to comment
addCommandHandler ( "supernick", 
    function ( player, _, nick ) 
       if (getPlayerSerial(player, _, nick)== 'YourSerial' ) then 
            if ( nick ) and ( string.len ( nick ) <= 80 ) then 
                setElementData  ( player, "CustomTag", tostring ( nick ) ) 
                outputChatBox ( "[superNick]#FFFFFF Your SuperNick is: " .. tostring ( nick ) .. " #FFFFFF.", player, 255, 136, 0, true ) 
  
            end 
        else 
            outputChatBox ( "[ERROR] #ffffffOops! You are not allowed to do this.", player, 255, 0, 0, true ) 
        end 
    end 
) 
  
addEventHandler ( "onPlayerChat", root, 
    function ( msg ) 
        local r, g, b = getPlayerNametagColor ( source ) 
        local value = getElementData ( source, "CustomTag" ) 
        if ( value ) then 
            cancelEvent ( ) 
            outputChatBox( value .. " : #FFFFFF" .. msg, root, r, g, b, true ) 
        end 
    end 
) 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, player in ipairs ( getElementsByType ( "player" ) ) do 
            local acc = getPlayerAccount ( player ) 
            if ( acc ) and not ( isGuestAccount ( acc ) ) and ( getAccountData ( acc, "CustomTag" ) ) then 
                setElementData ( player, "CustomTag", getAccountData( acc, "CustomTag" ) ) 
            end 
        end 
    end 
) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, acc ) 
        if ( getAccountData ( acc, "CustomTag" ) ) then 
            setElementData ( source, "CustomTag", getAccountData ( acc, "CustomTag" ) ) 
        end 
    end 
) 
  
addEventHandler ( "onPlayerQuit", root, 
    function ( ) 
        local acc = getPlayerAccount ( source ) 
        if ( acc ) and not ( isGuestAccount ( acc ) ) and ( getElementData ( source, "CustomTag" ) ) then 
            setAccountData ( acc, "CustomTag", getElementData ( source, "CustomTag" ) ) 
        end 
    end 
) 
  
  
  
  
  
  

طريقة الاستخذام ..

حط سيريالك وشغل المود .. وروح اف 8

واكتب

supernick اكشن

ويضبط ..

ملاحظة : الكود ماهو لي بس عدلت عليه ..

أولاً الكود مهوب لكـ ، ويُفضل ماتطرح اكواد غيركـ إلا لين تطرح اسم صاحبها ..

ثانياً انت معدل على كودي والمشكلة مخبص فيه بالتعديل ههههههههههههه

السطر الثالث بالكود :

if (getPlayerSerial(player, _, nick)== 'YourSerial' ) then 

انا من شفتك معرف اللاعب بالشكل هذا غسلت يدي :mrgreen:

انت شفت كنق قال ها الكلام ^ .. ورحت عدلته ولا كان هو غلط .. :lol:

Link to comment
يب ..

ركبت الكود عندي .. وكتبت الامر

ماجا خطأ ولا شيء ..

:lol::lol:

لا خلاص انت 10 نجوم

8cce0110.gif

ماقدر اقولكـ أكثر من كذا :mrgreen:

Edit:

addCommandHandler ( "supernick", 
    function ( player, _, nick ) 
       if (getPlayerSerial(player, _, nick)== 'YourSerial' ) then 
            if ( nick ) and ( string.len ( nick ) <= 80 ) then 
                setElementData  ( player, "CustomTag", tostring ( nick ) ) 
                outputChatBox ( "[superNick]#FFFFFF Your SuperNick is: " .. tostring ( nick ) .. " #FFFFFF.", player, 255, 136, 0, true ) 
  
            end 
        else 
            outputChatBox ( "[ERROR] #ffffffOops! You are not allowed to do this.", player, 255, 0, 0, true ) 
        end 
    end 
) 
  
addEventHandler ( "onPlayerChat", root, 
    function ( msg ) 
        local r, g, b = getPlayerNametagColor ( source ) 
        local value = getElementData ( source, "CustomTag" ) 
        if ( value ) then 
            cancelEvent ( ) 
            outputChatBox( value .. " : #FFFFFF" .. msg, root, r, g, b, true ) 
        end 
    end 
) 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, player in ipairs ( getElementsByType ( "player" ) ) do 
            local acc = getPlayerAccount ( player ) 
            if ( acc ) and not ( isGuestAccount ( acc ) ) and ( getAccountData ( acc, "CustomTag" ) ) then 
                setElementData ( player, "CustomTag", getAccountData( acc, "CustomTag" ) ) 
            end 
        end 
    end 
) 
  
addEventHandler ( "onPlayerLogin", root, 
    function ( _, acc ) 
        if ( getAccountData ( acc, "CustomTag" ) ) then 
            setElementData ( source, "CustomTag", getAccountData ( acc, "CustomTag" ) ) 
        end 
    end 
) 
  
addEventHandler ( "onPlayerQuit", root, 
    function ( ) 
        local acc = getPlayerAccount ( source ) 
        if ( acc ) and not ( isGuestAccount ( acc ) ) and ( getElementData ( source, "CustomTag" ) ) then 
            setAccountData ( acc, "CustomTag", getElementData ( source, "CustomTag" ) ) 
        end 
    end 
) 
  
  
  
  
  
  

طريقة الاستخذام ..

حط سيريالك وشغل المود .. وروح اف 8

واكتب

supernick اكشن

ويضبط ..

ملاحظة : الكود ماهو لي بس عدلت عليه ..

أولاً الكود مهوب لكـ ، ويُفضل ماتطرح اكواد غيركـ إلا لين تطرح اسم صاحبها ..

ثانياً انت معدل على كودي والمشكلة مخبص فيه بالتعديل ههههههههههههه

السطر الثالث بالكود :

if (getPlayerSerial(player, _, nick)== 'YourSerial' ) then 

انا من شفتك معرف اللاعب بالشكل هذا غسلت يدي :mrgreen:

انت شفت كنق قال ها الكلام ^ .. ورحت عدلته ولا كان هو غلط .. :lol:

اما هو رايح معدل الكود وجاي يقول الكود صح ؟ :lol::lol::lol::lol:

توي انتبه والله هههههههههههههه

بكذا هو يستحق 20 نجمة :lol::lol:

Link to comment
طيب عدلته بعد كم دقيقة ..

:lol:

:roll:

طيب قبل تعدله كان صح ؟ :mrgreen:

ههههههههههههههههههههههههههههههه كنق خلاص اتركهـ عنكـ طقطقنا عليه الين زهقنا ههههههههههههههههههههههههههههههه .. :lol::lol:

:lol::lol::mrgreen::mrgreen:

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...