01.11.2012, 07:00
First Find:
and add this:
and add this afther when u added first(this now is for exit):
and also u can add TextLabels:
first find:
and add: [CODE]Create3DTextLabel("For Enter to the buidling | press Enter",COLOR, x, y, z); // x,y,z enter
Create3DTextLabel("For Exit | press Enter",COLOR, x, y, z); //x,y,z exit
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
Код:
f( newkeys == KEY_SECONDARY_ATTACK ) // KEY_SECONDARY_ATTACK if player fres F
{
if( IsPlayerInRangeOfPoint( playerid, 3.0, X enter, Y enter, Z enter ) ) // if player to point
{
SetPlayerPos( playerid, X, r, Z ); // X, Y, Z -where player is gonna to spawn
SetPlayerInterior( playerid, 15 ); // ID of int
GameTextForPlayer( playerid, "TEXT", 3000, 1 ); // send player message
return 1;
}
}
Код:
if( newkeys == KEY_SECONDARY_ATTACK ) // if player press F or enter
{
if( IsPlayerInRangeOfPoint( playerid, 3.0, x exit, y ext, z exit ) ) // if player to point
SetPlayerPos( playerid, X, Y, Z ); // pos where player is gonna to spawn
SetPlayerInterior( playerid, 0); //DI int...
GameTextForPlayer( playerid, "TEXT", 3000, 1 ); // TEXT
return 1;
}
}
first find:
Код:
public OnGameModeInit()
Create3DTextLabel("For Exit | press Enter",COLOR, x, y, z); //x,y,z exit

