Jump to content

تمت الافادة


CRoW,,#

Recommended Posts

addEventHandler( 'onPlayerWasted', getRootElement(), 
function() 
  
if( getTeamName( getPlayerTeam( source ) ) == 'Team1' ) then 
spawnPlayer (source, x, y, z, Team1 ) 
local Team1 = math.random (29, 29) 
  
setPlayerSkin ( source, Team1) 
  
  
-------------------- 
  
  
  
  
  
  
elseif( getTeamName( getPlayerTeam( source ) ) == 'Team2' ) then 
spawnPlayer (source, x, y, z, Team2 ) 
  
local Team2 = math.random (285, 285) 
setPlayerSkin ( source, Team2) 
  
  
  
  
----------- 
  
  
  
  
end 
  
end) 

Link to comment
addEventHandler( 'onPlayerWasted', getRootElement(), 
function() 
  
local accName = getAccountName (getPlayerAccount(thePlayer)) 
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
spawnPlayer (source, x, y, z, Team1 ) 
local Team1 = math.random (29, 29) 
  
setPlayerSkin ( source, Team1) 
  
  
-------------------- 
  
  
  
  
  
  
local accName = getAccountName (getPlayerAccount(thePlayer)) 
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
spawnPlayer (source, x, y, z, Team2 ) 
  
local Team2 = math.random (285, 285) 
setPlayerSkin ( source, Team2) 
  
  
  
  
----------- 
  
  
  
  
end 
  
end) 

يصير مثل كذا ؟

Link to comment
addEventHandler( "onPlayerWasted", root, 
    function() 
        local accName = getAccountName (getPlayerAccount(source)) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
            spawnPlayer (source, x, y, z, Team1 ) 
            local Team1 = 29 
            setPlayerSkin ( source, Team1) 
        elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then 
            spawnPlayer (source, x, y, z, Team2 ) 
            local Team2 = 285 
            setPlayerSkin ( source, Team2) 
        end 
    end 
) 

الشخصيات من هنا

*Edit :

:mrgreen: لوول ما إنتبهت نسخت ولصقت عالسريع

Edited by Guest
Link to comment
addEventHandler( "onPlayerWasted", root, 
    function()  
        local accName = getAccountName (getPlayerAccount(thePlayer)) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
            spawnPlayer (source, x, y, z, Team1 ) 
            local Team1 = 29 
            setPlayerSkin ( source, Team1) 
        elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then 
            spawnPlayer (source, x, y, z, Team2 ) 
            local Team2 = 285 
            setPlayerSkin ( source, Team2) 
        end  
    end 
) 

الشخصيات من هنا

thePlayer Not Defined .

Link to comment

addEventHandler( "onPlayerWasted", root, 
    function()  
        local accName = getAccountName (getPlayerAccount(source)) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
           spawnPlayer ( source, x,y,z, 0, skin, 0, 0 ) 
        elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then 
            spawnPlayer ( source, x,y,z, 0, skin, 0, 0 ) 
        end  
    end 
) 
  
  
Link to comment
addEventHandler( "onPlayerWasted", root, 
    function()  
        local accName = getAccountName (getPlayerAccount(source)) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
           spawnPlayer ( source, x,y,z, 0, skin, 0, 0 ) 
        elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then 
            spawnPlayer ( source, x,y,z, 0, skin, 0, 0 ) 
        end  
    end 
) 
  
  

مشكورر اشتغل

Link to comment
addEventHandler( "onPlayerWasted", root, 
    function()  
        local accName = getAccountName (getPlayerAccount(source)) 
        if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
           spawnPlayer ( source, x,y,z, 0, skin, 0, 0 ) 
        elseif isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then 
            spawnPlayer ( source, x,y,z, 0, skin, 0, 0 ) 
        end  
    end 
) 
  
  

مشكورر اشتغل

You're Welcome .

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