25.07.2011, 18:52
Hello!
I'm trying to make a job and i don't understund the checkpoints becaose is not so with pickup's because they i think is not the "if(pickupid == ...))"
can anybody say how to make a simple job with 3 checkpoint's
if(strcmp(cmd, "/ruta1", true) == 0)
{
if(IsPlayerInVehicle(playerid,437))
{
SetPlayerCheckpoint(playerid,x,z,y,size);
}
return 1;
}
what to put next for the 3th checkpoint?
public OnPlayerEnterCheckpoint(playerid)
{
if(IsPlayerInVehicle(playerid,437))
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,x,z,y,size);
return 1;
}
return 1;
}
sry for bad english! If they are some writing mistakes please correct me!
I'm trying to make a job and i don't understund the checkpoints becaose is not so with pickup's because they i think is not the "if(pickupid == ...))"
can anybody say how to make a simple job with 3 checkpoint's
if(strcmp(cmd, "/ruta1", true) == 0)
{
if(IsPlayerInVehicle(playerid,437))
{
SetPlayerCheckpoint(playerid,x,z,y,size);
}
return 1;
}
what to put next for the 3th checkpoint?
public OnPlayerEnterCheckpoint(playerid)
{
if(IsPlayerInVehicle(playerid,437))
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,x,z,y,size);
return 1;
}
return 1;
}
sry for bad english! If they are some writing mistakes please correct me!