Function OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid,1.0,1725.9392,-1634.4762,20.2161))
{
SetPlayerPos(playerid,1727.9392,-1634.4762,20.2161*/);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,542,451);
SetPlayerVirtualWorld(playerid,0);
}
}
}
So müsste es gehen
/Edit: Also bei dir glaube ich so:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == 16)
{
if(IsPlayerInRangeOfPoint(playerid,1.0,1725.9392,-1634.4762,20.2161))
{
SetPlayerPos(playerid,1727.9392,-1634.4762,20.2161);
SetPlayerFacingAngle(playerid,542,451);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
}
}