Jump to content

طلب كود لاهنتم


Recommended Posts

جرب هذا

  
Team1 = createTeam ( "Police", 0, 255, 0 )--غير اسم التيم لو تبي 
Team2 = createTeam ( "Gang", 0, 255, 0 )--غير اسم التيم لو تبي 
-- 
addEventHandler("onPlayerWasted", root, 
function Wasted() 
    local team1 = getTeamFromName( "Police" ) 
    local team2 = getTeamFromName( "Gang" ) 
    local pteam = getPlayerTeam( source ) 
    if ( pteam == team1 ) then 
        spawnPlayer ( source, x, y, z, 0, 0, 0, 0,team1 ) --Add Position x,y,z 
        setTeamName ( Team2, source ) 
        fadeCamera( source, true ) 
        setCameraTarget( source ,source ) 
    elseif ( pteam == team2 ) then 
        spawnPlayer ( source, x, y, z, 0, 0, 0, 0,team2 ) --Add Position x,y,z 
        setTeamName ( Team1, source ) 
        fadeCamera( source, true ) 
        setCameraTarget( source, source ) 
    end 
end) 

Link to comment
جرب هذا
  
Team1 = createTeam ( "Police", 0, 255, 0 )--غير اسم التيم لو تبي 
Team2 = createTeam ( "Gang", 0, 255, 0 )--غير اسم التيم لو تبي 
-- 
addEventHandler("onPlayerWasted", root, 
function Wasted() 
    local team1 = getTeamFromName( "Police" ) 
    local team2 = getTeamFromName( "Gang" ) 
    local pteam = getPlayerTeam( source ) 
    if ( pteam == team1 ) then 
        spawnPlayer ( source, x, y, z, 0, 0, 0, 0,team1 ) --Add Position x,y,z 
        setTeamName ( Team2, source ) 
        fadeCamera( source, true ) 
        setCameraTarget( source ,source ) 
    elseif ( pteam == team2 ) then 
        spawnPlayer ( source, x, y, z, 0, 0, 0, 0,team2 ) --Add Position x,y,z 
        setTeamName ( Team1, source ) 
        fadeCamera( source, true ) 
        setCameraTarget( source, source ) 
    end 
end) 

Wrong

Link to comment
جرب هذا
  
Team1 = createTeam ( "Police", 0, 255, 0 )--غير اسم التيم لو تبي 
Team2 = createTeam ( "Gang", 0, 255, 0 )--غير اسم التيم لو تبي 
-- 
addEventHandler("onPlayerWasted", root, 
function Wasted() 
    local team1 = getTeamFromName( "Police" ) 
    local team2 = getTeamFromName( "Gang" ) 
    local pteam = getPlayerTeam( source ) 
    if ( pteam == team1 ) then 
        spawnPlayer ( source, x, y, z, 0, 0, 0, 0,team1 ) --Add Position x,y,z 
        setTeamName ( Team2, source ) 
        fadeCamera( source, true ) 
        setCameraTarget( source ,source ) 
    elseif ( pteam == team2 ) then 
        spawnPlayer ( source, x, y, z, 0, 0, 0, 0,team2 ) --Add Position x,y,z 
        setTeamName ( Team1, source ) 
        fadeCamera( source, true ) 
        setCameraTarget( source, source ) 
    end 
end) 

Wrong

I really do not know What he wants

Edited by Guest
Link to comment
فهمني صح طيب

اولاً الأكواد الجاهزة تخليكـ تعتمد على غيركـ و ماتتعلم :/

ثانياً ادخل الصفحة ذي وافهم اللي فيها وحاول تطبق

https://wiki.multitheftauto.com/wiki/Scr ... ed_to_know

واعتقد الشباب ماقصروا في تعريب الويكي . . /

+1

تعلم مثل ما تعلمنا و احنا هنا نحل المشاكل الي في كودك

ما نعطيك الكود جاهز

Link to comment
جرب هذا
  
Team1 = createTeam ( "Police", 0, 255, 0 )--غير اسم التيم لو تبي 
Team2 = createTeam ( "Gang", 0, 255, 0 )--غير اسم التيم لو تبي 
-- 
addEventHandler("onPlayerWasted", root, 
function Wasted() 
    local team1 = getTeamFromName( "Police" ) 
    local team2 = getTeamFromName( "Gang" ) 
    local pteam = getPlayerTeam( source ) 
    if ( pteam == team1 ) then 
        spawnPlayer ( source, x, y, z, 0, 0, 0, 0,team1 ) --Add Position x,y,z 
        setTeamName ( Team2, source ) 
        fadeCamera( source, true ) 
        setCameraTarget( source ,source ) 
    elseif ( pteam == team2 ) then 
        spawnPlayer ( source, x, y, z, 0, 0, 0, 0,team2 ) --Add Position x,y,z 
        setTeamName ( Team1, source ) 
        fadeCamera( source, true ) 
        setCameraTarget( source, source ) 
    end 
end) 

ابي افهم بالله وش دخل setTeamName ?!?!?!

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