[Include] [INC] Checkpoint Control (Streamer)
#1

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:

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
Reply


Messages In This Thread
[INC] Checkpoint Control (Streamer) - by Rafelder_GRF - 02.07.2008, 06:54
Re: [INC] Checkpoint Control (Streamer) - by Zh3r0 - 02.07.2008, 07:06
Re: [INC] Checkpoint Control (Streamer) - by zombie13333 - 04.07.2008, 03:50
Re: [INC] Checkpoint Control (Streamer) - by zombie13333 - 04.07.2008, 04:19
Re: [INC] Checkpoint Control (Streamer) - by Rafelder_GRF - 04.07.2008, 09:35
Re: [INC] Checkpoint Control (Streamer) - by chrisb345 - 11.07.2008, 13:01
Re: [INC] Checkpoint Control (Streamer) - by Rafelder_GRF - 11.07.2008, 13:16
Re: [INC] Checkpoint Control (Streamer) - by chrisb345 - 11.07.2008, 13:50
Re: [INC] Checkpoint Control (Streamer) - by Rafelder_GRF - 11.07.2008, 15:41
Re: [INC] Checkpoint Control (Streamer) - by Zh3r0 - 11.07.2008, 15:52

Forum Jump:


Users browsing this thread: 1 Guest(s)