Jump to content

طلب التعديل على الكود


baba

Recommended Posts

سلام عليكم

كيفكم

انا عندي كود حق الريسباون في مكان انا احدده

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

addEventHandler("onPlayerSpawn", root, function(    ) 
    setElementPosition( source, x, y, z ) 
    outputChatBox("مرحباً بك في البدايه", source, 255, 255, 255, true ) 
end ) 
  
addEventHandler("onPlayerWasted", root, function(    ) 
    setElementPosition( source, x, y, z ) 
    outputChatBox("تم نقلك إلى البدايه بسبب موتك", source, 255, 255, 255, true ) 
end ) 

Link to comment

لا

الكود ذا

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

واذا مت ينقلني على المكان نفسه

بس المشكله انو ما في شخصيه محدده

يرسبن فيها

اذا مات ويرجع للمكان الي حددتو بينزل بس الشخصيه غير

:|

وصلت يا غالي؟

Link to comment
لا

الكود ذا

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

واذا مت ينقلني على المكان نفسه

بس المشكله انو ما في شخصيه محدده

يرسبن فيها

اذا مات ويرجع للمكان الي حددتو بينزل بس الشخصيه غير

:|

وصلت يا غالي؟

الشخصيه ترجع سي جي ؟ ..

Link to comment
  
addEventHandler("onPlayerSpawn", root, function(    ) 
if ( getElementData(source, "Group" ) ~= "Name Group" ) then 
setElementPosition( source, x, y, z ) 
outputChatBox("مرحباً بك في البدايه", source, 255, 255, 255, true ) 
end  
end) 
  
addEventHandler("onPlayerWasted", root, function(    ) 
if ( getElementData(source, "Group" ) ~= "Name Group" ) then 
setElementPosition( source, x, y, z ) 
outputChatBox("تم نقلك إلى البدايه بسبب موتك", source, 255, 255, 255, true ) 
end 
end) 
  

Link to comment

يا اخي يا اخي

:@

انا ما قلت ابيها لي قروب

___________________

لا يا نيكي

يتغير الشخصيه مثلن اكون انا حاطها

230

بعد ما اموت تسير

217

____________________

يعني الشخصيه مو ثابته فهمني؟

Link to comment

جرب

local skinID = 0    -- رقم الشخصيه 
  
function spawn(player) 
    if (getElementData (source, "Group") ~= "Name Group") then 
        setElementPosition (source, x, y, z) 
        outputChatBox ("مرحباً بك في البدايه", source, 255, 255, 255, true) 
        setElementModel (source, skinID) 
    repeat until setElementModel(player,skinID) 
    end 
end 
  
function spawnW(player) 
    if (getElementData (source, "Group") ~= "Name Group") then 
        setElementPosition (source, x, y, z) 
        outputChatBox ("تم نقلك إلى البدايه بسبب موتك", source, 255, 255, 255, true) 
    repeat until setElementModel(player,skinID) 
    end 
end 
  
  
addEventHandler("onPlayerSpawn", root, function() 
    setTimer(spawn, 1800, 1, source) 
end) 
  
addEventHandler("onPlayerWasted", root, function() 
    setTimer(spawnW, 1800, 1, source) 
end) 
  

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