Server Scripting Events: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 25: Line 25:
void [[onPlayerWasted]] ( int totalammo, [[player]] killer, int killerweapon, int bodypart )
void [[onPlayerWasted]] ( int totalammo, [[player]] killer, int killerweapon, int bodypart )


void [[onTargeted]] ()
void [[onPlayerTargeted]] ( [[element]] targetedElement )


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

Revision as of 15:47, 23 July 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 onConsole ( string message )

void onPlayerChat ( string message )

void onPlayerDamage ( float loss, player attacker, int attackerweapon, int bodypart )

void onPlayerJoin ()

void onPlayerQuit ()

void onPlayerSpawn ( spawnpoint spawnpoint )

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

void onPlayerTargeted ( element targetedElement )

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 onColShapeHit ( player player )

void onSpawnpointUse ( player player )

void onVehicleDamage ( float loss )

void onVehicleRespawn ( bool explosion )

void onTrailerAttach ( vehicle trailer )

void onTrailerDetach ( vehicle trailer )