Jump to content

طلب كود


charaf12

Recommended Posts

شباب ابي كود انتقال الاعب بعد الموت

هذا ما ضبط معاي ممكن تعطوني اخر

onWasted = function() 
    if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' and getElementData ( source , "Group" ) == "[s.S]" then 
            function sp( source ) 
            setElementPosition( source, 2005.00000,1543.00000,13.59075 ) 
            setPedArmor( source, 100 ) 
            giveWeapon( source, 46 ) 
            setPedSkin( source, 181 ) 
            end 
            setTimer(sp,1000,1,source) 
    end 
end 
addEventHandler ( "onPlayerSpawn", getRootElement(), onWasted ) 

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

Link to comment

انت تبي اللاعب يروح لبيت المقر بعد مايموت

جرب كذا

onWasted = function() 
    if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' and getElementData ( source , "Group" ) == "[s.S]" then 
            function sp( source ) 
            setElementPosition( source, 2005.00000,1543.00000,13.59075 ) -- تاكد من الاحداثيات داخل البيت 
            setElementInterior(source, ... )  -- حط رقم البيت هنا 
            setPedArmor( source, 100 ) 
            giveWeapon( source, 46 ) 
            setPedSkin( source, 181 ) 
            end 
            setTimer(sp,1000,1,source) 
    end 
end 
addEventHandler ( "onPlayerSpawn", getRootElement(), onWasted ) 

Link to comment

ما ضبط نفس المشكلة لما ادخل للبيت يديني احداثيات ما بعد الموت ومتاكد 100/100 الاحداثيات كلها صحيحة

المشكلة هي بين كود البيت و الانتقال بعد الموت

Link to comment
ما ضبط نفس المشكلة لما ادخل للبيت يديني احداثيات ما بعد الموت ومتاكد 100/100 الاحداثيات كلها صحيحة

المشكلة هي بين كود البيت و الانتقال بعد الموت

طيب جرب استخدم

"onPlayerWasted" 

بدال

"onPlayerSpawn" 

Link to comment
ما ضبط نفس المشكلة لما ادخل للبيت يديني احداثيات ما بعد الموت ومتاكد 100/100 الاحداثيات كلها صحيحة

المشكلة هي بين كود البيت و الانتقال بعد الموت

طيب جرب استخدم

"onPlayerWasted" 

بدال

"onPlayerSpawn" 

+

setElementPosition 

بدال

spawnPlayer 

Link to comment

جـرب .. الـكـود ورد خـبـر . . :roll:

function Spawns () 
    if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' and getElementData ( source , "Group" ) == "[s.S]" then 
    setElementPosition( source, 2005.00000, 1543.00000, 13.59075 ) 
    setElementInterior(source, رقم المبنى ) 
    setPedArmor( source, 100 ) 
    giveWeapon( source, 46 ) 
    setPedSkin( source, 181 ) 
 end 
 end 
addEventHandler ( "onPlayerWasted", root, Spawns ) 

# تـعـديـل ..

رقم المبنى = يعني رقم البيت كم

تأكد من الاحداثيات

Edited by Guest
Link to comment

function Spawns () 
    if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' and getElementData ( source , "Group" ) == "[s.S]" then 
    spawnPlayer( source, 2005.00000, 1543.00000, 13.59075 ) 
    setElementInterior(source, interior, x, y, z ) 
    setPedArmor( source, 100 ) 
    giveWeapon( source, 46 ) 
    setPedSkin( source, 181 ) 
 end 
 end 
addEventHandler ( "onPlayerWasted", root, Spawns ) 

بالسطر الـ 4

استبدل interior بـ رقم المبنى

x,y,z = الاحداثيات اللي يحطك فيها داخل المبنى

Link to comment
  • 2 weeks later...

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