Jump to content

تايمر السباون


Recommended Posts

السلام عليكم

كيفكم

ابي اسوي تايمر لسباون

مادري وش المشكله ولا يطلع اخطاء

addEventHandler("onPlayerWasted",root,function () 
if ( getPlayerTeam(source) == getTeamFromName("V") ) then 
function pp () 
setTimer ( spawnPlayer(source,2264.072265625, -1104.564453125, 37.9765625), 4000, 1, pp ) 
end 
end 
end) 

سوال ..

كيف جعل شاشاه الاعب سوداء لمدة معينه بعد موتة

:roll:

Link to comment

source

مانه معرف

addEventHandler("onPlayerWasted",root,  
function () 
    if ( getPlayerTeam(source) == getTeamFromName("V") ) then 
        setTimer ( function (source) 
            spawnPlayer(source,2264.072265625, -1104.564453125, 37.9765625) 
        end,4000, 1) 
    end 
end) 

جرب

Edited by Guest
Link to comment
addEventHandler("onPlayerWasted",root,function () 
if ( getPlayerTeam(source) == getTeamFromName("V") ) then 
setTimer ( spawnPlayer, 2000, 1,source, 2264.072265625, -1104.564453125, 37.9765625 ) 
           end 
   end 
) 
source

مانه معرف

السورس معرف من حاله هو الاعب الي مآت

Link to comment

اذا كان معرف ليش يطلع لك خطأ بلارقمنت حق الاعب :|

+ لاحظ الكود حق التايمر انك فتحت فنكشن جديد و خرجت عن فنكشن الايفينت يعني التعريف راح 8)

Link to comment
اذا كان معرف ليش يطلع لك خطأ بلارقمنت حق الاعب :|

+ لاحظ الكود حق التايمر انك فتحت فنكشن جديد و خرجت عن فنكشن الايفينت يعني التعريف راح 8)

أنت قلت السورس موب معرف والسورس معرف من حاله هو اللاعب الي مآت

والبآد أرقمنت أنا أخطأت يوم حطيت السورس قبل وقت التآيمر ذذذ

addEventHandler("onPlayerWasted",root,function () 
if ( getPlayerTeam(source) == getTeamFromName("V") ) then 
setTimer ( spawnPlayer,source,2000,1, 2264.072265625, -1104.564453125, 37.9765625 ) 
           end 
   end 
) 
Link to comment
source

مانه معرف

addEventHandler("onPlayerWasted",root,  
function () 
    if ( getPlayerTeam(source) == getTeamFromName("V") ) then 
        setTimer ( function (source) 
            spawnPlayer(source,2264.072265625, -1104.564453125, 37.9765625) 
        end,4000, 1) 
    end 
end) 

جرب

addEventHandler("onPlayerWasted", root,  
function() 
    if getPlayerTeam(source) == getTeamFromName("V") then 
        setTimer(function (source) 
            if isElement(source) then 
                spawnPlayer(source, 2264.072265625, -1104.564453125, 37.9765625) 
            end 
        end, 4000, 1, source) 
    end 
end) 

Link to comment
اذا كان معرف ليش يطلع لك خطأ بلارقمنت حق الاعب :|

+ لاحظ الكود حق التايمر انك فتحت فنكشن جديد و خرجت عن فنكشن الايفينت يعني التعريف راح 8)

أنت قلت السورس موب معرف والسورس معرف من حاله هو اللاعب الي مآت

والبآد أرقمنت أنا أخطأت يوم حطيت السورس قبل وقت التآيمر ذذذ

addEventHandler("onPlayerWasted",root,function () 
if ( getPlayerTeam(source) == getTeamFromName("V") ) then 
setTimer ( spawnPlayer,source,2000,1, 2264.072265625, -1104.564453125, 37.9765625 ) 
           end 
   end 
) 

:o خلاص شفت الغلط

غلطتي اسف :lol:

Link to comment

هنـأ يطلع خطاء ب الارجمنت اذا الاعب مات

لن مابي اخطاء بالديبوق كثير تسبب لاق ذذ

addEvent ("onPlayerWasted", true) 
addEventHandler ("onPlayerWasted", root, function  (ammo,killer, weapon) 
if getPlayerTeam (killer) and getTeamName ( getPlayerTeam ( killer ) ) == "V" then 
    if killer == source then return end 
    givePlayerMoney (killer, 500) 
    outputChatBox ("You have been killed by" .. getPlayerName (killer), source, 255,252,0) 
    outputChatBox ("You have killed " .. getPlayerName (source) .. " and you earned $500", killer, 255,252,0) 
end 
end 
) 

بسطر ذا

if getPlayerTeam (killer) and getTeamName ( getPlayerTeam ( killer ) ) == "V" then 

Edited by Guest
Link to comment
addEventHandler("onPlayerWasted", root,  
function() 
    if getPlayerTeam(source) == getTeamFromName("V") then 
        setTimer(function (source) 
            if isElement(source) then 
                spawnPlayer(source, 2264.072265625, -1104.564453125, 37.9765625) 
            end 
        end, 4000, 1, source) 
    end 
end) 

يعني الحين انا تشخيصي صح ولا سفاح ولا احنا الاثنين صح؟

تشخيص المشكلة مو الحل....

Link to comment
addEventHandler("onPlayerWasted",root,  
function () 
    if ( getPlayerTeam(source) == getTeamFromName("V") ) then 
        setTimer ( function (source) 
            spawnPlayer(source,2264.072265625, -1104.564453125, 37.9765625) 
        end,4000, 1) 
    end 
end) 

        setTimer ( function (source) 

=_=

Link to comment

يعني الحين انا تشخيصي صح ولا سفاح ولا احنا الاثنين صح؟

تشخيص المشكلة مو الحل....

كودكك صحيح لآكن أنت ما عرفت السورس بالتآيمر فــ مآ رآح يشتغل

اصلا اثنينكم خطأ

عشان لو اللاعب مات و فوراً خرج من السيرفر ما يجي خطأ بالدي بق isElement لازم تستخدمو داخل التايمر

Link to comment

يعني الحين انا تشخيصي صح ولا سفاح ولا احنا الاثنين صح؟

تشخيص المشكلة مو الحل....

كودكك صحيح لآكن أنت ما عرفت السورس بالتآيمر فــ مآ رآح يشتغل

اصلا اثنينكم خطأ

عشان لو اللاعب مات و فوراً خرج من السيرفر ما يجي خطأ بالدي بق isElement لازم تستخدمو داخل التايمر

مو مهمة : $

المهم الكود يضبط

Link to comment

مو مهمة : $

كلآم تآبل صحيح وأنا كنت نآسي هـ الشيء المفروض نكثر التحققات قدر الأمكان لـ تجنب الأخطاء

صلح الاخطاء اذا طلعت معك مشاكل مع مود تاني لو خطأ بسيط ما يضر مو شرط اصلحه 8)

+

كل واحد له طريقته بلبرمجة و هذه طريقتي في التعامل مع الاخطاء

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...