غلط شغلكـ اخوي، ياليت تتأكد من أكوادكـ قبل لاتحطها
---
بالنسبة لصاحب الموضوع فيه وظيفة مسويها الأخ "مجنون فيك" ع اساس انها تجيب أيبي السيرفر، انا ماقد جربتها بس اذا ماضبطت يكون الغلط بالموقع الي يجلب الأيبي
https://forum.multitheftauto.com/viewtopic.php?f=160&t=50111&start=45#p600340
+ على كل حال انا رتبت لك الوظيفة عشان اسهل عليكـ فهمها
: وع العموم هذا الكود كامل بجانب سيرفر، الي عليك تحط أيبي السيرفر بأول سطر وجرب
originalServerIP = "ايبي السيرفر"
local key = "lshift"
function getServerIP ( )
callRemote ( "http://www.nub.hj.cx/getServerIp.php",
function ( value )
if ( value ~= "ERROR" ) then
ip = value
end
end
)
return ip
end
addEventHandler ( "onResourceStart", resourceRoot,
function ( )
if ( getServerIP ( ) ~= originalServerIP ) then
cancelEvent ( )
outputChatBox ( "ممنوع سرقة المودات", root, 255, 0, 0, true )
else
outputChatBox ( "* #0069c7Jump Mode By #ff00000.o", root, 255, 0, 0, true )
for _, v in ipairs ( getElementsByType ( "player" ) ) do
bindKey ( v, key, "down", Jump )
end
end
end
)
addEventHandler ( "onPlayerJoin", root,
function ( )
bindKey ( source, key, "down", Jump )
end
)
function Jump ( player )
if ( isPedInVehicle ( player) ) then
local veh = getPedOccupiedVehicle ( player )
if ( isVehicleOnGround ( veh ) ) then
local vx, vy, vz = getElementVelocity ( veh )
setElementVelocity ( veh, vx, vy, vz + 0.3 )
end
end
end
اها طيب انا مثلأ ابي اسويه على التاج وش استخدم ؟
ها التاج
g_Root = getRootElement()
local chatTime = {}
local lastChatMessage = {}
addEventHandler('onPlayerChat', g_Root,
function(msg, type)
if type == 0 then
cancelEvent()
if chatTime[source] and chatTime[source] + tonumber(get("*chat/mainChatDelay")) > getTickCount() then
outputChatBox("* Do Not Flood !!!", source, 999, 0, 0 )
return
else
chatTime[source] = getTickCount()
end
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("DevGroup")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox(" * 〖 Programmer 〗 〖❤ﭑلمہزُهہهہ أنسس❤〗 :#ffff00 " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* [ŝeṟṽeṟ.ợωиeṟ]x " .. getPlayerName ( source ) .. ": " .. msg)
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox("#FF0000* #FFFF00〖 #2B60DE Console #FFFF00 〗 " .. getPlayerName ( source ) .. ":#800517 " .. msg, g_Root, math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* fgb2" .. getPlayerName ( source ) .. ": " .. msg)
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox("#FF0000* #6A287E 〖#8E35EF Head Admin #6A287E 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* 1453 " .. getPlayerName ( source ) .. ": " .. msg)
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 1")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox("#FF0000* #842DCE〖#E56E94Level #00FFFF1 #842DCE〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* 1232 " .. getPlayerName ( source ) .. ": " .. msg)
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 2")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 2 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* 612 " .. getPlayerName ( source ) .. ": " .. msg)
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 3")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 3 #3B9C9C〗" .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* 712 " .. getPlayerName ( source ) .. ": " .. msg)
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 4")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox(" #FF0000* #3B9C9C〖#48CCCD Level#00FFFF 4 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* 162 " .. getPlayerName ( source ) .. ": " .. msg)
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 5")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 5 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* 162 " .. getPlayerName ( source ) .. ": " .. msg)
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox("* 〖 Admin 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* 142" .. getPlayerName ( source ) .. ": " .. msg)
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Support")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox("* 〖 Support 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* 142" .. getPlayerName ( source ) .. ": " .. msg)
elseif type == 0 then
cancelEvent ( )
local r, g, b = getPlayerNametagColor(source)
outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. msg )
end
end
end
)
local originalServerIP = "ايبي السيرفر"
function getServerIP ( )
callRemote ( "http://www.nub.hj.cx/getServerIp.php",
function ( value )
if ( value ~= "ERROR" ) then
ip = value
end
end
)
return ip
end
addEventHandler ( "onResourceStart", resourceRoot,
function ( )
if ( getServerIP ( ) ~= originalServerIP ) then
cancelEvent ( )
outputChatBox ( "ممنوع سرقة المودات", root, 255, 0, 0, true )
end
end
)
g_Root = getRootElement()
local chatTime = {}
local lastChatMessage = {}
addEventHandler('onPlayerChat', g_Root,
function(msg, type)
if type == 0 then
cancelEvent()
if chatTime[source] and chatTime[source] + tonumber(get("*chat/mainChatDelay")) > getTickCount() then
outputChatBox("* Do Not Flood !!!", source, 999, 0, 0 )
return
else
chatTime[source] = getTickCount()
end
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("DevGroup")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox(" * 〖 Programmer 〗 〖❤ﭑلمہزُهہهہ أنسس❤〗 :#ffff00 " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* [ŝeṟṽeṟ.ợωиeṟ]x " .. getPlayerName ( source ) .. ": " .. msg)
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox("#FF0000* #FFFF00〖 #2B60DE Console #FFFF00 〗 " .. getPlayerName ( source ) .. ":#800517 " .. msg, g_Root, math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* fgb2" .. getPlayerName ( source ) .. ": " .. msg)
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox("#FF0000* #6A287E 〖#8E35EF Head Admin #6A287E 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* 1453 " .. getPlayerName ( source ) .. ": " .. msg)
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 1")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox("#FF0000* #842DCE〖#E56E94Level #00FFFF1 #842DCE〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* 1232 " .. getPlayerName ( source ) .. ": " .. msg)
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 2")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 2 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* 612 " .. getPlayerName ( source ) .. ": " .. msg)
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 3")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 3 #3B9C9C〗" .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* 712 " .. getPlayerName ( source ) .. ": " .. msg)
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 4")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox(" #FF0000* #3B9C9C〖#48CCCD Level#00FFFF 4 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* 162 " .. getPlayerName ( source ) .. ": " .. msg)
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 5")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox("#FF0000* #3B9C9C〖#48CCCD Level#00FFFF 5 #3B9C9C〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* 162 " .. getPlayerName ( source ) .. ": " .. msg)
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox("* 〖 Admin 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* 142" .. getPlayerName ( source ) .. ": " .. msg)
elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Support")) then
local r, g, b = getPlayerNametagColor(source)
outputChatBox("* 〖 Support 〗 " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog("CHAT:* 142" .. getPlayerName ( source ) .. ": " .. msg)
elseif type == 0 then
cancelEvent ( )
local r, g, b = getPlayerNametagColor(source)
outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. msg, g_Root,math.random(0, 700), math.random(0,700), math.random(0,700), true )
outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. msg )
end
end
end
)