Hello I am having problems with my custom game mode I built.
When I die I don't respawn, But the other day I respawned just fine.
My lua code.
function joinHandler()
local x = 2026.935668953
local y = 1008.9664306641
local z = 14.663164138794
spawnPlayer(source, x, y, z)
fadeCamera(source, true)
setCameraTarget(source, source)
outputChatBox("Welcome to My Server", source)
end
addEventHandler("onPlayerJoin", getRootElement(), joinHandler)
function playerDied(totalAmmo, killer, killerWeapon, bodypart)
outputChatBox(getPlayerName(source).." died!")
end
addEventHandler("onPlayerWasted",getRootElement(),playerDied)
My meta.xml
<meta>
<info author="Neko^-^" type="gamemode" name="DragonDM" description="DagonDM Mode" />
<include resource="helpmanager" />
<script src="script.lua" Type="Client" />
<map src="Dragon.map" />
<config src="help.xml" type="client"/>
</meta>
My help.xml
<help>
Welcome to the DragonDM
Type /createvehicle car name/id to spawn vehicles.
Made by Neko^-^
</help>
I hope that's enough info I havn't made any changes at all since yesterday.