Server Scripting Events: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
void [[onMapUnload]] ()
void [[onMapUnload]] ()


void [[onMarkerHit]] ( [[player]] hitplayer )
void [[onMarkerHit]] ( [[player]] hitplayer, bool matchingDimension )


void [[onConsole]] ( string message )
void [[onConsole]] ( string message )
Line 35: Line 35:
void [[onPickupSpawn]] ()
void [[onPickupSpawn]] ()


void [[onPickupHit]] ( [[player]] player )
void [[onPickupHit]] ( [[player]] player, bool matchingDimension )


void [[onPickupUse]] ( [[player]] player )
void [[onPickupUse]] ( [[player]] player )


void [[onColShapeHit]] ( [[player]] player )
void [[onColShapeHit]] ( [[player]] player, bool matchingDimension )


void [[onColShapeLeave]] ( [[player]] player )
void [[onColShapeLeave]] ( [[player]] player, bool matchingDimension )


void [[onSpawnpointUse]] ( [[player]] player )
void [[onSpawnpointUse]] ( [[player]] player )

Revision as of 21:20, 16 October 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, bool matchingDimension )

void onConsole ( string message )

void onPlayerChat ( string message, bool teamchat )

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

void onPlayerJoin ()

void onPlayerQuit ()

void onPlayerSpawn ( spawnpoint spawnpoint, team )

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

void onPlayerTarget ( element targetedElement )

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

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

void onPlayerWeaponSwitch ( int previousWeaponID, int currentWeaponID )

void onPickupSpawn ()

void onPickupHit ( player player, bool matchingDimension )

void onPickupUse ( player player )

void onColShapeHit ( player player, bool matchingDimension )

void onColShapeLeave ( player player, bool matchingDimension )

void onSpawnpointUse ( player player )

void onVehicleDamage ( float loss )

void onVehicleRespawn ( bool explosion )

void onVehicleStartEnter ( player player, int seat, player jacked )

void onVehicleStartExit ( player player, int seat, player jacker )

void onVehicleEnter ( player player, int seat, player jacked )

void onVehicleExit ( player player, int seat, player jacker )

void onVehicleExplode ()

void onTrailerAttach ( vehicle trailer )

void onTrailerDetach ( vehicle trailer )

void onClientLogin ( account previous_account, account current_account, bool auto-login )

void onClientLogout ( account previous_account, account current_account )