1.1 --- a/plugins/include/tf2.inc Mon May 28 00:58:59 2012 +0100
1.2 +++ b/plugins/include/tf2.inc Mon May 28 01:14:46 2012 +0100
1.3 @@ -340,6 +340,19 @@
1.4 forward TF2_OnWaitingForPlayersEnd();
1.5
1.6 /**
1.7 + * Called when a player attempts to use a teleporter to decide if the player should be allowed to teleport.
1.8 + * Return Plugin_Continue to let the original calculation or return a higher
1.9 + * action to override the decision with the value of 'result'
1.10 + *
1.11 + * @param client Client index.
1.12 + * @param teleporter Teleporter entity index.
1.13 + * @param result Buffer param for the result of the decision.
1.14 + * This is prepopulated with the game's original decision to let a player teleport.
1.15 + * @return Plugin_Continue for original calculation, higher value to use 'result'.
1.16 + */
1.17 +forward Action:TF2_OnPlayerTeleport(client, teleporter, &bool:result);
1.18 +
1.19 +/**
1.20 * Do not edit below this line!
1.21 */
1.22 public Extension:__ext_tf2 =