Need help interiors! :(
#5

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & 16) // VEHICLE_ENTER_EXIT (default F/Enter)
    {
        if(IsPlayerInRangeOfPoint(playerid, 5.0, X, Y, Z)) // LSPD HQ (Substitute X, Y & Z)
        {
            SetPlayerPos(playerid, X2, Y2, Z2); // Substitute X2, Y2 & Z2 for LSPD interior
            SetPlayerInterior(playerid, I); // Substitute I for interior ID
            GameTextForPlayer(playerid, "~b~Los Santos Police Department", 5000, 5);
        }
        if(IsPlayerInRangeOfPoint(playerid, 5.0, X2, Y2, Z2)) // LSPD interior
        {
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, X, Y, Z);
        }
        return 1;
    }
}
Judging by what I've seen ingame, you should be able to just add coordinates & a name to a file, though. Unsure of which one without looking at your script, but hey.
Reply


Messages In This Thread
Need help interiors! :( - by xeniusw - 19.05.2012, 23:12
Re: Need help interiors! :( - by xeniusw - 19.05.2012, 23:15
Re: Need help interiors! :( - by xeniusw - 20.05.2012, 12:18
Re: Need help interiors! :( - by [FMJ]PowerSurge - 20.05.2012, 12:27
Re: Need help interiors! :( - by [FMJ]PowerSurge - 20.05.2012, 12:38
Re: Need help interiors! :( - by xeniusw - 20.05.2012, 13:00

Forum Jump:


Users browsing this thread: 3 Guest(s)