18.12.2012, 06:00
You should add a timer, for example like this:
I hope you understand, and you can use the timer I provided because it's really needed after a player entered a mapped interior.
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.