Hello Did You Read The Default Bind Cs File In PlatinumQuest
function input_forceRespawn(%val) {
cancel($respawnSchedule);
if ($Client::GameRunning && %val) {
//Update your respawns prefs
$pref::LevelRespawns[strreplace($Client::MissionFile, "lbmission", "mission")] ++;
$pref::RespawnCount ++;
if ($Server::ServerType $= "SinglePlayer") {
//Close the end game window in case we do this during play
hideControllerUI();
ExitGameDlg.close();
resumeGame();
if (LocalClientConnection.checkpointed) {
LocalClientConnection.respawnOnCheckpoint();
$respawnSchedule = schedule(1000, 0, commandToServer, 'restartLevel');
} else {
//Rate limit
if (getSimTime() - $Game::LastRespawn < 500)
return;
$Game::LastRespawn = getSimTime();
restartLevel();
}
} else if ($MP::AllowQuickRespawn) {
commandToServer('QuickRespawn');
if ($Server::Hosting) {
$respawnSchedule = schedule(3000, 0, commandToServer, 'restartLevel');
}
}
}
}
This Code Is
Used.
But Maytbe It Too Complicated For Using and Copying in Marble Blasst Theforeore Mod.> Instead thhhe Important Part is use command restartLevel(); and Tirgger it By Key Press