Jump to content

x[ تعديل كود ]x


Recommended Posts

Posted

آلسلام عليكم

 

آبي آسوي مود لمآ آحد يشغل مود آو يوقفه آو يرستره 

يجي بآلشآت آلشخص آلي شغل + آسم آلمود  

+ هل لآزم للمود كلنت + سيرفر ولا سيرفر وميتآ بس؟

 

محآولتي للكود آلفآشلة للآسف :

function resourceStart ( )
outputChatBox ( "The mood name "..moodname.." started by "..name.."", getRootElement(), 255, 255, 255, true )
end
end
)

#م آعرف برمجة

330xum0.jpg

p_862d3zvf1.png

* تم آلآفتتآح مرة اخري , حياكم الله *

ip : * mtasa://145.239.212.62:22003 *

330xum0.jpg

Posted

ماتقدر تطلع اسم اللاعب الي شغل المود الا انك تعدل على لوحة الادمنية . 

 

Dis ; AF.#0941

Posted
9 hours ago, Default#^ said:

ماتقدر تطلع اسم اللاعب الي شغل المود الا انك تعدل على لوحة الادمنية . 

 

طيب آعدل بآي ملف؟

@Default#^

330xum0.jpg

p_862d3zvf1.png

* تم آلآفتتآح مرة اخري , حياكم الله *

ip : * mtasa://145.239.212.62:22003 *

330xum0.jpg

Posted

والله ماقد عدلت على لوحة الادمنية ولا سويت فيها شي 

بس اتوقع بملف admin_server 

أبحث عن startResource

Dis ; AF.#0941

Posted
17 hours ago, Default#^ said:

والله ماقد عدلت على لوحة الادمنية ولا سويت فيها شي 

بس اتوقع بملف admin_server 

أبحث عن startResource

مآ تعرف تسويه لي لآني مآ بعرف آسويه للآسف


addEvent ( "aResource", true )
addEventHandler ( "aResource", _root, function ( name, action )
	if checkClient( "command."..action, source, 'aResource', action ) then return end
	local pname = getPlayerName ( source )
	if ( hasObjectPermissionTo ( source, "command."..action ) ) then
		local text = ""
		if ( action == "start" ) then if ( startResource ( getResourceFromName ( name ), true ) ) then text = "started" end
		elseif ( action == "restart" ) then if ( restartResource ( getResourceFromName ( name ) ) ) then text = "restarted" end
		elseif ( action == "stop" ) then if ( stopResource ( getResourceFromName ( name ) ) ) then text = "stopped" end
		elseif ( action == "delete" ) then if ( deleteResource ( getResourceFromName ( name ) ) ) then text = "deleted" end
		elseif ( action == "stopall" ) then if ( stopAllResources ( ) ) then text = "All Stopped" end
		else action = nil
		end
		if ( text ~= "" ) then
			outputServerLog ( "ADMIN: Resource \'" .. name .. "\' " .. text .. " by " .. getAdminNameForLog ( source )  )
			for id, player in ipairs(getElementsByType("player")) do
				triggerClientEvent ( player, "aClientLog", _root, text  )
			end
		end
		return true
	end
	outputChatBox ( "Access denied for '"..tostring ( action ).."'", source, 255, 168, 0 )
	return false
end )

@Default#^

330xum0.jpg

p_862d3zvf1.png

* تم آلآفتتآح مرة اخري , حياكم الله *

ip : * mtasa://145.239.212.62:22003 *

330xum0.jpg

Posted
addEvent ( "aResource", true )
addEventHandler ( "aResource", _root, function ( name, action )
	if checkClient( "command."..action, source, 'aResource', action ) then return end
	local pname = getPlayerName ( source )
	if ( hasObjectPermissionTo ( source, "command."..action ) ) then
		local text = ""
		if ( action == "start" ) then if ( startResource ( getResourceFromName ( name ), true ) ) then outputChatBox( ""..name.." #DC143CStarted by #7CFC00"..getAdminNameForLog ( source ),255,10,10,true) text = "started" end
		elseif ( action == "restart" ) then if ( restartResource ( getResourceFromName ( name ) ) ) then text = "restarted" end
		elseif ( action == "stop" ) then if ( stopResource ( getResourceFromName ( name ) ) ) then text = "stopped" end
		elseif ( action == "delete" ) then if ( deleteResource ( getResourceFromName ( name ) ) ) then text = "deleted" end
		elseif ( action == "stopall" ) then if ( stopAllResources ( ) ) then text = "All Stopped" end
		else action = nil
		end
		if ( text ~= "" ) then
			outputServerLog ( "ADMIN: Resource \'" .. name .. "\' " .. text .. " by " .. getAdminNameForLog ( source )  )
			for id, player in ipairs(getElementsByType("player")) do
				triggerClientEvent ( player, "aClientLog", _root, text  )
			end
		end
		return true
	end
	outputChatBox ( "Access denied for '"..tostring ( action ).."'", source, 255, 168, 0 )
	return false
end )

