Server Scripting Events: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 14: Line 14:


void [[onPlayerChat]] ( string message )
void [[onPlayerChat]] ( string message )
void [[onPlayerDamage]] ( float loss )


void [[onPlayerJoin]] ()
void [[onPlayerJoin]] ()
Line 34: Line 36:


void [[onSpawnpointUse]] ( [[player]] player )
void [[onSpawnpointUse]] ( [[player]] player )
void [[onVehicleDamage]] ( float loss )

Revision as of 14:59, 20 May 2006

Template:Critical Update

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

void onElementDataChange ( string name )

void onMapLoad ( string name )

void onMapUnload ()

void onMarkerHit ( player hitplayer )

void onPlayerConsole ( string message )

void onPlayerChat ( string message )

void onPlayerDamage ( float loss )

void onPlayerJoin ()

void onPlayerQuit ()

void onPlayerSpawn ( spawnpoint spawnpoint )

void onPlayerWasted ( int totalammo, player killer, int killerweapon )

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

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

void onPickupSpawn ()

void onPickupHit ( player player )

void onPickupUse ( player player )

void onSpawnpointUse ( player player )

void onVehicleDamage ( float loss )