Need help interiors! :(
#4

Presuming you still know how to script /enter and /exit, just add an object where you want the players to be able to /enter at.

If not, here's a 'starter kit'...

pawn Код:
if(!strcmp("/enter", cmdtext, true))
{
    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);
    }
    return 1;
}
pawn Код:
if(!strcmp(cmdtext, "/exit", true))
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, X2, Y2, Z2)) // Do same as above
    {
        SetPlayerInterior(playerid, 0);
        SetPlayerPos(playerid, X, Y, Z);
    }
    return 1;
}
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: 1 Guest(s)