27.06.2013, 10:31
well at first you forgot some brackets
Also..why are you using isplayerinanyvehicle twice ? it doesnt make sence. What are you trying to do ?
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{//here
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLOR_ORANGE,"Drive back to docks!");
SetPlayerCheckpoint(playerid,2462.9810,-2097.6760,13.5469, 5.0);
}
else if(IsPlayerInAnyVehicle(playerid))
{
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid,1000);
SendClientMessage(playerid,COLOR_YELLOW,"You got 1000$ for delivering!");
}//here
return 1;
}