Jump to content

تعديل


Adham

Recommended Posts

سلام عليكم مسوي

لما يخش علي مركر يوديه لمكان

انا مسوي اليدخل المركر ويروح لمكان

قروب البوليس فقط ..

لاكن م ظبت

كلنت
 

addEventHandler ( "onClientMarkerHit", PoliceCenter,
function (  )
               triggerServerEvent ( "Marker", localPlayer ) 
   end
)

سرفر

addEvent ( "Marker", true )
addEventHandler ( "Marker", root,
function ( p )
local acc = getPlayerAccount(p)
if not isGuestAccount ( acc ) then
if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Police")) then
setElementInterior ( source, 3, 238.62845, 141.09608, 1003.02344 )
end
end
end)

 

Link to comment
1 minute ago, Deativated said:

سلام عليكم مسوي

لما يخش علي مركر يوديه لمكان

انا مسوي اليدخل المركر ويروح لمكان

قروب البوليس فقط ..

لاكن م ظبت

كلنت
 


addEventHandler ( "onClientMarkerHit", PoliceCenter,
function (  )
               triggerServerEvent ( "Marker", localPlayer ) 
   end
)

سرفر


addEvent ( "Marker", true )
addEventHandler ( "Marker", root,
function ( p )
local acc = getPlayerAccount(p)
if not isGuestAccount ( acc ) then
if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Police")) then
setElementInterior ( source, 3, 238.62845, 141.09608, 1003.02344 )
end
end
end)

 

وش يقول الدي بق

جرب تسوي لوب يجيب اللاعبين

Edited by Abu-Solo
Link to comment
5 minutes ago, Deativated said:

WARNING: vRestrunt/Server.lua:7: Bad argument @ 'getPlayerAccountName' [Expected account at argument 1, got, boolean]

ERROR: vRestrunt/Server.lua:7: attempt to councatenate a bollean value

 

triggerServerEvent ( "Marker", localPlayer,localPlayer ) 

 

Link to comment
18 hours ago, Deativated said:

سلام عليكم مسوي

لما يخش علي مركر يوديه لمكان

انا مسوي اليدخل المركر ويروح لمكان

قروب البوليس فقط ..

لاكن م ظبت

كلنت
 


addEventHandler ( "onClientMarkerHit", PoliceCenter,
function (  )
               triggerServerEvent ( "Marker", localPlayer ) 
   end
)

سرفر


addEvent ( "Marker", true )
addEventHandler ( "Marker", root,
function ( p )
local acc = getPlayerAccount(p)
if not isGuestAccount ( acc ) then
if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Police")) then
setElementInterior ( source, 3, 238.62845, 141.09608, 1003.02344 )
end
end
end)

 

سويه ب سيرفر 

onMarkerHit !

O.o

Link to comment
addEventHandler ( "onClientMarkerHit", PoliceCenter,
	function ( p )
		if ( p == localPlayer ) then
			triggerServerEvent ( "Marker", localPlayer, localPlayer ) 
		end
	end
)

 

addEvent ( "Marker", true )
addEventHandler ( "Marker", root,
	function ( p )
		local acc = getPlayerAccount ( p )
		if not isGuestAccount ( acc ) then
			if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Police")) then
				setElementInterior ( p, 3, 238.62845, 141.09608, 1003.02344 )
			end
		end
	end
)

 

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