18.05.2012, 08:06
EDIT:
Change the co-ordinates to your ones.
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, x, y, z, 3.0/*size*/);
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (IsPlayerInCheckpoint(playerid))
{
if (PRESSED(KEY_SECONDARY_ATTACK.))//F key or Return Key(Enter Key)
{
if (IsPlayerInAnyVehicle(playerid))
{
return 1;
}
else
{
SetPlayerPos(playerid, x, y, z);
SetPlayerInterior(playerid, interiorid);
}
}
}
else
{
return 1;
}
return 1;
}