08.07.2010, 16:34
how i make checkpoints? + how to make it only appears when u type a command and it removes itself when you are at the checkpoint?
if(strcmp(cmdtext,"/cp",true,10)==0)
{
SetPlayerCheckpoint(playerid, 0.0, 0.0, 0.0, 3);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,0xFFFFFFFF,"Congratz, you made it to the checkpoint");
return 1;
}
pawn Код:
pawn Код:
|
SetPlayerCheckpoint(playerid, 0.0, 0.0, 0.0, 3);
thanks but what does the last 3 in this line means
Код:
SetPlayerCheckpoint(playerid, 0.0, 0.0, 0.0, 3); |