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:
{{Needs_Checking|What Datatype is spawnpoint?|[[User:Vandalite|Vandalite]]}
{{Needs_Checking|What Datatype is vehiclespawnpoint?|[[User:Vandalite|Vandalite]]}
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.


[[onLoad]] ()
[[onLoad]] ()


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


[[onPlayerJoin]] ( [[player]] )
[[onPlayerJoin]] ( [[player]] player )


[[onPlayerPm]] ( [[player]] sourceplayer, [[player]] destplayer, message )
[[onPlayerPm]] ( [[player]] sourceplayer, [[player]] destplayer, string message )


[[onPlayerQuit]] ( [[player]] )
[[onPlayerQuit]] ( [[player]] player)


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


[[onPlayerWasted]] ( [[player]] )
[[onPlayerWasted]] ( [[player]] player)


[[onEnterVehicle]] ( [[player]], [[vehicle]], seat, [[player]] jackedplayer )
[[onEnterVehicle]] ( [[player]] player, [[vehicle]] vehicle, int seat, [[player]] jackedplayer )


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


[[onVehicleSpawn]] ( [[vehicle]], vehiclespawnpoint )
[[onVehicleSpawn]] ( [[vehicle]] vehicle, vehiclespawnpoint )


[[onPickupHit]] ( [[player]], [[pickup]] )
[[onPickupHit]] ( [[player]] player, [[pickup]] pickup )


[[onPickupAdd]] ( [[pickup]] )
[[onPickupAdd]] ( [[pickup]] pickup )


[[onMapLoad]] ( mapname, [[xmlnode]] xmlroot )
[[onMapLoad]] ( string mapname, [[xmlnode]] xmlroot )

Revision as of 00:05, 25 March 2006

{{Needs_Checking|What Datatype is spawnpoint?|Vandalite} {{Needs_Checking|What Datatype is vehiclespawnpoint?|Vandalite}

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

onLoad ()

onPlayerChat ( player player, string message )

onPlayerJoin ( player player )

onPlayerPm ( player sourceplayer, player destplayer, string message )

onPlayerQuit ( player player)

onPlayerSpawn ( player player, spawnpoint )

onPlayerWasted ( player player)

onEnterVehicle ( player player, vehicle vehicle, int seat, player jackedplayer )

onExitVehicle ( player player, vehicle vehicle, int seat, player jackingplayer )

onVehicleSpawn ( vehicle vehicle, vehiclespawnpoint )

onPickupHit ( player player, pickup pickup )

onPickupAdd ( pickup pickup )

onMapLoad ( string mapname, xmlnode xmlroot )