When the api is set to "2012-06-19" (or later), by calling SetApiVersion("2012-06-19").
-
ManiaPlanet.PlayerConnect(string Login, bool IsSpectator);
-
ManiaPlanet.PlayerDisconnect(string Login);
-
ManiaPlanet.PlayerChat(int PlayerUid, string Login, string Text, bool IsRegistredCmd);
-
ManiaPlanet.PlayerManialinkPageAnswer(int PlayerUid, string Login, string Answer, SEntryVal Entries[]);
struct SEntryVal
{
string Name;
string Value;
}
-
ManiaPlanet.Echo(string Internal, string Public);
-
ManiaPlanet.ServerStart();
-
ManiaPlanet.ServerStop();
-
ManiaPlanet.BeginMatch();
-
ManiaPlanet.EndMatch(SPlayerRanking Rankings[], int WinnerTeam);
struct SPlayerRanking
{
string Login;
string NickName;
int PlayerId;
int Rank;
[for legacy TrackMania modes also:
int BestTime;
int[] BestCheckpoints;
int Score;
int NbrLapsFinished;
double LadderScore;
]
}
-
ManiaPlanet.BeginMap(SMapInfo Map);
struct SMapInfo
{
string Uid;
string Name;
string FileName;
string Author;
string Environnement;
string Mood;
int BronzeTime;
int SilverTime;
int GoldTime;
int AuthorTime;
int CopperPrice;
bool LapRace;
int NbLaps;
int NbCheckpoints;
string MapType;
string MapStyle;
}
-
ManiaPlanet.EndMap(SMapInfo Map);
-
ManiaPlanet.StatusChanged(int StatusCode, string StatusName);
-
TrackMania.PlayerCheckpoint(int PlayerUid, string Login, int TimeOrScore, int CurLap, int CheckpointIndex);
-
TrackMania.PlayerFinish(int PlayerUid, string Login, int TimeOrScore);
-
TrackMania.PlayerIncoherence(int PlayerUid, string Login);
-
ManiaPlanet.BillUpdated(int BillId, int State, string StateName, int TransactionId);
-
ManiaPlanet.TunnelDataReceived(int PlayerUid, string Login, base64 Data);
-
ManiaPlanet.MapListModified(int CurMapIndex, int NextMapIndex, bool IsListModified);
-
ManiaPlanet.PlayerInfoChanged(SPlayerInfo PlayerInfo);
struct SPlayerInfo
{
string Login;
string NickName;
int PlayerId;
int TeamId;
int SpectatorStatus;
int LadderRanking;
int Flags;
}
-
ManiaPlanet.VoteUpdated(string StateName, string Login, string CmdName, string CmdParam);
StateName values: NewVote, VoteCancelled, VotePassed or VoteFailed
-
ManiaPlanet.ModeScriptCallback(string Param1, string Param2);
-
ManiaPlanet.ModeScriptCallbackArray(string Param1, string Params[]);
-
ManiaPlanet.PlayerAlliesChanged(string Login);
-
ScriptCloud.LoadData(string Type, string Id);
You must answer this callback by calling SetScriptCloudVariables for given object.
-
ScriptCloud.SaveData(string Type, string Id);
You must answer this callback by calling GetScriptCloudVariables for given object.