25.06.2014, 19:57
Eh. I'd like to make some checkpoints in my jobs. Now what the problem is here:
I don't really know how to make checkpoints, do I make them like this:
or:
I want 10 checkpoints i got coords and everything but I don't know how to make more?
I don't really know how to make checkpoints, do I make them like this:
PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
if(lawnmower[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, size,x,y,z);
}
if(lawnmower[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, size,x,y,z);
}
return 1;
}
PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
if(lawnmower[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, size,x,y,z);
}
}
case 1;
{
if(lawnmower[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, size,x,y,z);
}
}
case 2;
return 1;
}