Jump to content

تعديل


Adham

Recommended Posts

سلام عليكم

اليوم مش عارف لغبط في الكود ذا

cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox(" " ..getPlayerTeam ( source ) ..* [ Lv.3 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [ Lv.3 ] " .. getPlayerName ( source ) .. ": " .. text) 
  
 

فا انا عاوز اعمل

الشرطه دي

القبل لفل 3

دي *

تلون علي حسب التيم

عملت getPlayer Team

لقيت ما في تاق من اصلن

Link to comment
cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox(" " ..getPlayerTeam ( source ) .."" * [ Lv.3 ] " .. getPlayerName ( source ) .. "  :#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [ Lv.3 ] " .. getPlayerName ( source ) .. ": " .. text) 
  
  
  
 

Link to comment
local r, g, b = getPlayerNametagColor(source) 
outputChatBox("" ..getPlayerTeam ( source ) .." [ Lv.3 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, r, g, b, true ) 
outputServerLog("CHAT: [ Lv.3 ] " .. getPlayerName ( source ) .. ": " .. text) 
  

Link to comment
local r, g, b = getPlayerNametagColor(source) 
outputChatBox("" ..getPlayerTeam ( source ) .." [ Lv.3 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, r, g, b, true ) 
outputServerLog("CHAT: [ Lv.3 ] " .. getPlayerName ( source ) .. ": " .. text) 
  

مايبيلها دي بق

سطر 2 كيف تجيبون التيم نفسه وتحطونه بالتاج ؟؟

Link to comment
local r, g, b = getPlayerNametagColor(source) 
outputChatBox("" ..getPlayerTeam ( source ) .." [ Lv.3 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, r, g, b, true ) 
outputServerLog("CHAT: [ Lv.3 ] " .. getPlayerName ( source ) .. ": " .. text) 
  

:idea:

ليه شيلت ال getRootElement

Link to comment
local r, g, b = getPlayerNametagColor(source) 
outputChatBox("" ..getPlayerTeam ( source ) .." [ Lv.3 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, r, g, b, true ) 
outputServerLog("CHAT: [ Lv.3 ] " .. getPlayerName ( source ) .. ": " .. text) 
  

مايبيلها دي بق

سطر 2 كيف تجيبون التيم نفسه وتحطونه بالتاج ؟؟

local r, g, b = getPlayerNametagColor(source) 
local Team = getTeamName(getPlayerTeam ( source )) 
outputChatBox("" .. Team .." [ Lv.3 ] " .. getPlayerName ( source ) .. ":#ffffff " .. text, getRootElement(), r, g, b, true ) 
outputServerLog("CHAT: [ Lv.3 ] " .. Team .. ": " .. text) 

Debug - nothing . :D

Link to comment

addEventHandler( 'onPlayerChat', root, 
function(text) 
cancelEvent() 
if tostring(text) then 
local r, g, b = getPlayerNametagColor(source) 
local Team = getTeamName(getPlayerTeam ( source )) 
local Name = getPlayerName ( source ) 
outputChatBox("" .. Team .." [ Lv.3 ] " .. Name .. ":#ffffff " .. text, getRootElement(), r, g, b, true ) 
outputServerLog("CHAT: [ Lv.3 ] " .. Team .. ": " .. text) 
end 
end) ; 

OK 100%

:wink:

Link to comment
addEventHandler( 'onPlayerChat', root, 
function(text) 
cancelEvent() 
if tostring(text) then 
local r, g, b = getPlayerNametagColor(source) 
local Team = getTeamName(getPlayerTeam ( source )) 
local Name = getPlayerName ( source ) 
outputChatBox("" .. Team .." [ Lv.3 ] " .. Name .. ":#ffffff " .. text, getRootElement(), r, g, b, true ) 
outputServerLog("CHAT: [ Lv.3 ] " .. Team .. ": " .. text) 
end 
end) ; 

OK 100%

:wink:

cancelEvent()

ليش يكنسل الايفنت

Link to comment
addEventHandler( 'onPlayerChat', root, 
function(text) 
cancelEvent() 
if tostring(text) then 
local r, g, b = getPlayerNametagColor(source) 
local Team = getTeamName(getPlayerTeam ( source )) 
local Name = getPlayerName ( source ) 
outputChatBox("" .. Team .." [ Lv.3 ] " .. Name .. ":#ffffff " .. text, getRootElement(), r, g, b, true ) 
outputServerLog("CHAT: [ Lv.3 ] " .. Team .. ": " .. text) 
end 
end) ; 

OK 100%

function Chat(text)  
local playerTeam = getPlayerTeam(source) 
if playerTeam then -- تحقق اذا كان التيم مو موجود مايطلع اخطاء بالديبق 
local r, g, b = getTeamColor (playerTeam) 
outputChatBox("" ..getTeamName(playerTeam) .." [ Lv.3 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
outputServerLog("CHAT: [ Lv.3 ] " .. getTeamName(playerTeam)  .. ": " .. text) 
end 
end 
addEventHandler("onPlayerChat",root,Chat) 
Link to comment
addEventHandler( 'onPlayerChat', root, 
function(text) 
cancelEvent() 
if tostring(text) then 
local r, g, b = getPlayerNametagColor(source) 
local Team = getTeamName(getPlayerTeam ( source )) 
local Name = getPlayerName ( source ) 
outputChatBox("" .. Team .." [ Lv.3 ] " .. Name .. ":#ffffff " .. text, getRootElement(), r, g, b, true ) 
outputServerLog("CHAT: [ Lv.3 ] " .. Team .. ": " .. text) 
end 
end) ; 

OK 100%

:wink:

cancelEvent()

ليش يكنسل الايفنت

عشان مايكرر بالشات :lol:

Link to comment
addEventHandler( 'onPlayerChat', root, 
function(text) 
cancelEvent() 
if tostring(text) then 
local r, g, b = getPlayerNametagColor(source) 
local Team = getTeamName(getPlayerTeam ( source )) 
local Name = getPlayerName ( source ) 
outputChatBox("" .. Team .." [ Lv.3 ] " .. Name .. ":#ffffff " .. text, getRootElement(), r, g, b, true ) 
outputServerLog("CHAT: [ Lv.3 ] " .. Team .. ": " .. text) 
end 
end) ; 

OK 100%

function Chat(text)  
local playerTeam = getPlayerTeam(source) 
if playerTeam then -- تحقق اذا كان التيم مو موجود مايطلع اخطاء بالديبق 
local r, g, b = getTeamColor (playerTeam) 
outputChatBox("" ..getTeamName(playerTeam) .." [ Lv.3 ] " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
outputServerLog("CHAT: [ Lv.3 ] " .. getTeamName(playerTeam)  .. ": " .. text) 
end 
end 
addEventHandler("onPlayerChat",root,Chat) 

تم تجربة الكود وبدون تحقق من التيم :\

لو الاعب مو بالتيم يجي اسمه فقط :wink:

مايبيلها كل اللي فوق

Link to comment

تم تجربة الكود وبدون تحقق من التيم :\

لو الاعب مو بالتيم يجي اسمه فقط :wink:

مايبيلها كل اللي فوق

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

جرب كودك وانت تعرف

Link to comment

تم تجربة الكود وبدون تحقق من التيم :\

لو الاعب مو بالتيم يجي اسمه فقط :wink:

مايبيلها كل اللي فوق

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

جرب كودك وانت تعرف

انت مسوي يجيب لون التيم وهو صاحب الموضوع مسوي يجيب لون تاج الاعب

getPlayerNametagColor 

فــ كودك اللي يجي باد ارقمنت ..

كودي جربته 100 مية

Link to comment

تم تجربة الكود وبدون تحقق من التيم :\

لو الاعب مو بالتيم يجي اسمه فقط :wink:

مايبيلها كل اللي فوق

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

جرب كودك وانت تعرف

انت مسوي يجيب لون التيم وهو صاحب الموضوع مسوي يجيب لون تاج الاعب

getPlayerNametagColor 

فــ كودك اللي يجي باد ارقمنت ..

كودي جربته 100 مية

صاحب الموضوع قال يتلون على حسب التيم

وجربت كودك يطلع باد ارقمنت بالديبق

عشان انا ماكنت بالتيم لكن يوم احط لنفسي تيم مايطلع اخطاء

فعشان كذا لازم تسوي تحقق اذا كان التيم موجود او لا

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