20.03.2012, 20:40
ok so it didnt work but i did get the error message outside of my car. here is what happens after you enter the checkpoint which is made maybe its that:
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(trucking[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
trucking[playerid] = 2;
SendClientMessage(playerid, COLOR_WHITE, "You have loaded your goods, make your way to the store!");
SetPlayerCheckpoint(playerid, 1374.1812,-1890.8579,13.4906, 3.0);
return 1;
}
if(trucking[playerid] == 2)
{
DisablePlayerCheckpoint(playerid);
trucking[playerid] = 3;
SendClientMessage(playerid, COLOR_WHITE, "You have successfully delivered the goods, make your way back!");
SetPlayerCheckpoint(playerid, -1552.3555,119.2117,3.5547, 3.0);
return 1;
}
if(trucking[playerid] == 3)
{
DisablePlayerCheckpoint(playerid);
trucking[playerid] = 0;
SendClientMessage(playerid, COLOR_WHITE, "You have successfully completed the mission!");
GivePlayerMoney(playerid, 5000);
return 1;
}
return 1;
}