03.08.2011, 07:43
Quote:
x,y,z are floats.
add new Float: x,Float:y,Float:z; somewhere in the stock. |
pawn Код:
stock CPS_AddCheckpoint(Float:cX,Float:cY,Float:cZ,Float:size,spawn_dist)
{
new cpid=1;
while(UsedCPSlot[cpid] == 1) cpid++;
if(CPSERVICE_active == 0){
SetTimer("CPSERVICE_Handler",500,true);
CPSERVICE_active=1;
}
UsedCPSlot[cpid]=1;
Checkpoints[cpid][cpX]=cX;
Checkpoints[cpid][cpY]=cY;
Checkpoints[cpid][cpZ]=cZ;
Checkpoints[cpid][cpsz]=size;
Checkpoints[cpid][cpsd]=spawn_dist;
return cpid;
}