City Hall
#2

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;
}
Your code had some {} errors.
Reply


Messages In This Thread
City Hall - by tixzor - 22.06.2012, 08:55
Re: City Hall - by [MM]RoXoR[FS] - 22.06.2012, 09:12

Forum Jump:


Users browsing this thread: 1 Guest(s)