Server Scripting Events: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
This is a list of scripting events that currently exist. More will come soon.
This is a list of scripting events that currently exist. More will come soon.


void [[onLoad]] ()
void [[onPlayerConsole]] ( string message )


void [[onUnload]] ()
void [[onPlayerChat]] ( string message )


void [[onPlayerChat]] ( [[player]] player, string message )
void [[onPlayerJoin]] ()


void [[onPlayerConsole]] ( [[player]] player, string message )
void [[onPlayerQuit]] ()


void [[onPlayerJoin]] ( [[player]] player )
void [[onPlayerWasted]] ( [[player]] killer, int weapon )


void [[onPlayerPm]] ( [[player]] sourceplayer, [[player]] destplayer, string message )
void [[onPlayerEnterVehicle]] ( [[vehicle]] vehicle, int seat, [[player]] jacked )


void [[onPlayerQuit]] ( [[player]] player)
void [[onPlayerExitVehicle]] ( [[vehicle]] vehicle, int reason, [[player]] jacker )


void [[onPlayerSpawn]] ( [[player]] player, [[spawnpoint]] spawnpoint )
void [[onPickupSpawn]] ()


void [[onPlayerWasted]] ( [[player]] player)
void [[onPickupHit]] ( [[player]] player )


void [[onEnterVehicle]] ( [[player]] player, [[vehicle]] vehicle, int seat, [[player]] jackedplayer )
void [[onMapLoad]] ( string name, [[element]] root )


void [[onExitVehicle]] ( [[player]] player, [[vehicle]] vehicle, int seat, [[player]] jackingplayer )
void [[onMapUnload]] ()


void [[onVehicleSpawn]] ( [[vehicle]] vehicle, vehiclespawnpoint )
void [[onSpawnpointUse]] ( [[player]] player )
 
void [[onPickupHit]] ( [[player]] player, [[pickup]] pickup )
 
void [[onPickupAdd]] ( [[pickup]] pickup )
 
void [[onMapLoad]] ( string mapname, [[xmlnode]] xmlroot )
 
void [[onMarkerHit]] ( [[marker]] marker, [[player]] hitplayer )

Revision as of 23:53, 24 April 2006

Dialog-information.png This article needs checking.

Reason(s): What Datatype is vehiclespawnpoint?

This is a list of scripting events that currently exist. More will come soon.

void onPlayerConsole ( string message )

void onPlayerChat ( string message )

void onPlayerJoin ()

void onPlayerQuit ()

void onPlayerWasted ( player killer, int weapon )

void onPlayerEnterVehicle ( vehicle vehicle, int seat, player jacked )

void onPlayerExitVehicle ( vehicle vehicle, int reason, player jacker )

void onPickupSpawn ()

void onPickupHit ( player player )

void onMapLoad ( string name, element root )

void onMapUnload ()

void onSpawnpointUse ( player player )