Jump to content

تصحيح كود بسيط


MA[S]RIY

Recommended Posts

السلام عليكم

addEventHandler("onPlayerChat", root,
function (text, msgtype)
		if ( string.find(text,"!") ) then
        local player = getPlayerFromName ( text )
      setElementPosition ( player, posX, posY, posZ )
end
end
)

في هذا الكود ابي لو شخص كتب 

! اسم لاعب وبعدان 

يجيب اسم الاعب 

ويحط الاعب ذا في مكان

ارجو تصحيح الخطا

Edited by MA[S]RIY
Link to comment
5 minutes ago, MR.StoRm said:

addEventHandler("onPlayerChat", root,
function (text, msgtype , aPlr)
		if ( string.find(text,"!") ) then
        local player = getPlayerFromName ( aPlr )
      setElementPosition ( player, posX, posY, posZ )
end
end
)

غير مجرب . .

فيه مشكله

الدي بق :

p_6127jd201.png

Link to comment
1 minute ago, MR.StoRm said:

addEventHandler("onPlayerChat", root,
function (text, msgtype , aPlr)
		if ( string.find(text,"!") ) then
        local player = getPlayerFromName ( aPlr )
      setElementPosition ( aPlr, 2021.23462, 1547.43872, 10.82884 )
end
end
)

 

مشكله 

الدي بق:

p_612yqgwn1.png

Link to comment
Just now, MR.StoRm said:

addEventHandler("onPlayerChat", root,
function (text, msgtype , aPlr)
		if ( string.find(text,"!") ) then
        local aPlayer = getPlayerFromName ( aPlr ) and getElementPosition ( aPlayer )
      spawnPlayer ( aPlayer , 2021.23462, 1547.43872, 10.82884 )
end
end
)

 

مهما حاولت

aPlr مارح يظبط بسبب

Link to comment
addEventHandler("onPlayerChat", root,
function (msg,weebPlayer)
   if string.find(msg,"!") and weebPlayer then
       local Weeaboo = getPlayerFromName(weebPlayer)
      if not Weeaboo then outputChatBox("the weeb was not found") return end
        setElementPosition ( Weeaboo , 2021.23462, 1547.43872, 10.82884 )
   end
end
);

 

Link to comment
3 minutes ago, #BrosS said:

addEventHandler("onPlayerChat", root,
function (msg,weebPlayer)
   if string.find(msg,"!") and weebPlayer then
       local Weeaboo = getPlayerFromName(weebPlayer)
      if not Weeaboo then outputChatBox("the weeb was not found") return end
        setElementPosition ( Weeaboo , 2021.23462, 1547.43872, 10.82884 )
   end
end
);

 

اكتب اسمي 

يطلع لي

the weeb was not found

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