DisablePlayerCheckpoint

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 21:16, 26 May 2010
Badgerboy (Talk | contribs)

← Previous diff
Revision as of 17:55, 5 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 1: Line 1:
{{Scripting}} {{Scripting}}
-{{Title}} 
{{Description|Disable any initialized checkpoints for a specific player, since you can only have one at any given time.}} {{Description|Disable any initialized checkpoints for a specific player, since you can only have one at any given time.}}
Line 32: Line 31:
[[Category:Scripting Functions]] [[Category:Scripting Functions]]
 +
 +[[fr:DisablePlayerCheckpoint]]

Revision as of 17:55, 5 February 2014



Description:

Disable any initialized checkpoints for a specific player, since you can only have one at any given time.


Parameters:
(playerid)
playeridThe player to disable the current checkpoint for.


Return Values:

This function does not return any specific values.


public OnPlayerEnterCheckpoint(playerid)
{
    GivePlayerMoney(playerid, 10000);
    DisablePlayerCheckpoint(playerid);
    return 1;
}

Related Functions

The following functions might be useful, as they're related to this callback in one way or another.


Related Callbacks

The following callbacks might be useful as well, as they are related to this callback in one way or another.

In other languages