02.07.2008, 06:54
CheckpointControl
Functions:
CreateCheckpoint(Float:X, Float:Y, Float:Z, Floatize, Float:distance, name[], bool:enable)
DestroyCheckpoint(cpid)
IsValidCheckpoint(cpid)
EnabledCheckpointForPlayer(playerid, cpid, bool:enable)*
EnabledCheckpointForAll(cpid, bool:enable)*
SetCheckpointPos(cpid, Float:X, Float:Y, Float:Z)*
SetCheckpointSize(cpid, Floatize)*
SetCheckpointSpawnDistance(cpid, Float:distance = 9999.9)*
SetCheckpointName(cpid, name[])*
GetCheckpointPos(cpid, &Float:X, &Float:Y, &Float:Z)
GetCheckpointSize(cpid)
GetCheckpointSpawnDistance(cpid)
GetCheckpointName(cpid)
IsCheckpointEnabledForPlayer(playerid, cpid)*
IsCheckpointEnabledForAll(cpid)*
IsPlayerInAnyCheckpoint(playerid)**
IsPlayerInCheckpoint(playerid, cpid)**
GetPlayerCheckpoint(playerid)
CPC_OnPlayerConnect(playerid)
CPC_OnPlayerEnterCheckpoint(playerid)
CPC_OnPlayerLeaveCheckpoint(playerid)
Callbacks:
OnPlayerEnterCheckpointEx(playerid, cpid, name[])
OnPlayerLeaveCheckpointEx(playerid, cpid, name[])
* cpid -1 = all
** playerid -1 = all
In some functions you can use "-1".
The "-1" means "every checkpoint/player".
Example:
Please leave a comment if you download the include
/\
||
Pastebin
Functions:
CreateCheckpoint(Float:X, Float:Y, Float:Z, Floatize, Float:distance, name[], bool:enable)
DestroyCheckpoint(cpid)
IsValidCheckpoint(cpid)
EnabledCheckpointForPlayer(playerid, cpid, bool:enable)*
EnabledCheckpointForAll(cpid, bool:enable)*
SetCheckpointPos(cpid, Float:X, Float:Y, Float:Z)*
SetCheckpointSize(cpid, Floatize)*
SetCheckpointSpawnDistance(cpid, Float:distance = 9999.9)*
SetCheckpointName(cpid, name[])*
GetCheckpointPos(cpid, &Float:X, &Float:Y, &Float:Z)
GetCheckpointSize(cpid)
GetCheckpointSpawnDistance(cpid)
GetCheckpointName(cpid)
IsCheckpointEnabledForPlayer(playerid, cpid)*
IsCheckpointEnabledForAll(cpid)*
IsPlayerInAnyCheckpoint(playerid)**
IsPlayerInCheckpoint(playerid, cpid)**
GetPlayerCheckpoint(playerid)
CPC_OnPlayerConnect(playerid)
CPC_OnPlayerEnterCheckpoint(playerid)
CPC_OnPlayerLeaveCheckpoint(playerid)
Callbacks:
OnPlayerEnterCheckpointEx(playerid, cpid, name[])
OnPlayerLeaveCheckpointEx(playerid, cpid, name[])
* cpid -1 = all
** playerid -1 = all
In some functions you can use "-1".
The "-1" means "every checkpoint/player".
Example:
pawn Code:
SetCheckpointName(0, "Test"); // Changes the name of checkpoint 0
SetCheckpointName(-1, "Test"); // Changes the name of every checkpoint
Please leave a comment if you download the include
/\
||
Pastebin