11.08.2013, 17:42
I was wondering how to create a another checkpoint after I leave the first checkpoint.
Allright.. first I active the checkpoint with a command:
That's was the command to activate the checkpoint then:
Okay.. next I leave the chekcpoint:
And this is the problem --- what am I supposed to do now?
Allright.. first I active the checkpoint with a command:
pawn Код:
if (!strcmp(cmdtext , "/work" , true))
{
SetPlayerCheckpoint(playerid, 1280.0111161369013, 2530.9914920195056, -0.2432, 3.0);
SendClientMessage(playerid, 0x489048FF , "Get the drug package from the crackhouse");
return 1;
}
That's was the command to activate the checkpoint then:
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
SendClientMessage(playerid , 0x489048FF , "You have recieved the drug package");
SendClientMessage(playerid , 0x489048FF , "--------------------------------------------------------------");
SendClientMessage(playerid , 0x489048FF , "Deliever the package to the checkpoint to recieve your payment");
return 1;
}
pawn Код:
public OnPlayerLeaveCheckpoint(playerid)
{
SetPlayerCheckpoint(playerid, -81.80088525521978, 1222.35923886073, -0.2432, 3.0);
return 1;
}