Üzenetek megjelenítése

Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.


Témák - Davi

Oldalak: [1]
1
Segítségkérés / Segítségkérés parancs működéséhez.
« Dátum: 2020. Július 19. - 20:15:21 »
Sziasztok nem régen kezdtem el tanulgatni a lua nyelvet de most el akadtam és nem tudom hogyan fixáljam meg a hibát esetleg valaki tudna segiteni nekem?

function gotoPlayer (thePlayer,targetPlayer)
local accName = getAccountName(getPlayerAccount(thePlayer))
if isObjectInACLGroup("user."..accName,aclGetGroup("Console")) then
if not (targetPlayer) then
outputChatBox("[wisdomGaming]: /goto [név]",thePlayer,0,0,0,true)
else
local x,y,z = getElementPosition(targetPlayer)
local veh = getPedOccupiedVehicle(thePlayer)
if isPedInVehicle(thePlayer) then
teleport = setElementPoition(veh,x,y+1,z)
else
teleport = setElementPosition(thePlayer,x,y+1,z)
end
if (teleport) then
setElementInterior(thePlayer,getElementInterior(targetPlayer))
setElementDimension(thePlayer,getElementDimension(targetPlayer))
outputChatBox("Sikeresen elteleportáltál a játékoshoz.",thePlayer,0,0,0,true)
outputChatBox("Egyik admin hozzád teleportált.",targetPlayer,0,0,0,true)
else
outputChatBox("Nem sikerült teleportálni.",thePlayer,0,0,0,true)
end
end
end
end
end
addCommandHandler("goto", gotoPlayer, false, false)

Oldalak: [1]
SimplePortal 2.3.7 © 2008-2024, SimplePortal