try it idk

من أراد الفشل عليه بالنجاح

Posted
1 hour ago, #BrosS said:

addEvent ( "aResource", true )
addEventHandler ( "aResource", _root, function ( name, action )
	if checkClient( "command."..action, source, 'aResource', action ) then return end
	local pname = getPlayerName ( source )
	if ( hasObjectPermissionTo ( source, "command."..action ) ) then
		local text = ""
		if ( action == "start" ) then if ( startResource ( getResourceFromName ( name ), true ) ) then outputChatBox( ""..name.." #DC143CStarted by #7CFC00"..getAdminNameForLog ( source ),255,10,10,true) text = "started" end
		elseif ( action == "restart" ) then if ( restartResource ( getResourceFromName ( name ) ) ) then text = "restarted" end
		elseif ( action == "stop" ) then if ( stopResource ( getResourceFromName ( name ) ) ) then text = "stopped" end
		elseif ( action == "delete" ) then if ( deleteResource ( getResourceFromName ( name ) ) ) then text = "deleted" end
		elseif ( action == "stopall" ) then if ( stopAllResources ( ) ) then text = "All Stopped" end
		else action = nil
		end
		if ( text ~= "" ) then
			outputServerLog ( "ADMIN: Resource \'" .. name .. "\' " .. text .. " by " .. getAdminNameForLog ( source )  )
			for id, player in ipairs(getElementsByType("player")) do
				triggerClientEvent ( player, "aClientLog", _root, text  )
			end
		end
		return true
	end
	outputChatBox ( "Access denied for '"..tostring ( action ).."'", source, 255, 168, 0 )
	return false
end )

try it idk

غيرته مكآن آلمود وشغلت مود للآسف مآ جآ شي 

@#BrosS

330xum0.jpg

p_862d3zvf1.png

* تم آلآفتتآح مرة اخري , حياكم الله *

ip : * mtasa://145.239.212.62:22003 *

330xum0.jpg

Posted
addEvent ( "aResource", true )
addEventHandler ( "aResource", _root, function ( name, action )
	if checkClient( "command."..action, source, 'aResource', action ) then return end
	local pname = getPlayerName ( source )
	if ( hasObjectPermissionTo ( source, "command."..action ) ) then
		local text = ""
		if ( action == "start" ) then if ( startResource ( getResourceFromName ( name ), true ) ) then text = "started" end
		elseif ( action == "restart" ) then if ( restartResource ( getResourceFromName ( name ) ) ) then text = "restarted" end
		elseif ( action == "stop" ) then if ( stopResource ( getResourceFromName ( name ) ) ) then text = "stopped" end
		elseif ( action == "delete" ) then if ( deleteResource ( getResourceFromName ( name ) ) ) then text = "deleted" end
		elseif ( action == "stopall" ) then if ( stopAllResources ( ) ) then text = "All Stopped" end
		else action = nil
		end
		if ( text ~= "" ) then
			outputChatBox ( "ADMIN: Resource \'" .. name .. "\' " .. text .. " by " .. getAdminNameForLog ( source )  )
			for id, player in ipairs(getElementsByType("player")) do
				triggerClientEvent ( player, "aClientLog", _root, text  )
			end
		end
		return true
	end
	outputChatBox ( "Access denied for '"..tostring ( action ).."'", source, 255, 168, 0 )
	return false
end )

 

Dis ; AF.#0941

Posted
44 minutes ago, Default#^ said:

addEvent ( "aResource", true )
addEventHandler ( "aResource", _root, function ( name, action )
	if checkClient( "command."..action, source, 'aResource', action ) then return end
	local pname = getPlayerName ( source )
	if ( hasObjectPermissionTo ( source, "command."..action ) ) then
		local text = ""
		if ( action == "start" ) then if ( startResource ( getResourceFromName ( name ), true ) ) then text = "started" end
		elseif ( action == "restart" ) then if ( restartResource ( getResourceFromName ( name ) ) ) then text = "restarted" end
		elseif ( action == "stop" ) then if ( stopResource ( getResourceFromName ( name ) ) ) then text = "stopped" end
		elseif ( action == "delete" ) then if ( deleteResource ( getResourceFromName ( name ) ) ) then text = "deleted" end
		elseif ( action == "stopall" ) then if ( stopAllResources ( ) ) then text = "All Stopped" end
		else action = nil
		end
		if ( text ~= "" ) then
			outputChatBox ( "ADMIN: Resource \'" .. name .. "\' " .. text .. " by " .. getAdminNameForLog ( source )  )
			for id, player in ipairs(getElementsByType("player")) do
				triggerClientEvent ( player, "aClientLog", _root, text  )
			end
		end
		return true
	end
	outputChatBox ( "Access denied for '"..tostring ( action ).."'", source, 255, 168, 0 )
	return false
end )

 

