Jump to content

x[مساعده في اكواد]x


Recommended Posts

هلا شباب
ممكن كود السرعه
مو يلي بالسيارة
السرعه بزر من لوحة تضغط على الزر تصير سريع يوم تركض
بس مو سرعة عالية
لو موجود عطوني اياه

يعني انا عم اصمم في سكربت الجنية الصغيرة

هذي لوحة تفتح من اف8

فيها 4 ازرار

يوم تضغط على زر اعطاء شخصية

تيجيك شخصية الجنية

يوم تدوس على اخفاء الاسم

يختفي الاسم من عن الجسم

يوم تدوس على سرعه ابي يصير سريع

+ بدي كود انها الشخصية ما حد يقدر ياخذها غير عن طريق هذي الزر

او قروب كونسل

Link to comment

أظن

setElementVelocity -- صعبة شوي ماقد أشتغلت فيها
-- or اليوزفل فنكشن ذا
function setElementSpeed(element, unit, speed)
	if (unit == nil) then unit = 0 end
	if (speed == nil) then speed = 0 end
	speed = tonumber(speed)
	local acSpeed = getElementSpeed(element, unit)
	if (acSpeed~=false) then -- if true - element is valid, no need to check again
		local diff = speed/acSpeed
		if diff ~= diff then return end -- if the number is a 'NaN' return end.
		local x,y,z = getElementVelocity(element)
		setElementVelocity(element,x*diff,y*diff,z*diff)
		return true
	end

	return false
end

ذا كان الطلب الأول

addEventHandler("onClientGUIClick", root, ...)
   local accName = getAccountName ( getPlayerAccount ( السورس حقك ) ) -- get his account name
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
  		...
  	end

 

Link to comment

يعني كذا ؟؟

-- كلينت 
addEventHandler("onClientGUIClick",root, 
function ()  
if source == sraa then 
triggerServerEvent("speed",localPlayer)
end
end
)

-- سيرفر
addEvent("speed",true)
addEventHandler("speed",root,
	function ()

	setGameSpeed(source, false)

outputChatBox("#FFE933[Gne System]: لقد تم اعطائك سرعة", source, 0, 0, 0, true)

end
)

لو في اغلاط صلحوها

10 hours ago, Ahmed Ly said:

setPlayerNametagShowing

 

الاكواد مسوية جاهزة المود كل شي به شغال بس السرعه

+ ابي كود اني يوم اضغط على زر ايقاف يرجع كل شي للأصل

Link to comment
--- # Client Side 

addEventHandler ( "onClientGUIClick" , resourceRoot , function ( )
if ( source == sraa ) then 
triggerServerEvent ( "setSpeed" , localPlayer ) 
end
end ) ; 


addEvent ( "acceptSpeed" , true	)
addEventHandler ( "acceptSpeed" , root , function	( )
setGameSpeed ( 0.3 );
outputChatBox("#FFE933[Gne]: لقد تم اعطائك سرعة", 0, 0, 0, true)
end ) ;


--- # Server Side 

addEvent ( "setSpeed" , true )
addEventHandler ( "setSpeed" , root , function (	)
triggerClientEvent ( source , "acceptSpeed" , source );
end ) ;

 

Link to comment
On ٥‏/١١‏/١٤٣٨ هـ at 10:05, Default said:

--- # Client Side 

addEventHandler ( "onClientGUIClick" , resourceRoot , function ( )
if ( source == sraa ) then 
triggerServerEvent ( "setSpeed" , localPlayer ) 
end
end ) ; 


addEvent ( "acceptSpeed" , true	)
addEventHandler ( "acceptSpeed" , root , function	( )
setGameSpeed ( 0.3 );
outputChatBox("#FFE933[Gne]: لقد تم اعطائك سرعة", 0, 0, 0, true)
end ) ;


--- # Server Side 

addEvent ( "setSpeed" , true )
addEventHandler ( "setSpeed" , root , function (	)
triggerClientEvent ( source , "acceptSpeed" , source );
end ) ;

 

شكرا

Link to comment
9 hours ago, Default said:

تبي ماحد يقدر يحط شخصية محدةة الا اذا كان كونسل ؟

اي فقط الكونسل

لو يجي يحطها من الفري روم يقوله ملكية خاصة

او يجي يحطها من لوحة الادمنية يقوله ملكية خاصة

Link to comment
8 hours ago, Default said:

حآول ونساعدك بالنسبة لي ماراح اعطيك جاهز .

محاولتي

function informPlayerOnModelChange( )
    if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("gold")) then
    if ( getElementType(source) == "player" ) or getElementModel(source,91) then
end
addEventHandler("onElementModelChange", root, informPlayerOnModelChange)

 

Link to comment
function informPlayerOnModelChange(oldSkin)
  if ( getElementType(source) == "player" ) and getElementModel(source) == 91 and isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("gold")) ~= true then
    setElementModel(source, oldSkin)
    outputChatBox("You can't get skin number 91", source)
  end
end
addEventHandler("onElementModelChange", root, informPlayerOnModelChange)

 

Link to comment
4 hours ago, Mhmd.z said:

function informPlayerOnModelChange(oldSkin)
  if ( getElementType(source) == "player" ) and getElementModel(source) == 91 and isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("gold")) ~= true then
    setElementModel(source, oldSkin)
    outputChatBox("You can't get skin number 91", source)
  end
end
addEventHandler("onElementModelChange", root, informPlayerOnModelChange)

 

شكرا رح بجربه

Link to comment
40 minutes ago, |M.r|LooFe| said:

شكرا رح بجربه

سطر 2 بفنكشن جلب حساب الاعب استبدل ذا بلاير بسويرس يعني يصير كذه

function informPlayerOnModelChange(oldSkin)
  if ( getElementType(source) == "player" ) and getElementModel(source) == 91 and isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("gold")) ~= true then
    setElementModel(source, oldSkin)
    outputChatBox("You can't get skin number 91", source)
  end
end
addEventHandler("onElementModelChange", root, informPlayerOnModelChange)

 

Edited by Mhmd.z
Link to comment
6 hours ago, Mhmd.z said:

سطر 2 بفنكشن جلب حساب الاعب استبدل ذا بلاير بسويرس يعني يصير كذه


function informPlayerOnModelChange(oldSkin)
  if ( getElementType(source) == "player" ) and getElementModel(source) == 91 and isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("gold")) ~= true then
    setElementModel(source, oldSkin)
    outputChatBox("You can't get skin number 91", source)
  end
end
addEventHandler("onElementModelChange", root, informPlayerOnModelChange)

 

يخوي علفاضي الكود مو شغال

جربت ما اشتغللللللللللللللللل

 

Link to comment

عدل أسلوبك بالكلام . 

aGroup = "Console" ;  -- هنأ القروب الي تبيه يقدر يحط الشخصية
aIDSkin = 91 ; -- رقم الشخصية 
addEventHandler ( "onElementModelChange" , root , function ( aOldModel ) 
if ( getElementModel ( source ) == aIDSkin ) then
if not ( isGuestAccount ( getPlayerAccount ( source ) ) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup(aGroup)) ) then 
setTimer(setElementModel,50,1,source,aOldModel)
outputChatBox("* You Can't use this skin !",source,255,0,0,true)
end
end
end ) ; 

 

  • Haha 1
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...