28.02.2010, 09:20
Quote:
Originally Posted by Geryy
Да выполняется вроде, напиши пожалсто какой должен быть код с простой логикой...
|
Code:
public OnPlayerStateChange ( playerid, newstate, oldstate ) { switch ( newstate ) { case PLAYER_STATE_EXIT_VEHICLE : SetCameraBehindPlayer(playerid); } return 1; }
Code:
forward resetPlayerCamera ( playerid ); public resetPlayerCamera ( playerid ) { SetCameraBehindPlayer(playerid); } public OnPlayerStateChange ( playerid, newstate, oldstate ) { switch ( newstate ) { case PLAYER_STATE_EXIT_VEHICLE : SetTimerEx( "resetPlayerCamera", 2000, 0, "i", playerid ); } return 1; }