|
Do you mean the yellow triangle, animated, which can be disabled ?? I NEED it too !
|
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_SECONDARY_ATTACK))
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, Your coordinates)) //Is near doors for enter
{
SetPlayerPos(playerid, Your coordinates); //Set player position inside interior
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, Your coordinates)) //Is near interior exit doors
{
SetPlayerPos(playerid, Your coordinates); //Set player position to enter doors
}
}
return 1;
}
|
You mean like this ?
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_SECONDARY_ATTACK))
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, Your coordinates)) //Is near doors for enter
{
SetPlayerPos(playerid, Your coordinates); //Set player position inside interior
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, Your coordinates)) //Is near interior exit doors
{
SetPlayerPos(playerid, Your coordinates); //Set player position to enter doors
}
}
return 1;
}
|