وآلله آنك شنب تسلم وآلله مآ تقصر دآيمآ <3

+ شوف نظرة بآلخآص

@Default#^

  • Like 1

330xum0.jpg

p_862d3zvf1.png

* تم آلآفتتآح مرة اخري , حياكم الله *

ip : * mtasa://145.239.212.62:22003 *

330xum0.jpg

Posted
45 minutes ago, Default#^ said:

الله يسلمك , حياك الله . 

+_+ ما بيطلع باللوج كذا يا حلو

addEvent ( "aResource", true )
addEventHandler ( "aResource", _root, function ( name, action )
	if checkClient( "command."..action, source, 'aResource', action ) then return end
	local pname = getPlayerName ( source )
	if ( hasObjectPermissionTo ( source, "command."..action ) ) then
		local text = ""
		if ( action == "start" ) then if ( startResource ( getResourceFromName ( name ), true ) ) then text = "started" end
		elseif ( action == "restart" ) then if ( restartResource ( getResourceFromName ( name ) ) ) then text = "restarted" end
		elseif ( action == "stop" ) then if ( stopResource ( getResourceFromName ( name ) ) ) then text = "stopped" end
		elseif ( action == "delete" ) then if ( deleteResource ( getResourceFromName ( name ) ) ) then text = "deleted" end
		elseif ( action == "stopall" ) then if ( stopAllResources ( ) ) then text = "All Stopped" end
		else action = nil
		end
		if ( text ~= "" ) then
			outputServerLog ( "ADMIN: Resource \'" .. name .. "\' " .. text .. " by " .. getAdminNameForLog ( source )  )
			outputChatBox ( "ADMIN: Resource \'" .. name .. "\' " .. text .. " by " .. getAdminNameForLog ( source )  )
			for id, player in ipairs(getElementsByType("player")) do
				triggerClientEvent ( player, "aClientLog", _root, text  )
			end
		end
		return true
	end
	outputChatBox ( "Access denied for '"..tostring ( action ).."'", source, 255, 168, 0 )
	return false
end )

 

  • Like 1

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

Posted
15 minutes ago, Master_MTA said:

+_+ ما بيطلع باللوج كذا يا حلو


addEvent ( "aResource", true )
addEventHandler ( "aResource", _root, function ( name, action )
	if checkClient( "command."..action, source, 'aResource', action ) then return end
	local pname = getPlayerName ( source )
	if ( hasObjectPermissionTo ( source, "command."..action ) ) then
		local text = ""
		if ( action == "start" ) then if ( startResource ( getResourceFromName ( name ), true ) ) then text = "started" end
		elseif ( action == "restart" ) then if ( restartResource ( getResourceFromName ( name ) ) ) then text = "restarted" end
		elseif ( action == "stop" ) then if ( stopResource ( getResourceFromName ( name ) ) ) then text = "stopped" end
		elseif ( action == "delete" ) then if ( deleteResource ( getResourceFromName ( name ) ) ) then text = "deleted" end
		elseif ( action == "stopall" ) then if ( stopAllResources ( ) ) then text = "All Stopped" end
		else action = nil
		end
		if ( text ~= "" ) then
			outputServerLog ( "ADMIN: Resource \'" .. name .. "\' " .. text .. " by " .. getAdminNameForLog ( source )  )
			outputChatBox ( "ADMIN: Resource \'" .. name .. "\' " .. text .. " by " .. getAdminNameForLog ( source )  )
			for id, player in ipairs(getElementsByType("player")) do
				triggerClientEvent ( player, "aClientLog", _root, text  )
			end
		end
		return true
	end
	outputChatBox ( "Access denied for '"..tostring ( action ).."'", source, 255, 168, 0 )
	return false
end )

 

آي لوق ؟

330xum0.jpg

p_862d3zvf1.png

* تم آلآفتتآح مرة اخري , حياكم الله *

ip : * mtasa://145.239.212.62:22003 *

330xum0.jpg

Posted
6 minutes ago, Mr.Mostafa said:

آي لوق ؟

ملفات لوج السيرفر

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

Posted
Just now, Master_MTA said:

ملفات لوج السيرفر

آوك

330xum0.jpg

p_862d3zvf1.png

* تم آلآفتتآح مرة اخري , حياكم الله *

ip : * mtasa://145.239.212.62:22003 *

330xum0.jpg

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