Jump to content

ربط المود بالسيريال


Recommended Posts

  • Replies 61
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

^^

اممم ... كيف تسوي احظار الحساب بـ اسم الاعب -_- مو شرط اسم الحساب يكون اسم الاعب !

username: The username of the account you want to retrieve

ما فهمت عليك يعني نخليه

getAccountName

getPlayerAccount 
getAccountName 

Link to comment

اذا يبي يفتح النافذه بالسيريال

ياخذ ذا الكود

key = "f1" -- حدد الزر 
serial = "xxx" -- حط السيريال 
  
bindKey(key,"down", 
    function () 
        if getPlayerSerial() == serial then 
            if guiGetVisible(wnd) then 
                guiSetVisible(wnd,false) 
                showCursor(false) 
            else 
                guiSetVisible(wnd,true) 
                showCursor(true) 
            end 
        end 
    end 
) 
  

Edited by Guest
Link to comment
All Worng !

:mrgreen: طلال كوده صحيح.و ياليت تتكلم عربي في هذا القسم

انا ابي مود يشتغل لشخص

معين

عبر السريال او الحساب

Functions # 
--------- 
getPlayerSerial 
getResourceFormName 
startResource 
stopResource 
------------ # 
Event: 
-----------# 
onResourceStart 
  
------------# 

Link to comment
All Worng !

:mrgreen: طلال كوده صحيح.و ياليت تتكلم عربي في هذا القسم

انا ابي مود يشتغل لشخص

معين

عبر السريال او الحساب

Functions # 
--------- 
getPlayerSerial 
getResourceFormName 
startResource 
stopResource 
------------ # 
Event: 
-----------# 
onResourceStart 
  
------------# 

خخخ اذا ماعدل على نفس المود ماراح يقدر يخليه يشتغل على سريال الاعب

لأته

startResource 
stopResource 

مستحيل يكون لشخص معين بيكون للكل .~!

Link to comment

حسن الفنكشن ذا يوقف المود المعين مو كل المودات !

يعني مثلأأ هاذا مثال ..

addEventHandler('onResourceStart', resourceRoot, 
function ( uPlayer) 
    if(getPlayerSerial(uPlayer) == '....' ) and getResourceFromName('Tactics') then 
    startResource('Tactics') 
    else 
    cancelEvent( ) 
 ---- or stopResource 
  end 
 end  
) 

+

اذا يبيه لشخص معين صعب ذذ

Edited by Guest
Link to comment
يب عارف لاكن المود راح يشتغل للكل هع هو قال يبي يشتغل لسريال معين او حساب معين لاتستعجل في ردودك :fadein:

ومثالك خطأ اصلا getPlayerSerial(source) ?? source == ?

اوه احسبه يبي يشغله عام

اذا لشخص معين مستحيل يجي

بس مدري اذا يقدر يشغله على عالم وهمي ؟

Link to comment
--Client-- 
        function LAD() 
        if(getPlayerSerial(source) == "سيريالك")then 
            ---- الشي الي تبيه 
        outputChatBox( 'see anything', 0, 225, 0, true ) 
        end 
    end 
    addEventHandler("onClientPlayerJoin", getLocalPlayer(), LAD) 
  
  

ي عيال وش الخطا هنا ؟

:idea:

Link to comment

:lol:

وش دخل العالم وهمي ماب هو خخ اذا يبي يشغله على سريال معين بداية الملف كلينت

if ( getPlayerSerial(source) == "Serial" ) then 

نهاية الملف

end 

واذا يبيه في ملف سيرفر

كلينت

triggerServerEvent("x",localPlayer) 

سيرفر بداية الملف

addEvent("x",true) 
addEventHandler("x",root,function() 
    if ( getPlayerSerial(source) == "" ) then 
        x() 
    end 
end) 
  
function x() 

نهاية الملف

end 

Link to comment
--Client-- 
        function LAD() 
        if(getPlayerSerial(source) == "سيريالك")then 
            ---- الشي الي تبيه 
        outputChatBox( 'see anything', 0, 225, 0, true ) 
        end 
    end 
    addEventHandler("onClientPlayerJoin", getLocalPlayer(), LAD) 
  
  

ي عيال وش الخطا هنا ؟

:idea:

source -_-

Link to comment

onClientPlayerJoin -- كلينت

getLocalPlayer() -- كلينت

(source) --- سيرفر

الاصلاح ...

addEventHandler('onResourceStart', resourceRoot, 
function (uPlayer ) 
    if (getPlayerSerial(uPlayer)== '...' ) then 
    outputChatBox('......', source, 255, 0 , 0) 
  end 
end 
) 

Link to comment
onClientPlayerJoin -- كلينت

getLocalPlayer() -- كلينت

?? localPlayer in the client side?

(source) --- سيرفر

الاصلاح ...

addEventHandler('onResourceStart', resourceRoot, 
function (uPlayer ) 
    if (getPlayerSerial(uPlayer)== '...' ) then 
    outputChatBox('......', source, 255, 0 , 0) 
  end 
end 
) 

Client 
string getPlayerSerial ( ) 

Link to comment
--Client-- 
        function LAD() 
        if(getPlayerSerial(source) == "سيريالك")then 
            ---- الشي الي تبيه 
        outputChatBox( 'see anything', 0, 225, 0, true ) 
        end 
    end 
    addEventHandler("onClientPlayerJoin", getLocalPlayer(), LAD) 
  
  

ي عيال وش الخطا هنا ؟

        function LAD() 
        if(getPlayerSerial(source) == "سيريالك")then 
            ---- الشي الي تبيه 
        outputChatBox( "see anything", 0, 225, 0, true ) 
        end 
    end 
    addEventHandler("onClientPlayerJoin", getRootElement(), LAD) 
  
  

[/lua]

Link to comment
onClientPlayerJoin -- كلينت

getLocalPlayer() -- كلينت

(source) --- سيرفر

الاصلاح ...

addEventHandler('onResourceStart', resourceRoot, 
function (uPlayer ) 
    if (getPlayerSerial(uPlayer)== '...' ) then 
    outputChatBox('......', source, 255, 0 , 0) 
  end 
end 
) 

هههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههه

ما كأني شرحت لك قبل أن الأفنت ذا ما فيه بارتمر لاعب؟

Link to comment
onClientPlayerJoin -- كلينت

getLocalPlayer() -- كلينت

(source) --- سيرفر

الاصلاح ...

addEventHandler('onResourceStart', resourceRoot, 
function (uPlayer ) 
    if (getPlayerSerial(uPlayer)== '...' ) then 
    outputChatBox('......', source, 255, 0 , 0) 
  end 
end 
) 

هههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههه

ما كأني شرحت لك قبل أن الأفنت ذا ما فيه بارتمر لاعب؟

هههههههه اجل جبت العيد ذذ

Link to comment

على فكره

ما يشتغل إلى اللاعب الي توه خش السيرفر onClientPlayerJoin الأفنت

ياليت تراجعون الويكي قبل لا تحطون أي كود

This event is triggered when a player joins a server. It is triggered for all players except the local player, as the local player joins the server before their client-side resources are started. It would also be possible for two players to join within a few seconds of each other and for the two players' scripts may not receive onClientPlayerJoin events as their scripts wouldn't have started yet.
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...