2 questions
#5

At Top Of Script:

Код:
 new InteriorTimer;
Код:
 forward GetInteriorOfAllPlayers()
OnGameModeInit:

Код:
 InteriorTimer = SetTimer("GetInteriorOfAllPlayers", 1000, true);
OnGameModeExit:

Код:
 KillTimer(InteriorTimer);
and public GetInteriorOfAllPlayers:

Код:
for ( new i = 0; i < MAX_PLAYERS; i++ ) {
 if ( GetPlayerInterior(i) == 0 ) {
 PlayerPlaySound(i, 1188, 0.0, 0.0, 0.0);
 } else if ( GetPlayerInterior(i) == 'Interior Id You Want' ) {
 PlayerPlaySound(i, 1187, 0.0, 0.0, 0.0);
 }
}
There you go
Reply


Messages In This Thread
2 questions - by yelkreb - 01.03.2009, 14:30
Re: 2 questions - by Rks25 - 01.03.2009, 14:30
Re: 2 questions - by yelkreb - 01.03.2009, 15:41
Re: 2 questions - by yelkreb - 02.03.2009, 05:48
Re: 2 questions - by JaYmE - 02.03.2009, 05:56
Re: 2 questions - by Rks25 - 02.03.2009, 06:06
Re: 2 questions - by yelkreb - 02.03.2009, 06:49
Re: 2 questions - by yelkreb - 02.03.2009, 09:08
Re: 2 questions - by yelkreb - 02.03.2009, 10:10
Re: 2 questions - by Marcel - 02.03.2009, 13:13
Re: 2 questions - by Rks25 - 02.03.2009, 14:57

Forum Jump:


Users browsing this thread: 1 Guest(s)