28.10.2011, 15:34
Код:
public OnPlayerUpdate(playerid) { if(!IsPlayerConnected(playerid)) return 0; if ( Shooting [ playerid ] ) { if ( !PlayerToPoint( 1.4, playerid, OnArrow[ 0 ][ playerid ], OnArrow[ 1 ][ playerid ], OnArrow[ 2 ][ playerid ] ) ) { FinishShootingRange( playerid ); SendClientMessage( playerid, 0xFFBF00FF, "Shooting Range: {FFFFFF}You left the shooting range!"); } } if ( P_DATA[ playerid ][ P_OnStyle ] == true ) { UpdateLeftRightForStyle( playerid ); return 1; } if ( P_DATA[ playerid ][ P_OnTruckSel ] == true ) { UpdateLeftRightForTruck( playerid ); return 1; } if ( P_DATA[ playerid ][ P_OnTrailerSel ] == true ) { UpdateLeftRightForTrailer( playerid ); return 1; }