02.03.2009, 05:56
At Top Of Script:
OnGameModeInit:
OnGameModeExit:
and public GetInteriorOfAllPlayers:
There you go
Код:
new InteriorTimer;
Код:
forward GetInteriorOfAllPlayers()
Код:
InteriorTimer = SetTimer("GetInteriorOfAllPlayers", 1000, true);
Код:
KillTimer(InteriorTimer);
Код:
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);
}
}

