22.06.2012, 09:12
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
//Gradska Vjecnica-Enter
if( newkeys == KEY_SECONDARY_ATTACK )
{
if( IsPlayerInRangeOfPoint( playerid, 3.0, 1481.0033,-1771.5490,18.7958 ) && GetPlayerInterior(playerid)==0)
{
SetPlayerPos(playerid, 386.5259, 173.6381, 1008.3828);
SetPlayerInterior(playerid, 3);
GameTextForPlayer( playerid, "Los Santos Vjecnica", 3000, 1 );
return 1;
}
if( IsPlayerInRangeOfPoint(playerid, 3.0, 389.4573,173.6963,1008.3828) && GetPlayerInterior(playerid)==3)
{
SetPlayerPos( playerid, 1481.0033,-1771.5490,18.7958 );
SetPlayerInterior( playerid, 0);
return 1;
}
}
return 1;
}