27.02.2011, 20:30
Your code has a syntax error (missing bracket) and you need an if statement for the else statement, also your usage of IsPlayerInDynamicCP is wrong. This is how you would do it:
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(IsPlayerInDynamicCP(playerid, 1))
{
SetPlayerPos(playerid, 1548.6754,-1366.0264,326.2109);
}
else if(IsPlayerInDynamicCP(playerid, 2))
{
SetPlayerPos(playerid, 1571.0111,-1335.7225,16.4844);
}
}