Server Scripting Events: Difference between revisions

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


[[onLoad]] ()
[[onLoad]] ()
[[onPlayerChat]] ( player, message )
 
[[onPlayerJoin]] ( player )
[[onPlayerChat]] ( [[player]], message )
[[onPlayerPm]] ( sourceplayer, destplayer, message )
 
[[onPlayerQuit]] ( player )
[[onPlayerJoin]] ( [[player]] )
[[onPlayerSpawn]] ( player, spawnpoint )
 
[[onPlayerWasted]] ( player )
[[onPlayerPm]] ( [[player]] sourceplayer, [[player]] destplayer, message )
[[onEnterVehicle]] ( player, vehicle, seat, jackedplayer )
 
[[onExitVehicle]] ( player, vehicle, seat, jackingplayer )
[[onPlayerQuit]] ( [[player]] )
[[onVehicleSpawn]] ( vehicle, vehiclespawnpoint )
 
[[onPickupHit]] ( player, pickup )
[[onPlayerSpawn]] ( [[player]], spawnpoint )
[[onPickupAdd]] ( pickup )
 
[[onMapLoad]] ( mapname, xmlroot )
[[onPlayerWasted]] ( [[player]] )
 
[[onEnterVehicle]] ( [[player]], [[vehicle]], seat, [[player]] jackedplayer )
 
[[onExitVehicle]] ( [[player]], [[vehicle]], seat, [[player]] jackingplayer )
 
[[onVehicleSpawn]] ( [[vehicle]], vehiclespawnpoint )
 
[[onPickupHit]] ( [[player]], [[pickup]] )
 
[[onPickupAdd]] ( [[pickup]] )
 
[[onMapLoad]] ( mapname, [[xmlroot]] )

Revision as of 18:16, 24 March 2006

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

onLoad ()

onPlayerChat ( player, message )

onPlayerJoin ( player )

onPlayerPm ( player sourceplayer, player destplayer, message )

onPlayerQuit ( player )

onPlayerSpawn ( player, spawnpoint )

onPlayerWasted ( player )

onEnterVehicle ( player, vehicle, seat, player jackedplayer )

onExitVehicle ( player, vehicle, seat, player jackingplayer )

onVehicleSpawn ( vehicle, vehiclespawnpoint )

onPickupHit ( player, pickup )

onPickupAdd ( pickup )

onMapLoad ( mapname, xmlroot )