21.11.2012, 12:27
(
Последний раз редактировалось sgtjones12; 21.11.2012 в 13:51.
)
I'm trying to create a checkpoint system but when I compile it, It works and when i went in game to test my checkpoints they did not send the message I told it to in PAWN it just disabled and showed the next checkpoint my code is below.
Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(checkpoint[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
checkpoint[2] = SetPlayerCheckpoint(playerid, 1459.9420, 2773.4541, 10.8203, 5.0);
SendClientMessage(playerid,COLOR_YELLOW, "This is a test checkpoint!");
return 1;
}
if(Tutcheckpoint[playerid] == 2)
{
SendClientMessage(playerid,COLOR_YELLOW, "Another Test Checkpoint!");
}
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}


