27.10.2012, 19:57
so i wanna make a checkpoint to set the players position to an ammunition shop and here is the code
and here is the problem:
everything is ok with the checkpoint and script no errors etc but when u enter it u get to the xyz but ur just in mid air falling how can i fix this ?
Код:
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, 2159.3638,943.1764,10.8203, 3.0);
return 1;
}
Код:
public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerPos(playerid, 286.800994,-82.547599,1001.515625);
SendClientMessageToAll(COLOR_RED, "A player has entered an ammunition store!");
DisablePlayerCheckpoint(playerid);
return 1;
}
everything is ok with the checkpoint and script no errors etc but when u enter it u get to the xyz but ur just in mid air falling how can i fix this ?


