19.07.2016, 13:52
Here is the code that includes the CPIndex
PHP код:
new CPIndex[MAX_CHECKPOINT][3], Text3D:CPLabel[MAX_CHECKPOINT][3][2];
forward DynamicCPs();
public DynamicCPs()
{
new i = 0;
while(i < MAX_CHECKPOINT)
{
CPIndex[i][0] = CreateDynamicCP(CPData[i][EnterLoc][0], CPData[i][EnterLoc][1], CPData[i][EnterLoc][2], 1.5, -1, -1, -1, 100.0);
CPIndex[i][1] = CreateDynamicCP(CPData[i][ExitLoc][0], CPData[i][ExitLoc][1], CPData[i][ExitLoc][2], 1.5, CPData[i][World], CPData[i][Interior], -1, 100.0);
CPLabel[i][0][0] = Create3DTextLabel("WELCOME TO", 0x00FF00FF, CPData[i][EnterLoc][0], CPData[i][EnterLoc][1], CPData[i][EnterLoc][2] + 0.2, 25.0, 0, 1);
CPLabel[i][0][1] = Create3DTextLabel(CPData[i][SName], 0x0000FFFF, CPData[i][EnterLoc][0], CPData[i][EnterLoc][1], CPData[i][EnterLoc][2] + 0.05, 25.0, 0, 1);
CPLabel[i][1][0] = Create3DTextLabel("YOU WERE AT", 0x00FF00FF, CPData[i][ExitLoc][0], CPData[i][ExitLoc][1], CPData[i][ExitLoc][2] + 0.2, 7.5, CPData[i][World], 1);
CPLabel[i][1][1] = Create3DTextLabel(CPData[i][SName], 0x0000FFFF, CPData[i][ExitLoc][0], CPData[i][ExitLoc][1], CPData[i][ExitLoc][2] + 0.05, 7.5, CPData[i][World], 1);
i++;
}
}