05.12.2007, 15:10
This is the first script that I release in this forum. This include can perform simple checkpoint handling functions.
Functions:
CPS_AddCheckpoint(Float:X,Float:Y,Float:Z,Floati ze,Floatpawn_dist);
Creates a checkpoint, with size and spawn distance options. It also returns the checkpoint ID.
CPS_IsPlayerInCheckpoint(playerid,cpid);
Checks if a player is in a specific checkpoint.
CPS_IsPlayerInAnyCheckpoint(playerid,cpid);
Checks if a player is in any checkpoint handled by the streamer.
CPS_RemoveCheckpoint(cpid);
It removes a checkpoint by the ID.
CPS_GetPlayerCheckpoint(playerid);
Returns the ID of the actual checkpoint of a player
[Download]
http://www.infernusgroup.com/cpstream.inc
Any doubts, please contact me on MSN: msn_matraka@gtabrasil.net
(Sorry for bad english, I am brazilian)
EDIT: Bugs with CPS_IsPlayerInCheckpoint and CPS_IsPlayerInAnyCheckpoint corrected.
Functions:
CPS_AddCheckpoint(Float:X,Float:Y,Float:Z,Floati ze,Floatpawn_dist);
Creates a checkpoint, with size and spawn distance options. It also returns the checkpoint ID.
CPS_IsPlayerInCheckpoint(playerid,cpid);
Checks if a player is in a specific checkpoint.
CPS_IsPlayerInAnyCheckpoint(playerid,cpid);
Checks if a player is in any checkpoint handled by the streamer.
CPS_RemoveCheckpoint(cpid);
It removes a checkpoint by the ID.
CPS_GetPlayerCheckpoint(playerid);
Returns the ID of the actual checkpoint of a player
[Download]
http://www.infernusgroup.com/cpstream.inc
Any doubts, please contact me on MSN: msn_matraka@gtabrasil.net
(Sorry for bad english, I am brazilian)
EDIT: Bugs with CPS_IsPlayerInCheckpoint and CPS_IsPlayerInAnyCheckpoint corrected.