Freezing a player to let the mapping load
#4

You should add a timer, for example like this:

pawn Code:
forward InteriorEntered(playerid); // On top of your script, belower than includes and definitions.

// Your script here
if(PlayerInfo[playerid][pAdmin] >= 9999)//Jay's Special House - Brucie you want one? I'll even make one for Gonzalo too =D
{
    GameTextForPlayer(playerid,"~w~Jay's House",1000,1);
    SetPlayerInterior(playerid,5);
    SetPlayerPos(playerid,2476.7161,1796.8595,1541.7156);
    TogglePlayerControllable(playerid,0);
    SetTimer("StartPaintball",1000,0);
    TogglePlayerControllable(playerid,false);
    SetPlayerVirtualWorld(playerid,1337);
    SetPlayerFacingAngle(playerid,0.0);
    SetCameraBehindPlayer(playerid);

    SetTimer("InteriorEntered",2000,0); // The timer here, you shouldn't put the last parameter to 1 because it will repeat the effect which we don't need to happen.
    return 1;
}

public InteriorEntered(playerid) return TogglePlayerControllable(playerid, true); // This is where the effect will take place, after the timer has ended, the effect will take place.
I hope you understand, and you can use the timer I provided because it's really needed after a player entered a mapped interior.
Reply


Messages In This Thread
Freezing a player to let the mapping load - by Jay_Dixon - 18.12.2012, 05:44
Re: Freezing a player to let the mapping load - by [KHK]Khalid - 18.12.2012, 05:49
Re: Freezing a player to let the mapping load - by Jay_Dixon - 18.12.2012, 05:53
Re: Freezing a player to let the mapping load - by Huxley - 18.12.2012, 06:00
Re: Freezing a player to let the mapping load - by iggy1 - 18.12.2012, 07:12
Re: Freezing a player to let the mapping load - by Jay_Dixon - 18.12.2012, 18:17
Re: Freezing a player to let the mapping load - by Mike_Peterson - 18.12.2012, 18:35
Re: Freezing a player to let the mapping load - by iggy1 - 18.12.2012, 18:47

Forum Jump:


Users browsing this thread: 1 Guest(s)