24.12.2012, 16:06
Good.. i fixed it but i have a new problem now.. when i walk into a checkpoint nothing of what i stated on OnPlayerEnterCheckpoint is happening:
Any idea why is that happening ?
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if (IsPlayerInRangeOfPoint(playerid, 1.0, 2362.9297,-1643.3599,14.3082)) //Checkpoint 1
{
GivePlayerMoney(playerid, 2489);
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTRED, "You have delivered the pizza before it went cold, go and get more !");
DeletePVar(playerid, "Delivering");
}
else if (IsPlayerInRangeOfPoint(playerid, 1.0,2523.2732,-1679.4453,15.4970)) //Checkpoint 2
{
GivePlayerMoney(playerid, 3000);
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTRED, "You have delivered the pizza before it went cold, go and get more !");
DeletePVar(playerid, "Delivering");
}
else if (IsPlayerInRangeOfPoint(playerid, 1.0, 2178.5088,-1660.3746,14.9678)) //Checkpoint 3
{
GivePlayerMoney(playerid, 1258);
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTRED, "You have delivered the pizza before it went cold, go and get more !");
DeletePVar(playerid, "Delivering");
}
return 1;
}

