PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if( newkeys == KEY_SECONDARY_ATTACK )
{
if( IsPlayerInRangeOfPoint( playerid, 3.0, -2072.7656,244.6396,37.2011) )
{
SetPlayerPos( playerid, 381.169189,-188.803024,1000.632812);
SetPlayerInterior( playerid, 17 );
return 1;
}
}
if( newkeys == KEY_SECONDARY_ATTACK )
{
if( IsPlayerInRangeOfPoint( playerid, 3.0, 377.1459,-193.3055,1000.6328) )
{
SetPlayerPos( playerid, -2072.7656,244.6396,37.2011 );
SetPlayerInterior( playerid, 17 );
return 1;
}
}
return 1;
}
And this,but this is just 3D text I dont think there is a problem:
PHP код:
public OnGameModeInit()
{
Create3DTextLabel("Press 'Enter' ", WHITE , 377.1459,-193.3055,1000.6328, 50, 0, 1);