How i can make a respawn message?


#1

How i can make a respawn message outside the join event?

My example Code: (it will not do so)

function showNotification(text)
SetNotificationTextEntry(“STRING”)
AddTextComponentString(text)
DrawNotification(false, false)
end

AddEventHandler(‘playerSpawned’, function(spawn)

if (firstjoin)
showNotification(‘Willkommen auf Rioxz Play!’)
showNotification(‘Webseite -> www.rioxz.de’)

else respawn

    showNotification('You are respawned now!!')

end)


#2

My example Code: (it will not do so)

function showNotification(text)
SetNotificationTextEntry(“STRING”)
AddTextComponentString(text)
DrawNotification(false, false)
end

AddEventHandler(‘playerSpawned’, function(spawn)
if (firstjoin)
showNotification(‘Willkommen auf Rioxz Play!’)
showNotification(‘Webseite -> www.rioxz.de’)
else respawn
showNotification(‘Du wurdest wiederbelebt!’)
end)