08.03.2011, 19:15
yes and i did corectly.
look this is my code:
public OnPlayerSpawn(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, -2017.4309,970.1254,45.4794))
SetPlayerCheckpoint(playerid, -2017.4309,970.1254,45.4794,3.0);
return 1;
}
And this is the code for entering the checkpoint
public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerPos(playerid, 1527.229980,-11.574499,1002.097106);
SetPlayerInterior(playerid, 3);
return 1;
}
it's something wrong in the code? i can't figured it out what it can be
look this is my code:
public OnPlayerSpawn(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, -2017.4309,970.1254,45.4794))
SetPlayerCheckpoint(playerid, -2017.4309,970.1254,45.4794,3.0);
return 1;
}
And this is the code for entering the checkpoint
public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerPos(playerid, 1527.229980,-11.574499,1002.097106);
SetPlayerInterior(playerid, 3);
return 1;
}
it's something wrong in the code? i can't figured it out what it can be