Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: każdemu!
1. Wiadomość wyświetla się każdemu!
Witam, posiadam skrypt na teleportowanie si? na spawn za pomoc? komendy. Tylko w tym skrypcie jest jeden bug ?e gdy kto kolwiek wpisze komende /spawn komunikat wy?wiela sie ka?demu "Witaj na spawnie :D " prosze o pomoc.

spawn.lua
function joinHandler()
    
local x = -1916.6762695313
    local y 
= 883.24578857422
    local z 
= 35.4140625
    spawnPlayer
(source, x, y, z)
    
fadeCamera(source, true)
    
setCameraTarget(source, source)
    
outputChatBox("Witaj na serwerze. Zyczymy milej gry!", source)
end
addEventHandler
("onPlayerJoin", getRootElement(), joinHandler)

function 
CommandHandler( thePlayer )
      
setElementPosition (thePlayer, -1916.6762695313 ,883.24578857422 ,35.4140625 )
    
outputChatBox("Witaj na spawnie :D", source)
end
addCommandHandler
("spawn", CommandHandler)