Jump to content

تصحيح كود


Recommended Posts

^ ما كنت اتوقع بيصير مشآكل,

شكرآ للتنبيه,

function spawn (player) 
if getElementType(player) == 'player' then 
local Team = getPlayerTeam ( player ) 
if Team then 
if Team == getTeamFromName ( "SWAT" ) then 
spawnPlayer (player,1859,552,321 ) 
else 
spawnPlayer (player,1835,551,321 ) 
               end 
          end 
     end 
end   
addEventHandler("onPlayerSpawn",root,spawn) 
Link to comment
^ ما كنت اتوقع بيصير مشآكل,

شكرآ للتنبيه,

function spawn (player) 
if getElementType(player) == 'player' then 
local Team = getPlayerTeam ( player ) 
if Team then 
if Team == getTeamFromName ( "SWAT" ) then 
spawnPlayer (player,1859,552,321 ) 
else 
spawnPlayer (player,1835,551,321 ) 
               end 
          end 
     end 
end   
addEventHandler("onPlayerSpawn",root,spawn) 

والاحداثيات فين ذي...؟؟

,1859,552,321 

Link to comment

يا شباب لسا يقلي خطا والله

وهاذ هو الكود

function spawn (player) 
if getElementType(player) == 'player' then 
local Team = getPlayerTeam ( player ) 
if Team then 
if Team == getTeamFromName ( "SWAT" ) then 
spawnPlayer (player,1859,552,321 ) 
else 
spawnPlayer (player,1835,551,321 ) 
               end 
          end 
     end 
end   
addEventHandler("onPlayerSpawn",root,spawn) 

Link to comment
function spawn ( ) 
    local Team = getPlayerTeam ( source ) 
    local SwatTeam = getTeamFromName ( "SWAT" ) 
    if Team and SwatTeam then 
        if Team == SwatTeam then 
            spawnPlayer ( source, 1859, 552, 321 ) 
        else 
            spawnPlayer ( source, 1835, 551, 321 ) 
        end 
    end 
end   
addEventHandler ( "onPlayerWasted", root, spawn ) 

Link to comment
function spawn ( ) 
    if getElementType ( source ) == "player" then 
        local Team = getPlayerTeam ( source ) 
        local SwatTeam = getTeamFromName ( "SWAT" ) 
        if Team and SwatTeam then 
            if Team == SwatTeam then 
                spawnPlayer ( source, 1859, 552, 321 ) 
            else 
                spawnPlayer ( source, 1835, 551, 321 ) 
            end 
        end 
    end 
end   
addEventHandler ( "onPlayerWasted", root, spawn ) 

وش الداعي تعرف السورس وهو معرف من الاصل؟

Wiki :

The source of this event is the player that died or got killed.

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