Server Scripting Events: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
This is a list of server-side scripting events that currently exist. More will come soon.
{{Needs Checking|This page duplicates event pages' syntaxes. Events may need grouping in categories too. --[[User:Jbeta|jbeta]] 20:06, 14 September 2007 (CDT)}}


===Server Events===
This is a list of all server-side scripting [[event]]s.
void [[onClientLogin]] ( [[account]] previous_account, [[account]] current_account, bool auto-login )


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


void [[onColShapeHit]] ( [[player]] player, bool matchingDimension )
[[onClientLogout]] ( [[account]] previous_account, [[account]] current_account )


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


void [[onConsole]] ( string message )
[[onColShapeLeave]] ( [[player]] player, bool matchingDimension )


void [[onElementDataChange]] ( string name )
[[onConsole]] ( string message )


void [[onElementColShapeHit]] ( [[colshape]] hitcolshape, bool matchingDimension )
[[onElementDataChange]] ( string name )


void [[onElementColShapeLeave]] ( [[colshape]] leftcolshape, bool matchingDimension )
[[onElementColShapeHit]] ( [[colshape]] hitcolshape, bool matchingDimension )


void [[onElementClicked]] ( string button, string state, [[player]] clicker, float posX, float posY, float posZ )
[[onElementColShapeLeave]] ( [[colshape]] leftcolshape, bool matchingDimension )


void [[onMarkerHit]] ( [[player]] hitplayer, bool matchingDimension )
[[onElementClicked]] ( string button, string state, [[player]] clicker, float posX, float posY, float posZ )


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


void [[onPickupSpawn]] ()
[[onMarkerLeave]] ( [[player]] leftplayer, bool matchingDimension )


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


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


void [[onPickupUse]] ( [[player]] player )
[[onPickupLeave]] ( [[player]] player, bool matchingDimension )


void [[onPlayerChat]] ( string message, int type )
[[onPickupUse]] ( [[player]] player )


void [[onPlayerDamage]] ( [[element]] attacker, int attackerweapon, int bodypart, float loss )
[[onPlayerChat]] ( string message, int type )


void [[onPlayerJoin]] ()
[[onPlayerDamage]] ( [[element]] attacker, int attackerweapon, int bodypart, float loss )


void [[onPlayerQuit]] ( string reason )
[[onPlayerJoin]] ()


void [[onPlayerSpawn]] ( [[spawnpoint]] spawnpoint, team )
[[onPlayerQuit]] ( string reason )


void [[onPlayerWasted]] ( int ammo, [[element]] killer, int killerweapon, int bodypart )
[[onPlayerSpawn]] ( [[spawnpoint]] spawnpoint, team )


void [[onPlayerTarget]] ( [[element]] targetedElement )
[[onPlayerWasted]] ( int ammo, [[element]] killer, int killerweapon, int bodypart )


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


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


void [[onPlayerWeaponSwitch]] ( int previousWeaponID, int currentWeaponID )
[[onPlayerExitVehicle]] ( [[vehicle]] vehicle, int seat, [[player]] jacker )


void [[onPlayerTask]] ( string priority, int type, string name )
[[onPlayerWeaponSwitch]] ( int previousWeaponID, int currentWeaponID )


void [[onPlayerMarkerHit]] ( [[marker]] hitmarker, bool matchingDimension )
[[onPlayerTask]] ( string priority, int type, string name )


void [[onPlayerMarkerLeave]] ( [[marker]] leftmarker, bool matchingDimension )
[[onPlayerMarkerHit]] ( [[marker]] hitmarker, bool matchingDimension )


void [[onPlayerPickupHit]] ( [[pickup]] hitpickup, bool matchingDimension )
[[onPlayerMarkerLeave]] ( [[marker]] leftmarker, bool matchingDimension )


void [[onPlayerPickupLeave]] ( [[pickup]] leftpickup, bool matchingDimension )
[[onPlayerPickupHit]] ( [[pickup]] hitpickup, bool matchingDimension )


void [[onPlayerPickupUse]] ( [[pickup]] usedpickup )
[[onPlayerPickupLeave]] ( [[pickup]] leftpickup, bool matchingDimension )


void [[onPlayerClick]] ( string button, string state, [[element]] clickedElement, float posX, float posY, float posZ )
[[onPlayerPickupUse]] ( [[pickup]] usedpickup )


void [[onResourceStart]] ( [[resource]] resource )
[[onPlayerClick]] ( string button, string state, [[element]] clickedElement, float posX, float posY, float posZ )


void [[onResourceStop]] ( [[resource]] resource )
[[onResourceStart]] ( [[resource]] resource )


void [[onSpawnpointUse]] ( [[player]] player )
[[onResourceStop]] ( [[resource]] resource )


void [[onTrailerAttach]] ( [[vehicle]] towedBy )
[[onSpawnpointUse]] ( [[player]] player )


void [[onTrailerDetach]] ( [[vehicle]] towedBy )
[[onTrailerAttach]] ( [[vehicle]] towedBy )


void [[onVehicleDamage]] ( float loss )
[[onTrailerDetach]] ( [[vehicle]] towedBy )


void [[onVehicleRespawn]] ( bool explosion )
[[onVehicleDamage]] ( float loss )


void [[onVehicleStartEnter]] ( [[player]] player, int seat, [[player]] jacked )
[[onVehicleRespawn]] ( bool explosion )


void [[onVehicleStartExit]] ( [[player]] player, int seat, [[player]] jacker )
[[onVehicleStartEnter]] ( [[player]] player, int seat, [[player]] jacked )


void [[onVehicleEnter]] ( [[player]] player, int seat, [[player]] jacked )
[[onVehicleStartExit]] ( [[player]] player, int seat, [[player]] jacker )


void [[onVehicleExit]] ( [[player]] player, int seat, [[player]] jacker )
[[onVehicleEnter]] ( [[player]] player, int seat, [[player]] jacked )


void [[onVehicleExplode]] ()
[[onVehicleExit]] ( [[player]] player, int seat, [[player]] jacker )
 
[[onVehicleExplode]] ()

Revision as of 01:06, 15 September 2007

Dialog-information.png This article needs checking.

Reason(s): This page duplicates event pages' syntaxes. Events may need grouping in categories too. --jbeta 20:06, 14 September 2007 (CDT)

This is a list of all server-side scripting events.

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

onClientLogout ( account previous_account, account current_account )

onColShapeHit ( player player, bool matchingDimension )

onColShapeLeave ( player player, bool matchingDimension )

onConsole ( string message )

onElementDataChange ( string name )

onElementColShapeHit ( colshape hitcolshape, bool matchingDimension )

onElementColShapeLeave ( colshape leftcolshape, bool matchingDimension )

onElementClicked ( string button, string state, player clicker, float posX, float posY, float posZ )

onMarkerHit ( player hitplayer, bool matchingDimension )

onMarkerLeave ( player leftplayer, bool matchingDimension )

onPickupSpawn ()

onPickupHit ( player player, bool matchingDimension )

onPickupLeave ( player player, bool matchingDimension )

onPickupUse ( player player )

onPlayerChat ( string message, int type )

onPlayerDamage ( element attacker, int attackerweapon, int bodypart, float loss )

onPlayerJoin ()

onPlayerQuit ( string reason )

onPlayerSpawn ( spawnpoint spawnpoint, team )

onPlayerWasted ( int ammo, element killer, int killerweapon, int bodypart )

onPlayerTarget ( element targetedElement )

onPlayerEnterVehicle ( vehicle vehicle, int seat, player jacked )

onPlayerExitVehicle ( vehicle vehicle, int seat, player jacker )

onPlayerWeaponSwitch ( int previousWeaponID, int currentWeaponID )

onPlayerTask ( string priority, int type, string name )

onPlayerMarkerHit ( marker hitmarker, bool matchingDimension )

onPlayerMarkerLeave ( marker leftmarker, bool matchingDimension )

onPlayerPickupHit ( pickup hitpickup, bool matchingDimension )

onPlayerPickupLeave ( pickup leftpickup, bool matchingDimension )

onPlayerPickupUse ( pickup usedpickup )

onPlayerClick ( string button, string state, element clickedElement, float posX, float posY, float posZ )

onResourceStart ( resource resource )

onResourceStop ( resource resource )

onSpawnpointUse ( player player )

onTrailerAttach ( vehicle towedBy )

onTrailerDetach ( vehicle towedBy )

onVehicleDamage ( float loss )

onVehicleRespawn ( bool explosion )

onVehicleStartEnter ( player player, int seat, player jacked )

onVehicleStartExit ( player player, int seat, player jacker )

onVehicleEnter ( player player, int seat, player jacked )

onVehicleExit ( player player, int seat, player jacker )

onVehicleExplode ()